From dc16a897d70b1c05aae70a896d408fe55cea88fa Mon Sep 17 00:00:00 2001 From: Steve Wilkerson Date: Mon, 9 Jul 2018 17:02:03 -0500 Subject: [PATCH] Add missing labels to helm test pods This adds missing labels to the helm test pods in osh-infra Change-Id: I618d9089bfde2d847411f5f876f0ff6afd9cce7f --- elasticsearch/templates/pod-helm-tests.yaml | 2 ++ fluent-logging/templates/pod-helm-tests.yaml | 2 ++ grafana/templates/pod-helm-tests.yaml | 2 ++ prometheus/templates/pod-helm-tests.yaml | 2 ++ 4 files changed, 8 insertions(+) diff --git a/elasticsearch/templates/pod-helm-tests.yaml b/elasticsearch/templates/pod-helm-tests.yaml index b6bd74bb0..86179f1f5 100644 --- a/elasticsearch/templates/pod-helm-tests.yaml +++ b/elasticsearch/templates/pod-helm-tests.yaml @@ -22,6 +22,8 @@ apiVersion: v1 kind: Pod metadata: name: "{{.Release.Name}}-test" + labels: +{{ tuple $envAll "elasticsearch" "test" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 4 }} annotations: "helm.sh/hook": test-success spec: diff --git a/fluent-logging/templates/pod-helm-tests.yaml b/fluent-logging/templates/pod-helm-tests.yaml index 077ee2868..a004d9925 100644 --- a/fluent-logging/templates/pod-helm-tests.yaml +++ b/fluent-logging/templates/pod-helm-tests.yaml @@ -22,6 +22,8 @@ apiVersion: v1 kind: Pod metadata: name: "{{.Release.Name}}-test" + labels: +{{ tuple $envAll "fluent-logging" "test" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 4 }} annotations: "helm.sh/hook": test-success spec: diff --git a/grafana/templates/pod-helm-tests.yaml b/grafana/templates/pod-helm-tests.yaml index 13aaf500d..30971fe40 100644 --- a/grafana/templates/pod-helm-tests.yaml +++ b/grafana/templates/pod-helm-tests.yaml @@ -22,6 +22,8 @@ apiVersion: v1 kind: Pod metadata: name: "{{.Release.Name}}-test" + labels: +{{ tuple $envAll "grafana" "test" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 4 }} annotations: "helm.sh/hook": test-success spec: diff --git a/prometheus/templates/pod-helm-tests.yaml b/prometheus/templates/pod-helm-tests.yaml index 70f63ad89..a256760a2 100644 --- a/prometheus/templates/pod-helm-tests.yaml +++ b/prometheus/templates/pod-helm-tests.yaml @@ -21,6 +21,8 @@ apiVersion: v1 kind: Pod metadata: name: "{{.Release.Name}}-test" + labels: +{{ tuple $envAll "prometheus" "test" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 4 }} annotations: "helm.sh/hook": test-success spec: