sureshanaparti commented on code in PR #6392:
URL: https://github.com/apache/cloudstack/pull/6392#discussion_r874676778
##########
plugins/integrations/kubernetes-service/src/main/java/com/cloud/kubernetes/cluster/KubernetesClusterManagerImpl.java:
##########
@@ -1147,6 +1147,14 @@ public boolean startKubernetesCluster(long
kubernetesClusterId, boolean onCreate
}
}
+ private Account getOwnerOrCaller(KubernetesClusterVO kubernetesCluster) {
+ Account owner =
accountService.getActiveAccountById(kubernetesCluster.getAccountId());
+ if (owner.getType() == Account.Type.PROJECT) {
Review Comment:
```suggestion
if (owner != null && owner.getType() == Account.Type.PROJECT) {
```
--
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]