File tree 3 files changed +14
-2
lines changed
charts/prometheus-yet-another-cloudwatch-exporter
3 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ apiVersion: v2
2
2
name : prometheus-yet-another-cloudwatch-exporter
3
3
description : Yace - Yet Another CloudWatch Exporter
4
4
type : application
5
- version : 0.39.5
5
+ version : 0.40.0
6
6
appVersion : " v0.62.1"
7
7
home : https://github.com/prometheus-community/helm-charts
8
8
sources :
Original file line number Diff line number Diff line change @@ -59,3 +59,15 @@ Create the name of the service account to use
59
59
{ {- default " default" .Values.serviceAccount.name } }
60
60
{ {- end } }
61
61
{ {- end } }
62
+
63
+ { {/*
64
+ Return the correct image registry.
65
+ */} }
66
+ { {- define " yet-another-cloudwatch-exporter.image.repository" -} }
67
+ { {- $registry := .Values.image.registry -} }
68
+ { {- if $registry -} }
69
+ { {- printf " %s/%s" $registry .Values.image.repository -} }
70
+ { {- else -} }
71
+ { {- printf " %s" .Values.image.repository -} }
72
+ { {- end } }
73
+ { {- end -} }
Original file line number Diff line number Diff line change 42
42
- name : {{ .Chart.Name }}
43
43
securityContext :
44
44
{{- toYaml .Values.securityContext | nindent 12 }}
45
- image : " {{ .Values.image.registry }}/{{ .Values. image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
45
+ image : " {{- include " yet-another-cloudwatch-exporter. image.repository" . }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
46
46
imagePullPolicy : {{ .Values.image.pullPolicy }}
47
47
command :
48
48
- " yace"
You can’t perform that action at this time.
0 commit comments