Skip to content

Commit 6d10110

Browse files
synaretemergify[bot]
authored andcommitted
controllers: define kubebuilder:rbac for samba SCC
Require RBAC rules for 'samba' SCC instead of built-in 'anyuid'. Signed-off-by: Shachar Sharon <[email protected]>
1 parent 5f4e20d commit 6d10110

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

controllers/smbcommonconfig_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ type SmbCommonConfigReconciler struct {
4444
// +kubebuilder:rbac:groups=core,resources=pods;endpoints;services;namespaces,verbs=get;list;watch;update
4545
// +kubebuilder:rbac:groups=rbac.authorization.k8s.io,resources=roles;rolebindings,verbs=get;list;watch;create;update;delete
4646
// +kubebuilder:rbac:groups=security.openshift.io,resources=securitycontextconstraints,verbs=get;list;use
47-
// +kubebuilder:rbac:groups=security.openshift.io,resourceNames=anyuid,resources=securitycontextconstraints,verbs=get;list;create;update
47+
// +kubebuilder:rbac:groups=security.openshift.io,resourceNames=samba,resources=securitycontextconstraints,verbs=get;list;create;update
4848
// +kubebuilder:rbac:groups=coordination.k8s.io,resources=leases,verbs=get;list;create;update
4949
// +kubebuilder:rbac:groups=monitoring.coreos.com,resources=servicemonitors;prometheusrules,verbs=get;list;watch;create;update
5050

0 commit comments

Comments
 (0)