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 82442f9 commit 76c0fdcCopy full SHA for 76c0fdc
controllers/namespacescope_controller.go
@@ -304,14 +304,14 @@ func (r *NamespaceScopeReconciler) GetServiceAccountFromNamespace(labels map[str
304
return nil, err
305
}
306
307
- var saNames []string
+ // By default, set ibm-namespace-scope-operator service account
308
+ var saNames = []string{"ibm-namespace-scope-operator"}
309
310
for _, pod := range pods.Items {
311
if len(pod.Spec.ServiceAccountName) != 0 {
312
saNames = append(saNames, pod.Spec.ServiceAccountName)
313
314
-
315
saNames = util.ToStringSlice(util.MakeSet(saNames))
316
317
return saNames, nil
0 commit comments