Metrics image registry takes value from global (#10555)

Signed-off-by: Enrique <enrique.gonzalez@ic-consult.com>
This commit is contained in:
offzale
2019-01-13 22:32:40 -08:00
committed by Kubernetes Prow Robot
parent 415ef1cdbe
commit 742f7ed346
2 changed files with 10 additions and 2 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
name: nats
version: 2.0.1
version: 2.0.2
appVersion: 1.3.0
description: An open-source, cloud-native messaging system
keywords:
+9 -1
View File
@@ -69,5 +69,13 @@ Return the proper image name (for the metrics image)
{{- $registryName := .Values.metrics.image.registry -}}
{{- $repositoryName := .Values.metrics.image.repository -}}
{{- $tag := .Values.metrics.image.tag | toString -}}
{{- printf "%s/%s:%s" $registryName $repositoryName $tag -}}
{{- if .Values.global }}
{{- if .Values.global.imageRegistry }}
{{- printf "%s/%s:%s" .Values.global.imageRegistry $repositoryName $tag -}}
{{- else -}}
{{- printf "%s/%s:%s" $registryName $repositoryName $tag -}}
{{- end -}}
{{- else -}}
{{- printf "%s/%s:%s" $registryName $repositoryName $tag -}}
{{- end -}}
{{- end -}}