mirror of
https://github.com/helm/charts.git
synced 2026-08-21 13:28:13 +00:00
Metrics image registry takes value from global (#10555)
Signed-off-by: Enrique <enrique.gonzalez@ic-consult.com>
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
415ef1cdbe
commit
742f7ed346
@@ -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:
|
||||
|
||||
@@ -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 -}}
|
||||
|
||||
Reference in New Issue
Block a user