Browse Source
fix: allow overriding Enterprise image name using Helm #8361 (#8363)
* fix: allow overriding Enterprise image name using Helm #8361
* refactor: flatten image name construction logic for better readability
pull/8365/head
Chris Lu
1 day ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
3 additions and
1 deletions
-
k8s/charts/seaweedfs/templates/shared/_helpers.tpl
|
|
@ -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 -}} |
|
|
|