Skip to content

Commit 713a81e

Browse files
Use geoipdb.registry helper for maxmind-mmdb container image (#982)
Signed-off-by: RokibulHasan7 <mdrokibulhasan@appscode.com>
1 parent 10c06a3 commit 713a81e

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

charts/platform-api/templates/_helpers.tpl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,10 @@ Returns the registry used for image docker image
7171
{{- list .Values.registryFQDN .Values.image.registry | compact | join "/" }}
7272
{{- end }}
7373

74+
{{- define "geoipdb.registry" -}}
75+
{{- list .Values.registryFQDN .Values.geoipdb.registry | compact | join "/" }}
76+
{{- end }}
77+
7478
{{- define "appscode.imagePullSecrets" -}}
7579
{{- with .Values.imagePullSecrets -}}
7680
imagePullSecrets:

charts/platform-api/templates/statefulset.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ spec:
164164
- name: maxmind-mmdb
165165
securityContext:
166166
{{- toYaml .Values.securityContext | nindent 12 }}
167-
image: "{{ include "image.registry" . }}/{{ .Values.geoipdb.repository }}:{{ .Values.geoipdb.tag | default .Chart.AppVersion }}"
167+
image: "{{ include "geoipdb.registry" . }}/{{ .Values.geoipdb.repository }}:{{ .Values.geoipdb.tag | default .Chart.AppVersion }}"
168168
imagePullPolicy: {{ .Values.geoipdb.pullPolicy }}
169169
command: [ "sh", "-c", "cp /GeoLite2-City.mmdb /data/b3/maxmind-geoip/GeoLite2-City.mmdb" ]
170170
volumeMounts:

0 commit comments

Comments
 (0)