feat(security): Add securityContext and volumeMounts to the container configuration, add volumes to the deployment configuration#2113
Conversation
… configuration, add volumes to the deployment configuration
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: karatkep The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Hi @karatkep. Thanks for your PR. I'm waiting for a eclipse-che member to verify that this patch is reasonable to test. If it is, they should reply with Tip We noticed you've done this a few times! Consider joining the org to skip this step and gain Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
Hello @tolusha, |
|
Hello, @karatkep This can be fixed by updating dependencies in [2] [1] che-operator/pkg/deploy/deployment.go Line 271 in 5748764 [2] che-incubator/configbump#201 |
|
@tolusha, that was my initial idea - a simple and fast solution. However, I encountered some issues:
Note: I haven’t tested this approach with dev-registry and plugin-registry yet. Given these challenges, I decided to propose a more complex but configurable solution, which would give users greater flexibility to tailor their environment to their needs. Personally, I’m fine with making a few code changes to set If you have any recommendations or best practices, I’d really appreciate your input! |
What does this PR do?
CheCluster API (Deployment / Container)
Extends component deployment overrides with
volumeson the pod, plus per-containersecurityContextandvolumeMounts, wired through the existing override path.Deployment overrides (pkg/deploy)
securityContextfield-by-field into each container (includingreadOnlyRootFilesystemand related fields).volumeMountsby mountname.volumesby volumename.pkg/common/utils
Adds
IndexVolumeandIndexVolumeMountto support volume / mount merging.Screenshot/screencast of this PR
What issues does this PR fix or reference?
How to test this PR?
karatkep/che-operator:7.116.0for testingreadOnlyRootFilesystem: truefor che-dashboard and che-gateway via CheCluster API:OpenShift
or
on Minikube
Common Test Scenarios
PR Checklist
As the author of this Pull Request I made sure that:
Reviewers
Reviewers, please comment how you tested the PR when approving it.