Add 'use' permission for DWO SA when container build is enabled (#1558)
Add 'use' permissions in addition to 'get' and 'update' to be added to the DevWorkspace Operator ServiceAccount when container build functionality is enabled. This is required due to changes in the DevWorkspace Operator in https://github.com/devfile/devworkspace-operator/pull/954 Signed-off-by: Angel Misevski <amisevsk@redhat.com>pull/1560/head
parent
349cb782a9
commit
1865d4728c
|
|
@ -170,7 +170,7 @@ func (cb *ContainerBuildReconciler) getDevWorkspaceSccPolicyRules(ctx *chetypes.
|
|||
{
|
||||
APIGroups: []string{"security.openshift.io"},
|
||||
Resources: []string{"securitycontextconstraints"},
|
||||
Verbs: []string{"get", "update"},
|
||||
Verbs: []string{"get", "update", "use"},
|
||||
ResourceNames: []string{ctx.CheCluster.Spec.DevEnvironments.ContainerBuildConfiguration.OpenShiftSecurityContextConstraint},
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue