fix: make securityContext configurable to resolve OpenShift non-default namespace deployment failure#460
Draft
narayviv wants to merge 2 commits into
Draft
Conversation
…mespace deployment failure Signed-off-by: Vivek Vishnu Narayanan <vivek-vishnu.narayanan@hpe.com>
Signed-off-by: Vivek Vishnu Narayanan <vivek-vishnu.narayanan@hpe.com>
Collaborator
|
If this runs on Kubernetes and OpenShift without modification, all these changes doesn't need to be parameterized. When would a user need to change any of these? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The COSI provisioner pod fails to deploy in non-default namespaces on OpenShift
clusters (AS-222433) because the deployment template hardcodes runAsUser: 1000,
runAsGroup: 1000, and fsGroup: 2000. These values conflict with OpenShift's
namespace-assigned UID/GID ranges enforced by the restricted-v2 SCC.
Changes:
(allowPrivilegeEscalation: false, drop ALL capabilities, RuntimeDefault seccomp)
This makes the chart compatible with both OpenShift (restricted-v2 SCC) and
Kubernetes (restricted Pod Security Standard) without requiring manual SCC
grants like anyuid.