Skip to content

Commit f893ad5

Browse files
iQQBotroboquat
authored andcommitted
[core-dev] change registry-facade PodSecurityPolicy
1 parent 6c71369 commit f893ad5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.werft/jobs/build/installer/post-process.sh

+7
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,13 @@ while [ "$documentIndex" -le "$DOCS" ]; do
308308
yq w -i k8s.yaml -d "$documentIndex" spec.suspend "true"
309309
fi
310310

311+
# change registry-facade PodSecurityPolicy
312+
NAMESPACE=$(kubens -c)
313+
if [[ "$NAMESPACE-ns-registry-facade" == "$NAME" ]] && [[ "$KIND" == "PodSecurityPolicy" ]]; then
314+
yq w -i k8s.yaml -d "$documentIndex" spec.hostPorts[0].min "$REG_DAEMON_PORT"
315+
yq w -i k8s.yaml -d "$documentIndex" spec.hostPorts[0].max "$REG_DAEMON_PORT"
316+
fi
317+
311318
# Uncomment to change or remove resources from the configmap which can be used to uninstall Gitpod
312319
# There are a couple use cases where you may want to do this:
313320
# 1. We don't want to uninstall a shared resource that is needed by other preview env namespaces

0 commit comments

Comments
 (0)