Add test pods labels.
- Uses helm toolkit to add labels to test pods. Change-Id: I4c2c320894b7e8a8b6ce5ce8698f2342c885ac4f
This commit is contained in:
parent
57d8ea6301
commit
2239ba5652
|
@ -16,6 +16,7 @@
|
||||||
{{/*
|
{{/*
|
||||||
Test that HAProxy is running and the config is valid */}}
|
Test that HAProxy is running and the config is valid */}}
|
||||||
{{- if .Values.manifests.test_haproxy }}
|
{{- if .Values.manifests.test_haproxy }}
|
||||||
|
{{- $envAll := . }}
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Pod
|
kind: Pod
|
||||||
|
@ -23,6 +24,8 @@ metadata:
|
||||||
name: "{{ .Release.Name }}-haproxy-test"
|
name: "{{ .Release.Name }}-haproxy-test"
|
||||||
annotations:
|
annotations:
|
||||||
"helm.sh/hook": "test-success"
|
"helm.sh/hook": "test-success"
|
||||||
|
labels:
|
||||||
|
{{ tuple $envAll "kubernetes" "haproxy-test" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 4 }}
|
||||||
spec:
|
spec:
|
||||||
restartPolicy: Never
|
restartPolicy: Never
|
||||||
containers:
|
containers:
|
||||||
|
|
Loading…
Reference in New Issue