mariadb: change container name to static

Change-Id: I2f7939015cced812cd7e49ad35c60d8384f13c1f
This commit is contained in:
KHIYANI, RAHUL (rk0850) 2020-06-03 11:04:21 -05:00 committed by Rahul Khiyani
parent b62a46336c
commit 38775079fb
2 changed files with 3 additions and 3 deletions

View File

@ -28,7 +28,7 @@ metadata:
annotations:
"helm.sh/hook": test-success
{{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" }}
{{ dict "envAll" $envAll "podName" "mariadb-test" "containerNames" (list "init" "mariadb-mariadb-test") | include "helm-toolkit.snippets.kubernetes_mandatory_access_control_annotation" | indent 4 }}
{{ dict "envAll" $envAll "podName" "mariadb-test" "containerNames" (list "init" "mariadb-test") | include "helm-toolkit.snippets.kubernetes_mandatory_access_control_annotation" | indent 4 }}
spec:
shareProcessNamespace: true
serviceAccountName: {{ $serviceAccountName }}
@ -39,7 +39,7 @@ spec:
initContainers:
{{ tuple $envAll "tests" list | include "helm-toolkit.snippets.kubernetes_entrypoint_init_container" | indent 8 }}
containers:
- name: {{.Release.Name}}-mariadb-test
- name: mariadb-test
{{ dict "envAll" $envAll "application" "tests" "container" "test" | include "helm-toolkit.snippets.kubernetes_container_security_context" | indent 6 }}
{{ tuple $envAll "scripted_test" | include "helm-toolkit.snippets.image" | indent 6 }}
command:

View File

@ -17,7 +17,7 @@ pod:
mariadb-backup: runtime/default
mariadb-test:
init: runtime/default
mariadb-mariadb-test: runtime/default
mariadb-test: runtime/default
prometheus-mysql-exporter:
init: runtime/default
mysql-exporter: runtime/default