From f35e56d7777290f4f288b6c90a3971cdff183c30 Mon Sep 17 00:00:00 2001 From: Aaron Sheffield Date: Tue, 10 Jul 2018 15:57:36 -0500 Subject: [PATCH] Add test pods labels. - Uses helm toolkit to add labels to test pods. Change-Id: I38a49f3772d5d1f68c23de2789f39f72ce390837 --- charts/armada/templates/tests/test-armada-api.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/charts/armada/templates/tests/test-armada-api.yaml b/charts/armada/templates/tests/test-armada-api.yaml index 89cbf51a..ffb6eace 100644 --- a/charts/armada/templates/tests/test-armada-api.yaml +++ b/charts/armada/templates/tests/test-armada-api.yaml @@ -11,11 +11,13 @@ # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and -# limitations under the License. */}} +# limitations under the License. +*/}} {{/* Test the Armada API, to ensure that the health endpoint is active and able to respond. */}} {{- if .Values.manifests.test_armada_api }} +{{- $envAll := . }} --- apiVersion: v1 kind: Pod @@ -23,6 +25,8 @@ metadata: name: "{{ .Release.Name }}-armada-api-test" annotations: "helm.sh/hook": "test-success" + labels: +{{ tuple $envAll "armada" "api-test" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 4 }} spec: restartPolicy: Never containers: