Enable Apparmor to Placement db-migrate Jobs
Change-Id: I15141ff74cbc731238d634fb11995d21234327ba Signed-off-by: diwakar thyagaraj <diwakar.chitoor.thyagaraj@att.com>
This commit is contained in:
parent
94642833dd
commit
2ae6f9200a
@ -29,6 +29,8 @@ spec:
|
|||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
{{ tuple $envAll "placement" $service | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 8 }}
|
{{ 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:
|
spec:
|
||||||
serviceAccountName: {{ $serviceAccountName }}
|
serviceAccountName: {{ $serviceAccountName }}
|
||||||
restartPolicy: OnFailure
|
restartPolicy: OnFailure
|
||||||
|
@ -5,4 +5,10 @@ pod:
|
|||||||
placement-api:
|
placement-api:
|
||||||
placement-api: runtime/default
|
placement-api: runtime/default
|
||||||
init: runtime/default
|
init: runtime/default
|
||||||
|
placement-db-migrate:
|
||||||
|
init: runtime/default
|
||||||
|
placement-mysql-migration: runtime/default
|
||||||
|
|
||||||
|
manifests:
|
||||||
|
job_db_migrate: true
|
||||||
...
|
...
|
||||||
|
Loading…
Reference in New Issue
Block a user