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 }}
|
||||
- --maxmind-license-key={{ .Values.controller.maxmindLicenseKey }}
|
||||
{{- end }}
|
||||
{{- if .Values.controller.maxmindLicenseKeySecret }}
|
||||
- --maxmind-license-key-file={{ .Values.controller.maxmindLicenseKeySecretVolumeMountPath }}/{{ .Values.controller.maxmindLicenseKeyFilename }}
|
||||
{{- end }}
|
||||
{{- if .Values.controller.healthCheckHost }}
|
||||
- --healthz-host={{ .Values.controller.healthCheckHost }}
|
||||
{{- end }}
|
||||
|
|
|
@ -167,6 +167,11 @@ spec:
|
|||
mountPath: /usr/local/certificates/
|
||||
readOnly: true
|
||||
{{- end }}
|
||||
{{- if .Values.controller.maxmindLicenseKeySecret }}
|
||||
- name: maxmind-license-key
|
||||
mountPath: {{ .Values.controller.maxmindLicenseKeySecretVolumeMountPath }}
|
||||
readOnly: true
|
||||
{{- end }}
|
||||
{{- if .Values.controller.extraVolumeMounts }}
|
||||
{{- toYaml .Values.controller.extraVolumeMounts | nindent 12 }}
|
||||
{{- end }}
|
||||
|
@ -236,6 +241,14 @@ spec:
|
|||
path: key
|
||||
{{- 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 }}
|
||||
{{ toYaml .Values.controller.extraVolumes | nindent 8 }}
|
||||
{{- end }}
|
||||
|
|
|
@ -150,6 +150,12 @@ controller:
|
|||
# -- Maxmind license key to download GeoLite2 Databases.
|
||||
## https://blog.maxmind.com/2019/12/18/significant-changes-to-accessing-and-using-geolite2-databases
|
||||
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
|
||||
# E.g. to specify the default SSL certificate you can use
|
||||
extraArgs: {}
|
||||
|
|
Loading…
Reference in a new issue