Enable Apparmor to all rabbitmq test pods
Change-Id: I60499c39e1cdd1e0657e7ff9241a835cd0b0a266
This commit is contained in:
parent
99c09daa74
commit
d964bff1bf
@ -63,7 +63,7 @@ spec:
|
||||
subPath: erlang_cookie
|
||||
readOnly: true
|
||||
containers:
|
||||
- name: {{.Release.Name}}-rabbitmq-cluster-wait
|
||||
- name: rabbitmq-rabbitmq-cluster-wait
|
||||
{{ tuple $envAll "scripted_test" | include "helm-toolkit.snippets.image" | indent 10 }}
|
||||
{{ dict "envAll" $envAll "application" "cluster_wait" "container" "rabbitmq_cluster_wait" | include "helm-toolkit.snippets.kubernetes_container_security_context" | indent 10 }}
|
||||
env:
|
||||
|
@ -33,6 +33,7 @@ metadata:
|
||||
annotations:
|
||||
{{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" }}
|
||||
"helm.sh/hook": test-success
|
||||
{{ dict "envAll" $envAll "podName" "rabbitmq-rabbitmq-test" "containerNames" (list "init" "rabbitmq-rabbitmq-test") | include "helm-toolkit.snippets.kubernetes_mandatory_access_control_annotation" | indent 4 }}
|
||||
spec:
|
||||
{{ dict "envAll" $envAll "application" "test" | include "helm-toolkit.snippets.kubernetes_pod_security_context" | indent 2 }}
|
||||
serviceAccountName: {{ $serviceAccountName }}
|
||||
@ -42,7 +43,7 @@ spec:
|
||||
initContainers:
|
||||
{{ tuple $envAll "tests" list | include "helm-toolkit.snippets.kubernetes_entrypoint_init_container" | indent 4 }}
|
||||
containers:
|
||||
- name: {{.Release.Name}}-rabbitmq-test
|
||||
- name: rabbitmq-rabbitmq-test
|
||||
{{ tuple $envAll "scripted_test" | include "helm-toolkit.snippets.image" | indent 6 }}
|
||||
{{ dict "envAll" $envAll "application" "test" "container" "rabbitmq_test" | include "helm-toolkit.snippets.kubernetes_container_security_context" | indent 6 }}
|
||||
env:
|
||||
|
@ -14,6 +14,9 @@ pod:
|
||||
prometheus-rabbitmq-exporter:
|
||||
init: runtime/default
|
||||
rabbitmq-exporter: runtime/default
|
||||
rabbitmq-rabbitmq-test:
|
||||
rabbitmq-rabbitmq-test: runtime/default
|
||||
init: runtime/default
|
||||
|
||||
monitoring:
|
||||
prometheus:
|
||||
|
Loading…
Reference in New Issue
Block a user