Enable Apparmor to all Armada test pods

Depends-On: https://review.opendev.org/#/c/731856/

Change-Id: Ib0ea0873d78edd0e3c5f847c84ce89cf151268ca
This commit is contained in:
DODDA, PRATEEK 2020-05-20 11:58:34 -05:00 committed by DODDA, PRATEEK REDDY (pd2839)
parent 6b2c7245de
commit 04ac986684
2 changed files with 5 additions and 2 deletions

View File

@ -22,10 +22,11 @@ Test the Armada API, to ensure that the health endpoint is active and able to re
apiVersion: v1
kind: Pod
metadata:
name: "{{ .Release.Name }}-armada-api-test"
name: armada-api-test
annotations:
"helm.sh/hook": "test-success"
{{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" }}
{{ dict "envAll" $envAll "podName" "armada-api-test" "containerNames" (list "armada-api-test") | include "helm-toolkit.snippets.kubernetes_mandatory_access_control_annotation" | indent 4 }}
labels:
{{ tuple $envAll "armada" "api-test" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 4 }}
spec:
@ -33,7 +34,7 @@ spec:
nodeSelector:
{{ .Values.labels.test.node_selector_key }}: {{ .Values.labels.test.node_selector_value }}
containers:
- name: "{{ .Release.Name }}-armada-api-test"
- name: armada-api-test
env:
- name: 'ARMADA_URL'
value: {{ tuple "armada" "internal" "api" . | include "helm-toolkit.endpoints.host_and_port_endpoint_uri_lookup" | quote }}

View File

@ -232,6 +232,8 @@ pod:
init: runtime/default
armada-api: runtime/default
tiller: runtime/default
armada-api-test:
armada-api-test: runtime/default
probes:
armada:
api: