diff --git a/deployments/kubernetes/chart/reloader/templates/deployment.yaml b/deployments/kubernetes/chart/reloader/templates/deployment.yaml index 1d6dc2905..0557b1f63 100644 --- a/deployments/kubernetes/chart/reloader/templates/deployment.yaml +++ b/deployments/kubernetes/chart/reloader/templates/deployment.yaml @@ -160,10 +160,15 @@ spec: securityContext: {{- toYaml $containerSecurityContext | nindent 10 }} - {{- if eq .Values.reloader.readOnlyRootFileSystem true }} + {{- if (or (.Values.reloader.deployment.volumeMounts) (eq .Values.reloader.readOnlyRootFileSystem true)) }} volumeMounts: + {{- if eq .Values.reloader.readOnlyRootFileSystem true }} - mountPath: /tmp/ name: tmp-volume + {{- end }} + {{- with .Values.reloader.deployment.volumeMounts }} + {{- . | toYaml | nindent 10 }} + {{- end }} {{- end }} {{- if or (.Values.reloader.logFormat) (.Values.reloader.ignoreSecrets) (.Values.reloader.ignoreNamespaces) (.Values.reloader.namespaceSelector) (.Values.reloader.resourceLabelSelector) (.Values.reloader.ignoreConfigMaps) (.Values.reloader.custom_annotations) (eq .Values.reloader.isArgoRollouts true) (eq .Values.reloader.reloadOnCreate true) (ne .Values.reloader.reloadStrategy "default") (.Values.reloader.enableHA) (.Values.reloader.autoReloadAll)}} args: @@ -241,8 +246,13 @@ spec: {{- if hasKey .Values.reloader.deployment "automountServiceAccountToken" }} automountServiceAccountToken: {{ .Values.reloader.deployment.automountServiceAccountToken }} {{- end }} - {{- if eq .Values.reloader.readOnlyRootFileSystem true }} + {{- if (or (.Values.reloader.deployment.volumes) (eq .Values.reloader.readOnlyRootFileSystem true)) }} volumes: + {{- if eq .Values.reloader.readOnlyRootFileSystem true }} - emptyDir: {} name: tmp-volume + {{- end }} + {{- with .Values.reloader.deployment.volumes }} + {{- . | toYaml | nindent 8 }} + {{- end }} {{- end }} diff --git a/deployments/kubernetes/chart/reloader/values.yaml b/deployments/kubernetes/chart/reloader/values.yaml index 873124426..c0ff4cfd6 100644 --- a/deployments/kubernetes/chart/reloader/values.yaml +++ b/deployments/kubernetes/chart/reloader/values.yaml @@ -281,4 +281,8 @@ reloader: # app.kubernetes.io/name: prometheus to: [] + volumeMounts: [] + + volumes: [] + webhookUrl: ""