File tree Expand file tree Collapse file tree 6 files changed +23
-10
lines changed
Expand file tree Collapse file tree 6 files changed +23
-10
lines changed Original file line number Diff line number Diff line change 1+ {{/*
2+ Return the Image Registry Secret Names
3+ */ }}
4+ {{- define " odkEnketo.imagePullSecrets" -}}
5+ {{- include " common.images.pullSecrets" (dict " images" (list .Values.image .Values.redis.main.image .Values.redis.cache.image ) " global" .Values.global ) -}}
6+ {{- end -}}
7+
18{{/*
29Render Env values section
310*/ }}
Original file line number Diff line number Diff line change 1414 labels :
1515 app.kubernetes.io/name : {{ include "common.names.fullname" . }}
1616 spec :
17- {{- include "common.images.pullSecrets" (dict "images" (list .Values.image) "global" .Values.global) | nindent 6 }}
17+ {{- include "odkEnketo.imagePullSecrets" . | nindent 6 }}
1818 {{- if .Values.podSecurityContext.enabled }}
1919 securityContext : {{- omit .Values.podSecurityContext "enabled" | toYaml | nindent 8 }}
2020 {{- end }}
Original file line number Diff line number Diff line change @@ -15,10 +15,11 @@ spec:
1515 labels :
1616 app.kubernetes.io/name : {{ include "common.names.fullname" . }}-redis-cache
1717 spec :
18+ {{- include "odkEnketo.imagePullSecrets" . | nindent 6 }}
1819 containers :
1920 - name : redis
20- image : {{ . Values.redis.cache.image }}
21- imagePullPolicy : {{ .Values.redis.cache.imagePullPolicy }}
21+ image : {{ include "common.images.image" (dict "imageRoot" . Values.redis.cache.image "global" .Values.global) }}
22+ imagePullPolicy : {{ .Values.redis.cache.image.pullPolicy }}
2223 {{- with .Values.command }}
2324 command :
2425 {{- toYaml . | nindent 12 }}
Original file line number Diff line number Diff line change @@ -15,10 +15,11 @@ spec:
1515 labels :
1616 app.kubernetes.io/name : {{ include "common.names.fullname" . }}-redis-main
1717 spec :
18+ {{- include "odkEnketo.imagePullSecrets" . | nindent 6 }}
1819 containers :
1920 - name : redis
20- image : {{ . Values.redis.main.image }}
21- imagePullPolicy : {{ .Values.redis.main.imagePullPolicy }}
21+ image : {{ include "common.images.image" (dict "imageRoot" . Values.redis.main.image "global" .Values.global) }}
22+ imagePullPolicy : {{ .Values.redis.main.image.pullPolicy }}
2223 {{- with .Values.command }}
2324 command :
2425 {{- toYaml . | nindent 12 }}
Original file line number Diff line number Diff line change @@ -87,8 +87,10 @@ envVarsFrom:
8787redis :
8888 main :
8989 enabled : true
90- image : redis:7.2
91- imagePullPolicy : IfNotPresent
90+ image :
91+ repository : redis
92+ tag : ' 7.2'
93+ pullPolicy : IfNotPresent
9294 replicaCount : 1
9395 confMountPath : /usr/local/etc/redis/mnt
9496 command :
@@ -100,8 +102,10 @@ redis:
100102 port : 6379
101103 cache :
102104 enabled : true
103- image : redis:7.2
104- imagePullPolicy : IfNotPresent
105+ image :
106+ repository : redis
107+ tag : ' 7.2'
108+ pullPolicy : IfNotPresent
105109 replicaCount : 1
106110 confMountPath : /usr/local/etc/redis/mnt
107111 command :
Original file line number Diff line number Diff line change @@ -246,11 +246,11 @@ frontend:
246246 enabled : true
247247 replicaCount : 1
248248
249- containerPort : 80
250249 podAnnotations : {}
251250 podLabels :
252251 app.kubernetes.io/name : ' {{ include "common.names.name" . }}-frontend'
253252
253+ containerPort : 80
254254 service :
255255 type : ClusterIP
256256 port : 80
You can’t perform that action at this time.
0 commit comments