feat(helm chart): add helm test container to the chart
This commit is contained in:
Родитель
b486b34f0c
Коммит
fbb42eec38
|
@ -0,0 +1,27 @@
|
|||
{{- if .Values.helm_test_enabled }}
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: "speckle-test-deployment"
|
||||
namespace: {{ .Values.namespace }}
|
||||
annotations:
|
||||
"helm.sh/hook": test
|
||||
labels:
|
||||
app: speckle-test-deployment
|
||||
project: speckle-server
|
||||
spec:
|
||||
containers:
|
||||
- name: test-deployment
|
||||
image: speckle/speckle-test-deployment:{{ .Values.docker_image_tag }}
|
||||
imagePullPolicy: {{ .Values.image.pullPolicy | quote }}
|
||||
{{- if .Values.securityContext.enabled }}
|
||||
securityContext:
|
||||
runAsUser: {{ .Values.securityContext.runAsUser }}
|
||||
{{- end }}
|
||||
env:
|
||||
- name: SPECKLE_SERVER
|
||||
value: https://{{ .Values.domain }}
|
||||
- name: SERVER_VERSION
|
||||
value: {{ .Values.docker_image_tag }}
|
||||
restartPolicy: Never
|
||||
{{- end }}
|
|
@ -97,3 +97,5 @@ secretName: server-vars
|
|||
|
||||
enable_prometheus_monitoring: false
|
||||
cert_manager_issuer: letsencrypt-staging
|
||||
|
||||
helm_test_enabled: true
|
Загрузка…
Ссылка в новой задаче