From 2239ba56529b30de0824b305c99ec462abd47ab1 Mon Sep 17 00:00:00 2001 From: Aaron Sheffield Date: Tue, 10 Jul 2018 15:56:46 -0500 Subject: [PATCH] Add test pods labels. - Uses helm toolkit to add labels to test pods. Change-Id: I4c2c320894b7e8a8b6ce5ce8698f2342c885ac4f --- charts/haproxy/templates/tests/test-haproxy-health.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/charts/haproxy/templates/tests/test-haproxy-health.yaml b/charts/haproxy/templates/tests/test-haproxy-health.yaml index 7891b10b..e1c4fa59 100644 --- a/charts/haproxy/templates/tests/test-haproxy-health.yaml +++ b/charts/haproxy/templates/tests/test-haproxy-health.yaml @@ -16,6 +16,7 @@ {{/* Test that HAProxy is running and the config is valid */}} {{- if .Values.manifests.test_haproxy }} +{{- $envAll := . }} --- apiVersion: v1 kind: Pod @@ -23,6 +24,8 @@ metadata: name: "{{ .Release.Name }}-haproxy-test" annotations: "helm.sh/hook": "test-success" + labels: +{{ tuple $envAll "kubernetes" "haproxy-test" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 4 }} spec: restartPolicy: Never containers: