176 - Update helm chart with reloadStrategy support

This commit is contained in:
aenima4six2
2021-11-06 18:14:46 -04:00
parent dfe7e9b3ca
commit c4ce86cb0b
3 changed files with 31 additions and 1 deletions

View File

@@ -118,7 +118,14 @@ spec:
- mountPath: /tmp/
name: tmp-volume
{{- end }}
{{- if or (.Values.reloader.logFormat) (.Values.reloader.ignoreSecrets) (.Values.reloader.ignoreNamespaces) (.Values.reloader.ignoreConfigMaps) (.Values.reloader.custom_annotations) (eq .Values.reloader.isArgoRollouts true) }}
{{- if or (.Values.reloader.logFormat)
(.Values.reloader.ignoreSecrets)
(.Values.reloader.ignoreNamespaces)
(.Values.reloader.ignoreConfigMaps)
(.Values.reloader.custom_annotations)
(eq .Values.reloader.isArgoRollouts true)
(ne .Values.reloader.reloadStrategy "default")
}}
args:
{{- if .Values.reloader.logFormat }}
- "--log-format={{ .Values.reloader.logFormat }}"
@@ -158,6 +165,9 @@ spec:
{{- if eq .Values.reloader.isArgoRollouts true }}
- "--is-Argo-Rollouts={{ .Values.reloader.isArgoRollouts }}"
{{- end }}
{{- if ne .Values.reloader.reloadStrategy "default" }}
- "--reload-strategy={{ .Values.reloader.reloadStrategy }}"
{{- end }}
{{- end }}
{{- if .Values.reloader.deployment.resources }}
resources:

View File

@@ -0,0 +1,19 @@
{
"$schema": "http://json-schema.org/schema#",
"type": "object",
"properties": {
"reloader": {
"type": "object",
"properties": {
"reloadStrategy": {
"type": "string",
"enum": [
"default",
"env-vars",
"annotations"
]
}
}
}
}
}

View File

@@ -13,6 +13,7 @@ reloader:
isOpenshift: false
ignoreSecrets: false
ignoreConfigMaps: false
reloadStrategy: default # Set to default, env-vars or annotations
ignoreNamespaces: "" # Comma separated list of namespaces to ignore
logFormat: "" #json
watchGlobally: true