Merge "Kubernetes-keystone-webhook: Add security context"

This commit is contained in:
Zuul 2019-03-15 16:33:27 +00:00 committed by Gerrit Code Review
commit 6637610282
2 changed files with 6 additions and 0 deletions

View File

@ -38,10 +38,13 @@ spec:
configmap-bin-hash: {{ tuple "configmap-bin.yaml" . | include "helm-toolkit.utils.hash" }}
configmap-etc-hash: {{ tuple "configmap-etc.yaml" . | include "helm-toolkit.utils.hash" }}
spec:
{{ dict "envAll" $envAll "application" "kubernetes-keystone-webhook" | include "helm-toolkit.snippets.kubernetes_pod_security_context" | indent 6 }}
containers:
- name: kubernetes-keystone-webhook
{{ tuple $envAll "kubernetes_keystone_webhook" | include "helm-toolkit.snippets.image" | indent 10 }}
{{ tuple $envAll $envAll.Values.pod.resources.server | include "helm-toolkit.snippets.kubernetes_resources" | indent 10 }}
securityContext:
allowPrivilegeEscalation: false
command:
- /tmp/start.sh
readinessProbe:

View File

@ -49,6 +49,9 @@ network:
port: 30601
pod:
user:
kubernetes-keystone-webhook:
uid: 65534
affinity:
anti:
type: