From f094dfb84f634debb2bc93e0c2b84640685252a3 Mon Sep 17 00:00:00 2001 From: Varac Date: Wed, 1 Dec 2021 09:42:39 +0100 Subject: [PATCH] Add basic helm test See https://github.com/wekan/charts/pull/2 and https://helm.sh/docs/topics/chart_tests/ --- helm/wekan/templates/tests/test-http.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 helm/wekan/templates/tests/test-http.yaml diff --git a/helm/wekan/templates/tests/test-http.yaml b/helm/wekan/templates/tests/test-http.yaml new file mode 100644 index 000000000..2ed7e7518 --- /dev/null +++ b/helm/wekan/templates/tests/test-http.yaml @@ -0,0 +1,19 @@ +apiVersion: v1 +kind: Pod +metadata: + name: "{{ template "wekan.fullname" . }}-test-http" + labels: + app: {{ template "wekan.name" . }} + chart: {{ template "wekan.chart" . }} + component: wekan + release: {{ .Release.Name }} + heritage: {{ .Release.Service }} + annotations: + "helm.sh/hook": test +spec: + containers: + - name: wget + image: busybox + command: ['wget', '-O', '/dev/stdout'] + args: ['{{ template "wekan.fullname" . }}:{{ .Values.service.port }}'] + restartPolicy: Never