Add basic helm test

See https://github.com/wekan/charts/pull/2
and https://helm.sh/docs/topics/chart_tests/
This commit is contained in:
Varac 2021-12-01 09:42:39 +01:00
parent b84cc037c1
commit f094dfb84f
No known key found for this signature in database
GPG key ID: 5465E77E7876ED04

View file

@ -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