Fix cronjob app armor annotion

Moves the app armor annotation to the pod template.

Change-Id: If0134d4f74f850b0f0ba3f77703e3286c41ca82d
This commit is contained in:
SPEARS, DUSTIN (ds443n) 2025-03-31 11:17:40 -04:00
parent 402ca43f6e
commit 754859ce1d

View File

@ -78,10 +78,11 @@ spec:
metadata:
labels:
{{ tuple $envAll $applicationName "etcd-backup" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 8 }}
annotations:
{{ dict "envAll" $envAll "podName" "etcd-backup" "containerNames" (list "etcd-backup") | include "helm-toolkit.snippets.kubernetes_mandatory_access_control_annotation" | indent 8 }}
spec:
template:
metadata:
annotations:
{{ dict "envAll" $envAll "podName" "etcd-backup" "containerNames" (list "etcd-backup") | include "helm-toolkit.snippets.kubernetes_mandatory_access_control_annotation" | indent 12 }}
spec:
{{ dict "envAll" $envAll "application" "etcd-backup" | include "helm-toolkit.snippets.kubernetes_pod_security_context" | indent 10 }}
serviceAccountName: {{ .Values.service.name }}-{{ $serviceAccountName }}