Skip to content

Commit 1c0182f

Browse files
committed
CKS: generate a UUID for CKS user in project
1 parent 1948f90 commit 1c0182f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/integrations/kubernetes-service/src/main/java/com/cloud/kubernetes/cluster/KubernetesClusterManagerImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1551,7 +1551,7 @@ protected Account createProjectKubernetesAccount(final Project project, final St
15511551
try {
15521552
Role role = getProjectKubernetesAccountRole();
15531553
UserAccount userAccount = accountService.createUserAccount(accountName,
1554-
UuidUtils.first(UUID.randomUUID().toString()), PROJECT_KUBERNETES_ACCOUNT_FIRST_NAME,
1554+
UUID.randomUUID().toString(), PROJECT_KUBERNETES_ACCOUNT_FIRST_NAME,
15551555
PROJECT_KUBERNETES_ACCOUNT_LAST_NAME, null, null, accountName, Account.Type.NORMAL, role.getId(),
15561556
project.getDomainId(), null, null, null, null, User.Source.NATIVE);
15571557
projectManager.assignAccountToProject(project, userAccount.getAccountId(), ProjectAccount.Role.Regular,

0 commit comments

Comments
 (0)