Tornjak global image fix (#228)
This pr updates the Tornjak branch to work with the merged global registry configuration support. Signed-off-by: Mariusz Sabath <[email protected]> Signed-off-by: kfox1111 <[email protected]>
This commit is contained in:
@@ -162,7 +162,7 @@ spec:
|
||||
- name: tornjak
|
||||
securityContext:
|
||||
{{- toYaml .Values.controllerManager.securityContext | nindent 12 }}
|
||||
image: {{ template "spire-lib.image" (dict "appVersion" $.Chart.AppVersion "image" .Values.tornjak.image) }}
|
||||
image: {{ template "spire-lib.image" (dict "appVersion" $.Chart.AppVersion "image" .Values.tornjak.image "global" .Values.global) }}
|
||||
imagePullPolicy: {{ .Values.tornjak.image.pullPolicy }}
|
||||
startupProbe:
|
||||
httpGet:
|
||||
|
||||
@@ -6,7 +6,7 @@ Your release is named: {{ .Release.Name }}
|
||||
Namespace: {{ include "tornjak-frontend.namespace" . }}
|
||||
|
||||
Tornjak UI (Frontend)
|
||||
image: {{ template "tornjak-frontend.image" (dict "appVersion" $.Chart.AppVersion "image" .Values.image) }}
|
||||
image: {{ template "spire-lib.image" (dict "appVersion" $.Chart.AppVersion "image" .Values.image "global" .Values.global) }}
|
||||
pull policy: {{ .Values.image.pullPolicy }}
|
||||
Configured with Tornjak API (Backend): {{ include "tornjak-frontend.apiURL" . }}
|
||||
|
||||
|
||||
@@ -80,22 +80,6 @@ Create the name of the service account to use
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
{{/*
|
||||
Create an image name
|
||||
*/}}
|
||||
{{- define "tornjak-frontend.image" -}}
|
||||
{{- if eq (substr 0 7 .image.version) "sha256:" -}}
|
||||
{{- printf "%s/%s@%s" .image.registry .image.repository .image.version -}}
|
||||
{{- else if .appVersion -}}
|
||||
{{- printf "%s/%s:%s" .image.registry .image.repository (default .appVersion .image.version) -}}
|
||||
{{- else if
|
||||
.Values.tornjakFrontend.image.version -}}
|
||||
{{- printf "%s/%s:%s" .Values.tornjakFrontend.image.registry .Values.tornjakFrontend.image.repository .Values.tornjakFrontend.image.version -}}
|
||||
{{- else -}}
|
||||
{{- printf "%s/%s" .Values.tornjakFrontend.image.registry .Values.tornjakFrontend.image.repository -}}
|
||||
{{- end -}}
|
||||
{{- end }}
|
||||
|
||||
{{/*
|
||||
Create URL for accessing Tornjak APIs
|
||||
*/}}
|
||||
|
||||
@@ -24,7 +24,7 @@ spec:
|
||||
{{- toYaml .Values.podSecurityContext | nindent 8 }}
|
||||
containers:
|
||||
- name: {{ include "tornjak-frontend.fullname" . }}
|
||||
image: {{ template "tornjak-frontend.image" (dict "appVersion" $.Chart.AppVersion "image" .Values.image) }}
|
||||
image: {{ template "spire-lib.image" (dict "appVersion" $.Chart.AppVersion "image" .Values.image "global" .Values.global) }}
|
||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||
securityContext:
|
||||
{{- toYaml .Values.securityContext | nindent 12 }}
|
||||
|
||||
Reference in New Issue
Block a user