Add nonroot SCC to work on OpenShift clusters

This commit is contained in:
Mo Khan 2020-11-18 17:08:45 -05:00 committed by GitHub
parent 24bd8b2e42
commit c32e452db8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,6 +24,10 @@ rules:
- apiGroups: [ policy ] - apiGroups: [ policy ]
resources: [ podsecuritypolicies ] resources: [ podsecuritypolicies ]
verbs: [ use ] verbs: [ use ]
- apiGroups: [ security.openshift.io ]
resources: [ securitycontextconstraints ]
verbs: [ use ]
resourceNames: [ nonroot ]
--- ---
kind: ClusterRoleBinding kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1 apiVersion: rbac.authorization.k8s.io/v1