* fix: allow overriding Enterprise image name using Helm #8361 * refactor: flatten image name construction logic for better readability
This commit is contained in:
@@ -135,7 +135,9 @@ Inject extra environment vars in the format key:value, if populated
|
|||||||
{{- $repositoryName := default .Values.image.repository .Values.global.repository | toString -}}
|
{{- $repositoryName := default .Values.image.repository .Values.global.repository | toString -}}
|
||||||
{{- $name := .Values.global.imageName | toString -}}
|
{{- $name := .Values.global.imageName | toString -}}
|
||||||
{{- $tag := default .Chart.AppVersion .Values.image.tag | toString -}}
|
{{- $tag := default .Chart.AppVersion .Values.image.tag | toString -}}
|
||||||
{{- if $repositoryName -}}
|
{{- if .Values.image.repository -}}
|
||||||
|
{{- $name = $repositoryName -}}
|
||||||
|
{{- else if $repositoryName -}}
|
||||||
{{- $name = printf "%s/%s" (trimSuffix "/" $repositoryName) (base $name) -}}
|
{{- $name = printf "%s/%s" (trimSuffix "/" $repositoryName) (base $name) -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- if $registryName -}}
|
{{- if $registryName -}}
|
||||||
|
|||||||
Reference in New Issue
Block a user