Automatically create the container build SCC if containerBuildCapability
is enabled
#21768
Labels
area/che-operator
Issues and PRs related to Eclipse Che Kubernetes Operator
kind/enhancement
A feature request - must adhere to the feature request template.
severity/P1
Has a major impact to usage or development of the system.
Milestone
Is your enhancement related to a problem? Please describe
Even if
disableContainerBuildCapabilities: false
an admin still requires to manually create a container-build SCC and grant privileges to get and update it to the DevWorkspace controller SA as mentioned here.Describe the solution you'd like
We should introduce a new
devEnvironments.containerBuildConfiguration
section in CheCluster spec with the following defaults:When
disableContainerBuildCapabilities: false
then if theopenShiftSecurityContextConstraint
...get
andupdate
it to the DevWorkspace controller SA.get
andupdate
it to the DevWorkspace controller SA.When
disableContainerBuildCapabilities: true
then if theopenShiftSecurityContextConstraint
:If the SCC has been crated manually by the admin then Che should not delete it if
disableContainerBuildCapabilities: true
. For that when Che creates the SCC and the role bindings it should label them withapp.kubernetes.io/managed-by: eclipse-che
.The text was updated successfully, but these errors were encountered: