Skip to content

Commit 5f4e20d

Browse files
synaretemergify[bot]
authored andcommitted
resources: bind openshift resource to samba SCC
Use 'samba' SCC instead of builtin 'aynuid' within OpenShift cluster. Signed-off-by: Shachar Sharon <[email protected]>
1 parent 996c763 commit 5f4e20d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/resources/openshift.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const (
4141

4242
// OpenShiftManager is used to manage OpenShift's related resources: SCC,
4343
// ServiceAccount (if not exists) and enable Role and RoleBinding referencing
44-
// to OpenShift's 'anyuid' SCC.
44+
// to OpenShift's 'samba' SCC.
4545
type OpenShiftManager struct {
4646
client rtclient.Client
4747
logger logr.Logger
@@ -419,7 +419,7 @@ func (m *OpenShiftManager) getOrCreateSCCRole(
419419
// TODO: ask John if he prefers import openshift for those vals
420420
APIGroups: []string{"security.openshift.io"},
421421
Resources: []string{"securitycontextconstraints"},
422-
ResourceNames: []string{"anyuid"},
422+
ResourceNames: []string{"samba"},
423423
Verbs: []string{"use"},
424424
},
425425
},

0 commit comments

Comments
 (0)