Skip to content

Instantly share code, notes, and snippets.

@shreddedbacon
Created September 29, 2023 01:14
Show Gist options
  • Save shreddedbacon/62df6b27c2989782c566a577ee75b484 to your computer and use it in GitHub Desktop.
Save shreddedbacon/62df6b27c2989782c566a577ee75b484 to your computer and use it in GitHub Desktop.
diff --git a/legacy/build-deploy-docker-compose.sh b/legacy/build-deploy-docker-compose.sh
index 8dd9e3d..8fa023c 100755
--- a/legacy/build-deploy-docker-compose.sh
+++ b/legacy/build-deploy-docker-compose.sh
@@ -856,7 +856,9 @@ set +x
if [ "$(featureFlag ROOTLESS_WORKLOAD)" = enabled ]; then
yq3 merge -ix -- /kubectl-build-deploy/values.yaml /kubectl-build-deploy/rootless.values.yaml
fi
-
+if [ "$(featureFlag ON_ROOT_MISMATCH)" = enabled ]; then
+ yq3 write -i -- /kubectl-build-deploy/values.yaml 'podSecurityContext.fsGroupChangePolicy' "OnRootMismatch"
+fi
if [ "${SCC_CHECK}" != "false" ]; then
# openshift permissions are different, this is to set the fsgroup to the supplemental group from the openshift annotations
# this applies it to all deployments in this environment because we don't isolate by service type its applied to all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment