File tree Expand file tree Collapse file tree
charts/platform-api/templates Expand file tree Collapse file tree Original file line number Diff line number Diff 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 -}}
7680imagePullSecrets:
Original file line number Diff line number Diff 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 :
You can’t perform that action at this time.
0 commit comments