From 73b9d28defd8b90a6e08a8f663059da07b390298 Mon Sep 17 00:00:00 2001 From: Aaron Sheffield Date: Tue, 10 Jul 2018 15:57:09 -0500 Subject: [PATCH] Add test pods labels. - Uses helm toolkit to add labels to test pods. Change-Id: Ib931b3573e33896ad3826b05844271bde7b6ebd0 --- charts/deckhand/templates/tests/test-deckhand-api.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/charts/deckhand/templates/tests/test-deckhand-api.yaml b/charts/deckhand/templates/tests/test-deckhand-api.yaml index 06409592..c6170526 100644 --- a/charts/deckhand/templates/tests/test-deckhand-api.yaml +++ b/charts/deckhand/templates/tests/test-deckhand-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 Deckhand API, to ensure that the health endpoint is active and able to respond. */}} {{- if .Values.manifests.test_deckhand_api }} +{{- $envAll := . }} --- apiVersion: v1 kind: Pod @@ -23,6 +25,8 @@ metadata: name: "{{ .Release.Name }}-deckhand-api-test" annotations: "helm.sh/hook": "test-success" + labels: +{{ tuple $envAll "deckhand" "api-test" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 4 }} spec: restartPolicy: Never containers: