Skip to content

Commit

Permalink
Add 'use' permission for DWO SA when container build is enabled
Browse files Browse the repository at this point in the history
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 devfile/devworkspace-operator#954

Signed-off-by: Angel Misevski <[email protected]>
  • Loading branch information
amisevsk committed Nov 7, 2022
1 parent 349cb78 commit 5232c43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/deploy/container-build/container_build.go
Original file line number Diff line number Diff line change
Expand Up @@ -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},
},
}
Expand Down

0 comments on commit 5232c43

Please sign in to comment.