nvazquez commented on a change in pull request #5254:
URL: https://github.com/apache/cloudstack/pull/5254#discussion_r681920502



##########
File path: 
plugins/integrations/kubernetes-service/src/main/java/com/cloud/kubernetes/cluster/KubernetesClusterManagerImpl.java
##########
@@ -644,7 +652,15 @@ public KubernetesClusterResponse 
createKubernetesClusterResponse(long kubernetes
         return response;
     }
 
+    private void validateEndpointUrl() {
+        String csUrl = ApiServiceConfiguration.ApiServletPath.value();
+        if (csUrl == null || csUrl.contains("localhost")) {
+            throw new InvalidParameterValueException("Global setting 
endpointe.url has to be set to the Management Server's API end point");

Review comment:
       What about `ApiServiceConfiguration.ApiServletPath.key()` instead of 
`endpointe.url`?




-- 
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