We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a565dc2 commit 4ad9268Copy full SHA for 4ad9268
apiserver/userservice/userimpl.go
@@ -492,6 +492,12 @@ func CreateUser(request *msgs.CreateUserRequest) msgs.CreateUserResponse {
492
return resp
493
}
494
495
+ if len(clusterList.Items) == 0 {
496
+ resp.Status.Code = msgs.Error
497
+ resp.Status.Msg = "no clusters found with that selector"
498
+ return resp
499
+ }
500
+
501
log.Debug("createUser clusters found len is %d\n", len(clusterList.Items))
502
503
for _, c := range clusterList.Items {
@@ -729,4 +735,3 @@ func reconfigurePgpool(clusterName string) error {
729
735
730
736
return err
731
737
732
-
0 commit comments