fix helm test
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user