configure chart to support new flag
This commit is contained in:
parent
8988942821
commit
beccaa0267
3 changed files with 22 additions and 0 deletions
|
@ -39,6 +39,9 @@
|
||||||
{{- if .Values.controller.maxmindLicenseKey }}
|
{{- if .Values.controller.maxmindLicenseKey }}
|
||||||
- --maxmind-license-key={{ .Values.controller.maxmindLicenseKey }}
|
- --maxmind-license-key={{ .Values.controller.maxmindLicenseKey }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if .Values.controller.maxmindLicenseKeySecret }}
|
||||||
|
- --maxmind-license-key-file={{ .Values.controller.maxmindLicenseKeySecretVolumeMountPath }}/{{ .Values.controller.maxmindLicenseKeyFilename }}
|
||||||
|
{{- end }}
|
||||||
{{- if .Values.controller.healthCheckHost }}
|
{{- if .Values.controller.healthCheckHost }}
|
||||||
- --healthz-host={{ .Values.controller.healthCheckHost }}
|
- --healthz-host={{ .Values.controller.healthCheckHost }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
|
@ -167,6 +167,11 @@ spec:
|
||||||
mountPath: /usr/local/certificates/
|
mountPath: /usr/local/certificates/
|
||||||
readOnly: true
|
readOnly: true
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if .Values.controller.maxmindLicenseKeySecret }}
|
||||||
|
- name: maxmind-license-key
|
||||||
|
mountPath: {{ .Values.controller.maxmindLicenseKeySecretVolumeMountPath }}
|
||||||
|
readOnly: true
|
||||||
|
{{- end }}
|
||||||
{{- if .Values.controller.extraVolumeMounts }}
|
{{- if .Values.controller.extraVolumeMounts }}
|
||||||
{{- toYaml .Values.controller.extraVolumeMounts | nindent 12 }}
|
{{- toYaml .Values.controller.extraVolumeMounts | nindent 12 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
@ -236,6 +241,14 @@ spec:
|
||||||
path: key
|
path: key
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if .Values.controller.maxmindLicenseKeySecret }}
|
||||||
|
- name: maxmind-license-key
|
||||||
|
secret:
|
||||||
|
secretName: {{ .Values.controller.maxmindLicenseKeySecret }}
|
||||||
|
items:
|
||||||
|
- key: {{ .Values.controller.maxmindLicenseKeyFilename }}
|
||||||
|
path: {{ .Values.controller.maxmindLicenseKeyFilename }}
|
||||||
|
{{- end }}
|
||||||
{{- if .Values.controller.extraVolumes }}
|
{{- if .Values.controller.extraVolumes }}
|
||||||
{{ toYaml .Values.controller.extraVolumes | nindent 8 }}
|
{{ toYaml .Values.controller.extraVolumes | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
|
@ -150,6 +150,12 @@ controller:
|
||||||
# -- Maxmind license key to download GeoLite2 Databases.
|
# -- Maxmind license key to download GeoLite2 Databases.
|
||||||
## https://blog.maxmind.com/2019/12/18/significant-changes-to-accessing-and-using-geolite2-databases
|
## https://blog.maxmind.com/2019/12/18/significant-changes-to-accessing-and-using-geolite2-databases
|
||||||
maxmindLicenseKey: ""
|
maxmindLicenseKey: ""
|
||||||
|
# -- Alternatively provide the name of a secret to get the Maxmind license key from
|
||||||
|
maxmindLicenseKeySecret: ""
|
||||||
|
# -- Customize the location to mount the Maxmind license key secret
|
||||||
|
maxmindLicenseKeySecretVolumeMountPath: "/etc/maxmind"
|
||||||
|
# -- Customize the filename for the Maxmind license key secret
|
||||||
|
maxmindLicenseKeyFilename: "license_key"
|
||||||
# -- Additional command line arguments to pass to nginx-ingress-controller
|
# -- Additional command line arguments to pass to nginx-ingress-controller
|
||||||
# E.g. to specify the default SSL certificate you can use
|
# E.g. to specify the default SSL certificate you can use
|
||||||
extraArgs: {}
|
extraArgs: {}
|
||||||
|
|
Loading…
Reference in a new issue