2
0
Эх сурвалжийг харах

Add basic helm test

See https://github.com/wekan/charts/pull/2
and https://helm.sh/docs/topics/chart_tests/
Varac 3 жил өмнө
parent
commit
f094dfb84f

+ 19 - 0
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