Skip to content

Commit 334ba3d

Browse files
Helm: Add global.imageRegistry (#3451)
Now if this chart is used as a subchart, the image registry will be taken from `global.imageRegistry` (if it exists). Signed-off-by: Yarden Shoham <[email protected]> Co-authored-by: Roman Zabaluev <[email protected]>
1 parent 4d20cb6 commit 334ba3d

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

charts/kafka-ui/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ apiVersion: v2
22
name: kafka-ui
33
description: A Helm chart for kafka-UI
44
type: application
5-
version: 0.5.3
5+
version: 0.5.4
66
appVersion: v0.5.0
77
icon: https://github.com/provectus/kafka-ui/raw/master/documentation/images/kafka-ui-logo.png

charts/kafka-ui/templates/_helpers.tpl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,11 @@ This allows us to check if the registry of the image is specified or not.
6868
*/}}
6969
{{- define "kafka-ui.imageName" -}}
7070
{{- $registryName := .Values.image.registry -}}
71+
{{- if .Values.global }}
72+
{{- if .Values.global.imageRegistry }}
73+
{{- $registryName = .Values.global.imageRegistry -}}
74+
{{- end -}}
75+
{{- end -}}
7176
{{- $repository := .Values.image.repository -}}
7277
{{- $tag := .Values.image.tag | default .Chart.AppVersion -}}
7378
{{- if $registryName }}

0 commit comments

Comments
 (0)