fix helm test

This commit is contained in:
Iain Sproat
2025-04-01 15:01:50 +01:00
parent 8ec6e2677d
commit 02f80b37cb
2 changed files with 9 additions and 1 deletions
@@ -23,6 +23,13 @@ If release name contains chart name it will be used as a full name.
{{- end }}
{{- end }}
{{/*
Create the fully qualified domain name of the service
*/}}
{{- define "speckle-preview-service.serviceFQDN" -}}
{{- printf "%s.%s.svc.cluster.local." (include "speckle-preview-service.serviceAccountName" .) .Values.namespace }}
{{- end }}
{{/*
Create chart name and version as used by the chart label.
*/}}
@@ -2,6 +2,7 @@ apiVersion: v1
kind: Pod
metadata:
name: "{{ include "speckle-preview-service.fullname" . }}-test-connection"
namespace: {{ .Values.namespace }}
labels:
{{- include "speckle-preview-service.labels" . | nindent 4 }}
annotations:
@@ -11,5 +12,5 @@ spec:
- name: wget
image: busybox
command: ['wget']
args: ['{{ include "speckle-preview-service.fullname" . }}:{{ .Values.service.port }}/readiness']
args: ['{{ include "speckle-preview-service.serviceFQDN" . }}:{{ .Values.service.port }}/readiness']
restartPolicy: Never