Tornjak reuse spire-lib.cluster-domain macro (#292)
Resolves #291 Signed-off-by: Marco Franssen <[email protected]>
This commit is contained in:
@@ -41,14 +41,6 @@ Create chart name and version as used by the chart label.
|
|||||||
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
|
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{- define "tornjak-frontend.cluster-domain" -}}
|
|
||||||
{{- if ne (len (dig "k8s" "clusterDomain" "" .Values.global)) 0 }}
|
|
||||||
{{- .Values.global.k8s.clusterDomain }}
|
|
||||||
{{- else }}
|
|
||||||
{{- .Values.clusterDomain }}
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
|
||||||
|
|
||||||
{{/*
|
{{/*
|
||||||
Common labels
|
Common labels
|
||||||
*/}}
|
*/}}
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ spec:
|
|||||||
- name: curl-tornjak-frontend
|
- name: curl-tornjak-frontend
|
||||||
image: cgr.dev/chainguard/bash:latest
|
image: cgr.dev/chainguard/bash:latest
|
||||||
command: ['curl']
|
command: ['curl']
|
||||||
args: ['-k', '-s', '-f', 'http://{{ include "tornjak-frontend.fullname" . }}.{{ include "tornjak-frontend.namespace" . }}.svc.{{ include "tornjak-frontend.cluster-domain" . }}:{{ .Values.service.port }}']
|
args: ['-k', '-s', '-f', 'http://{{ include "tornjak-frontend.fullname" . }}.{{ include "tornjak-frontend.namespace" . }}.svc.{{ include "spire-lib.cluster-domain" . }}:{{ .Values.service.port }}']
|
||||||
securityContext:
|
securityContext:
|
||||||
{{- toYaml .Values.securityContext | nindent 8 }}
|
{{- toYaml .Values.securityContext | nindent 8 }}
|
||||||
restartPolicy: Never
|
restartPolicy: Never
|
||||||
|
|||||||
Reference in New Issue
Block a user