mirror of
https://github.com/stakater/Reloader.git
synced 2026-08-21 21:16:27 +00:00
feat: add --ignore-annotation flag to override reloader.stakater.com/ignore
Allow users to customise the annotation key used to mark ConfigMaps and Secrets as ignored by Reloader, consistent with how every other annotation key is already overridable via a dedicated CLI flag. Changes: - internal/pkg/util/util.go: register --ignore-annotation persistent flag backed by options.IgnoreResourceAnnotation - deployments/kubernetes/chart/reloader/templates/deployment.yaml: pass --ignore-annotation when custom_annotations.ignore is set in Helm values - deployments/kubernetes/chart/reloader/values.yaml: document the new custom_annotations.ignore key in the example comment - README.md: add --ignore-annotation to the Annotation Key Overrides table and mention the flag alongside the Resource-Level Ignore Annotation section Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -277,6 +277,10 @@ spec:
|
||||
{{- if .Values.reloader.custom_annotations.match }}
|
||||
- "--search-match-annotation"
|
||||
- "{{ .Values.reloader.custom_annotations.match }}"
|
||||
{{- end }}
|
||||
{{- if .Values.reloader.custom_annotations.ignore }}
|
||||
- "--ignore-annotation"
|
||||
- "{{ .Values.reloader.custom_annotations.ignore }}"
|
||||
{{- end }}
|
||||
{{- if .Values.reloader.custom_annotations.pausePeriod }}
|
||||
- "--pause-deployment-annotation"
|
||||
|
||||
@@ -213,6 +213,7 @@ reloader:
|
||||
# custom_annotations:
|
||||
# configmap: "my.company.com/configmap"
|
||||
# secret: "my.company.com/secret"
|
||||
# ignore: "my.company.com/reloader-ignore"
|
||||
custom_annotations: {}
|
||||
|
||||
serviceMonitor:
|
||||
|
||||
Reference in New Issue
Block a user