Repository navigation
Conversation
OpenShift assigns the user ID (UID) and fsGroup of each pod from the namespace range. Its default Security Context Constraint (SCC), restricted-v2, rejects pods that set other values. The chart defaults (runAsUser: 1005 and fsGroup: 1005) are outside that range, so the pods do not start on OpenShift. Add the openshift.adaptSecurityContext value (auto, force or disabled). In auto mode, the chart removes podSecurityContext.fsGroup and securityContext.runAsUser when the cluster has the security.openshift.io/v1 API. On other clusters, the rendered output does not change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Why?Add support for OKD, OpenShift Container Platform and OpenShift Kubernetes Engine based environments, without having to tweak the helm chart. DescriptionHelm chart adapts the security context automatically on OpenShift based distros (OCP, OKE and OKD). Three modes: auto, force and disabled.
How was this PR tested?Updated Helm chart used to deploy Qwickwit on:
|
|
@shuheiktgw may you have a look and let me know what do you think? |
|
@juanbrny Thanks for looking into OpenShift support! I'd prefer not to add new fields and helpers, as what you propose can already be expressed like the following: podSecurityContext:
fsGroup: null
securityContext:
runAsUser: nullI'd like to keep |
OpenShift assigns the user ID (UID) and fsGroup of each pod from the namespace range. Its default Security Context Constraint (SCC), restricted-v2, rejects pods that set other values. The chart defaults (runAsUser: 1005 and fsGroup: 1005) are outside that range, so the pods do not start on OpenShift.
Add the openshift.adaptSecurityContext value (auto, force or disabled). In auto mode, the chart removes podSecurityContext.fsGroup and securityContext.runAsUser when the cluster has the security.openshift.io/v1 API. On other clusters, the rendered output does not change.