feat: add cli flags to helm chart

This commit is contained in:
Joey Espinosa
2019-02-06 12:46:17 -05:00
parent 75b00733bf
commit 33443ccb29
2 changed files with 21 additions and 0 deletions
@@ -70,4 +70,19 @@ spec:
image: "{{ .Values.reloader.deployment.image.name }}:{{ .Values.reloader.deployment.image.tag }}"
imagePullPolicy: {{ .Values.reloader.deployment.image.pullPolicy }}
name: {{ template "reloader-name" . }}
{{- if .Values.reloader.custom_annotations }}
args:
{{- if .Values.reloader.custom_annotations.configmap }}
- "--configmap-annotation"
- "{{ .Values.reloader.custom_annotations.configmap }}"
{{- end }}
{{- if .Values.reloader.custom_annotations.secret }}
- "--secret-annotation"
- "{{ .Values.reloader.custom_annotations.secret }}"
{{- end }}
{{- if .Values.reloader.custom_annotations.auto }}
- "--auto-annotation"
- "{{ .Values.reloader.custom_annotations.auto }}"
{{- end }}
{{- end }}
serviceAccountName: {{ template "serviceAccountName" . }}
@@ -35,3 +35,9 @@ reloader:
# The name of the ServiceAccount to use.
# If not set and create is true, a name is generated using the fullname template
name: reloader
# Optional flags to pass to the Reloader entrypoint
# Example:
# custom_annotations:
# configmap: "my.company.com/configmap"
# secret: "my.company.com/secret"
custom_annotations: {}