From 845cefe4198c3aff907c788667a483f55edc9bb4 Mon Sep 17 00:00:00 2001 From: Jacob LeGrone Date: Mon, 16 Jul 2018 13:28:28 -0400 Subject: [PATCH] Add helm test Usage: helm test --cleanup --- .../templates/tests/helloworld.yaml | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 charts/virtual-kubelet/templates/tests/helloworld.yaml diff --git a/charts/virtual-kubelet/templates/tests/helloworld.yaml b/charts/virtual-kubelet/templates/tests/helloworld.yaml new file mode 100644 index 000000000..41fa0173f --- /dev/null +++ b/charts/virtual-kubelet/templates/tests/helloworld.yaml @@ -0,0 +1,26 @@ +apiVersion: v1 +kind: Pod +metadata: + name: "{{ .Release.Name }}-{{ .Release.Revision }}-test" + labels: + role: test + annotations: + "helm.sh/hook": test-success +spec: + containers: + - image: hello-world:linux + imagePullPolicy: Always + name: helloworld + resources: + requests: + memory: "0.1G" + cpu: 10m + limits: + memory: "0.1G" + cpu: 10m + dnsPolicy: ClusterFirst + nodeName: "{{ .Values.nodeName }}" + restartPolicy: Never + tolerations: + - key: "{{ .Values.nodeTaint }}" + effect: NoSchedule