Skip to content

Commit 71fa5ef

Browse files
authored
Merge pull request #98 from lalithkota/main
Odk central enketo: Image config fixed
2 parents 030a5b3 + 8524ec0 commit 71fa5ef

File tree

6 files changed

+23
-10
lines changed

6 files changed

+23
-10
lines changed

charts/odk-central-enketo/templates/_helpers.tpl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
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
{{/*
29
Render Env values section
310
*/}}

charts/odk-central-enketo/templates/deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ spec:
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 }}

charts/odk-central-enketo/templates/redis/cache/deployment.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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 }}

charts/odk-central-enketo/templates/redis/main/deployment.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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 }}

charts/odk-central-enketo/values.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,10 @@ envVarsFrom:
8787
redis:
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:

charts/odk-central/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)