weizhouapache commented on code in PR #7515:
URL: https://github.com/apache/cloudstack/pull/7515#discussion_r1203698220


##########
plugins/integrations/kubernetes-service/src/main/java/org/apache/cloudstack/api/command/user/kubernetes/cluster/StartKubernetesClusterCmd.java:
##########
@@ -99,6 +99,9 @@ public KubernetesCluster validateRequest() {
         if (kubernetesCluster == null) {
             throw new ServerApiException(ApiErrorCode.PARAM_ERROR, "Given 
Kubernetes cluster was not found");
         }
+        if (!kubernetesCluster.getManaged()) {
+            throw new ServerApiException(ApiErrorCode.PARAM_ERROR, "Given 
Kubernetes cluster is not managed by Apache CloudStack");

Review Comment:
   great @vishesh92 
   can you add `isManaged` to KubernetesClusterResponse, and show/hide actions 
on UI based on it ?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to