Add missing pod level security context template for mariadb-backup

This change adds security-context template at pod level and also it
removes duplicate run as user value for mariadb-backup container as
it's already given at pod level

Change-Id: I01da9d1b5a2b8d44f4bbf52e15842e2316c6086c
This commit is contained in:
KHIYANI, RAHUL (rk0850) 2020-07-20 10:08:03 -05:00 committed by Andrii Ostapenko
parent 6fa7dae7af
commit 0da55ad85e
2 changed files with 1 additions and 1 deletions

View File

@ -49,6 +49,7 @@ spec:
labels:
{{ tuple $envAll "mariadb-backup" "backup" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 12 }}
spec:
{{ dict "envAll" $envAll "application" "mariadb_backup" | include "helm-toolkit.snippets.kubernetes_pod_security_context" | indent 10 }}
serviceAccountName: {{ $serviceAccountName }}
restartPolicy: OnFailure
nodeSelector:

View File

@ -117,7 +117,6 @@ pod:
runAsUser: 0
readOnlyRootFilesystem: true
mariadb_backup:
runAsUser: 65534
readOnlyRootFilesystem: true
allowPrivilegeEscalation: false
tests: