diff --git a/mariadb/templates/cron-job-backup-mariadb.yaml b/mariadb/templates/cron-job-backup-mariadb.yaml index 80ecdfa2e..165e1535e 100644 --- a/mariadb/templates/cron-job-backup-mariadb.yaml +++ b/mariadb/templates/cron-job-backup-mariadb.yaml @@ -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: diff --git a/mariadb/values.yaml b/mariadb/values.yaml index 18de2ee5f..b5b6dfe27 100644 --- a/mariadb/values.yaml +++ b/mariadb/values.yaml @@ -117,7 +117,6 @@ pod: runAsUser: 0 readOnlyRootFilesystem: true mariadb_backup: - runAsUser: 65534 readOnlyRootFilesystem: true allowPrivilegeEscalation: false tests: