diff --git a/placement/templates/job-db-migrate.yaml b/placement/templates/job-db-migrate.yaml index 7178498f9c..99d75e74b2 100644 --- a/placement/templates/job-db-migrate.yaml +++ b/placement/templates/job-db-migrate.yaml @@ -29,6 +29,8 @@ spec: metadata: labels: {{ tuple $envAll "placement" $service | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 8 }} + annotations: +{{ dict "envAll" $envAll "podName" "placement-db-migrate" "containerNames" (list "placement-mysql-migration" "init") | include "helm-toolkit.snippets.kubernetes_mandatory_access_control_annotation" | indent 8 }} spec: serviceAccountName: {{ $serviceAccountName }} restartPolicy: OnFailure diff --git a/placement/values_overrides/apparmor.yaml b/placement/values_overrides/apparmor.yaml index ee883ac067..84ca7507d0 100644 --- a/placement/values_overrides/apparmor.yaml +++ b/placement/values_overrides/apparmor.yaml @@ -5,4 +5,10 @@ pod: placement-api: placement-api: runtime/default init: runtime/default + placement-db-migrate: + init: runtime/default + placement-mysql-migration: runtime/default + +manifests: + job_db_migrate: true ...