parkinr commented on code in PR #10362:
URL: https://github.com/apache/cloudstack/pull/10362#discussion_r1951205895


##########
plugins/integrations/kubernetes-service/src/main/java/com/cloud/kubernetes/cluster/KubernetesClusterManagerImpl.java:
##########
@@ -1384,7 +1384,15 @@ private String[] getServiceUserKeys(KubernetesClusterVO 
kubernetesCluster) {
         if (owner == null || owner.getType() == Account.Type.PROJECT) {
             owner = CallContext.current().getCallingAccount();
         }
-        String username = owner.getAccountName() + "-" + 
KUBEADMIN_ACCOUNT_NAME;

Review Comment:
   Without this PR, the username is: flexcloud-admin-account-kubeadmin
   With this PR, the username is 
flexcloud-admin-account-f316789i-2bgg-4r87-95h7-58j5327892ef-kubeadmin with 
sample projectId=f316789i-2bgg-4r87-95h7-58j5327892ef. And you can see this 
projectId in cloudstack-secret on the Kubernetes cluster.



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