mirror of
https://github.com/minio/minio.git
synced 2025-04-13 15:59:34 -04:00
Add option to ignore checksumming config/secrets (#14396)
Signed-off-by: David Young <davidy@funkypenguin.co.nz>
This commit is contained in:
parent
92a77cc78e
commit
9f7d89b3cd
@ -44,8 +44,10 @@ spec:
|
|||||||
{{ toYaml .Values.podLabels | indent 8 }}
|
{{ toYaml .Values.podLabels | indent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
annotations:
|
annotations:
|
||||||
|
{{- if not .Values.ignoreChartChecksums }}
|
||||||
checksum/secrets: {{ include (print $.Template.BasePath "/secrets.yaml") . | sha256sum }}
|
checksum/secrets: {{ include (print $.Template.BasePath "/secrets.yaml") . | sha256sum }}
|
||||||
checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
|
checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
|
||||||
|
{{- end }}
|
||||||
{{- if .Values.podAnnotations }}
|
{{- if .Values.podAnnotations }}
|
||||||
{{ toYaml .Values.podAnnotations | trimSuffix "\n" | indent 8 }}
|
{{ toYaml .Values.podAnnotations | trimSuffix "\n" | indent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
@ -44,8 +44,10 @@ spec:
|
|||||||
{{ toYaml .Values.podLabels | indent 8 }}
|
{{ toYaml .Values.podLabels | indent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
annotations:
|
annotations:
|
||||||
|
{{- if not .Values.ignoreChartChecksums }}
|
||||||
checksum/secrets: {{ include (print $.Template.BasePath "/secrets.yaml") . | sha256sum }}
|
checksum/secrets: {{ include (print $.Template.BasePath "/secrets.yaml") . | sha256sum }}
|
||||||
checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
|
checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
|
||||||
|
{{- end }}
|
||||||
{{- if .Values.podAnnotations }}
|
{{- if .Values.podAnnotations }}
|
||||||
{{ toYaml .Values.podAnnotations | trimSuffix "\n" | indent 8 }}
|
{{ toYaml .Values.podAnnotations | trimSuffix "\n" | indent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
@ -70,8 +70,10 @@ spec:
|
|||||||
{{ toYaml .Values.podLabels | indent 8 }}
|
{{ toYaml .Values.podLabels | indent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
annotations:
|
annotations:
|
||||||
|
{{- if not .Values.ignoreChartChecksums }}
|
||||||
checksum/secrets: {{ include (print $.Template.BasePath "/secrets.yaml") . | sha256sum }}
|
checksum/secrets: {{ include (print $.Template.BasePath "/secrets.yaml") . | sha256sum }}
|
||||||
checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
|
checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
|
||||||
|
{{- end }}
|
||||||
{{- if .Values.podAnnotations }}
|
{{- if .Values.podAnnotations }}
|
||||||
{{ toYaml .Values.podAnnotations | trimSuffix "\n" | indent 8 }}
|
{{ toYaml .Values.podAnnotations | trimSuffix "\n" | indent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
@ -37,6 +37,12 @@ additionalLabels: []
|
|||||||
## Additional annotations to include with deployment or statefulset
|
## Additional annotations to include with deployment or statefulset
|
||||||
additionalAnnotations: []
|
additionalAnnotations: []
|
||||||
|
|
||||||
|
## Typically the deployment/statefulset includes checksums of secrets/config,
|
||||||
|
## So that when these change on a subsequent helm install, the deployment/statefulset
|
||||||
|
## is restarted. This can result in unnecessary restarts under GitOps tooling such as
|
||||||
|
## flux, so set to "true" to disable this behaviour.
|
||||||
|
ignoreChartChecksums: false
|
||||||
|
|
||||||
## Additional arguments to pass to minio binary
|
## Additional arguments to pass to minio binary
|
||||||
extraArgs: []
|
extraArgs: []
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user