diff --git a/mariadb/templates/pod-test.yaml b/mariadb/templates/pod-test.yaml index 38cd59266..20ece6e27 100644 --- a/mariadb/templates/pod-test.yaml +++ b/mariadb/templates/pod-test.yaml @@ -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: diff --git a/mariadb/values_overrides/apparmor.yaml b/mariadb/values_overrides/apparmor.yaml index 5fed2dcc5..f2f16c6cf 100644 --- a/mariadb/values_overrides/apparmor.yaml +++ b/mariadb/values_overrides/apparmor.yaml @@ -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