Skip to content

Commit 53b2c50

Browse files
ksaurlalitadithya
authored andcommitted
fix: add checksum and sync-wave annotations for ArgoCD configmap rest… (#747)
1 parent 3f98a45 commit 53b2c50

File tree

19 files changed

+69
-16
lines changed

19 files changed

+69
-16
lines changed

distros/kubernetes/nvsentinel/charts/csp-health-monitor/templates/configmap.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ metadata:
1717
name: {{ include "csp-health-monitor.fullname" . }}
1818
labels:
1919
{{- include "csp-health-monitor.labels" . | nindent 4 }}
20+
annotations:
21+
argocd.argoproj.io/sync-wave: "-1"
2022
data:
2123
config.toml: |
2224
# Global settings

distros/kubernetes/nvsentinel/charts/csp-health-monitor/templates/deployment.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,21 @@ metadata:
1717
name: {{ include "csp-health-monitor.fullname" . }}
1818
labels:
1919
{{- include "csp-health-monitor.labels" . | nindent 4 }}
20+
annotations:
21+
argocd.argoproj.io/sync-wave: "0"
2022
spec:
2123
replicas: {{ .Values.replicaCount }}
2224
selector:
2325
matchLabels:
2426
{{- include "csp-health-monitor.selectorLabels" . | nindent 6 }}
2527
template:
2628
metadata:
27-
{{- with ((.Values.global).podAnnotations | default .Values.podAnnotations) }}
2829
annotations:
30+
# Force pod restart when configmap changes
31+
checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
32+
{{- with ((.Values.global).podAnnotations | default .Values.podAnnotations) }}
2933
{{- toYaml . | nindent 8 }}
30-
{{- end }}
34+
{{- end }}
3135
labels:
3236
{{- include "csp-health-monitor.selectorLabels" . | nindent 8 }}
3337
spec:

distros/kubernetes/nvsentinel/charts/event-exporter/templates/configmap.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ metadata:
1818
name: {{ include "event-exporter.fullname" . }}
1919
labels:
2020
{{- include "event-exporter.labels" . | nindent 4 }}
21+
annotations:
22+
argocd.argoproj.io/sync-wave: "-1"
2123
data:
2224
config.toml: |
2325
[exporter.metadata]

distros/kubernetes/nvsentinel/charts/event-exporter/templates/deployment.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,21 @@ metadata:
1818
name: {{ include "event-exporter.fullname" . }}
1919
labels:
2020
{{- include "event-exporter.labels" . | nindent 4 }}
21+
annotations:
22+
argocd.argoproj.io/sync-wave: "0"
2123
spec:
2224
replicas: {{ .Values.replicaCount }}
2325
selector:
2426
matchLabels:
2527
{{- include "event-exporter.selectorLabels" . | nindent 6 }}
2628
template:
2729
metadata:
28-
{{- with .Values.podAnnotations }}
2930
annotations:
31+
# Force pod restart when configmap changes
32+
checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
33+
{{- with .Values.podAnnotations }}
3034
{{- toYaml . | nindent 8 }}
31-
{{- end }}
35+
{{- end }}
3236
labels:
3337
{{- include "event-exporter.labels" . | nindent 8 }}
3438
spec:

distros/kubernetes/nvsentinel/charts/fault-quarantine/templates/configmap.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ metadata:
1717
name: {{ include "fault-quarantine.fullname" . }}
1818
labels:
1919
{{- include "fault-quarantine.labels" . | nindent 4 }}
20+
annotations:
21+
argocd.argoproj.io/sync-wave: "-1"
2022
data:
2123
config.toml: |
2224
label-prefix = {{ .Values.labelPrefix | quote }}

distros/kubernetes/nvsentinel/charts/fault-quarantine/templates/deployment.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,21 @@ metadata:
1717
name: {{ include "fault-quarantine.fullname" . }}
1818
labels:
1919
{{- include "fault-quarantine.labels" . | nindent 4 }}
20+
annotations:
21+
argocd.argoproj.io/sync-wave: "0"
2022
spec:
2123
replicas: {{ .Values.replicaCount }}
2224
selector:
2325
matchLabels:
2426
{{- include "fault-quarantine.selectorLabels" . | nindent 6 }}
2527
template:
2628
metadata:
27-
{{- with ((.Values.global).podAnnotations | default .Values.podAnnotations) }}
2829
annotations:
30+
# Force pod restart when configmap changes
31+
checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
32+
{{- with ((.Values.global).podAnnotations | default .Values.podAnnotations) }}
2933
{{- toYaml . | nindent 8 }}
30-
{{- end }}
34+
{{- end }}
3135
labels:
3236
{{- include "fault-quarantine.selectorLabels" . | nindent 8 }}
3337
spec:

distros/kubernetes/nvsentinel/charts/fault-remediation/templates/configmap.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ metadata:
1818
name: {{ include "fault-remediation.fullname" . }}
1919
labels:
2020
{{- include "fault-remediation.labels" . | nindent 4 }}
21+
annotations:
22+
argocd.argoproj.io/sync-wave: "-1"
2123
data:
2224
config.toml: |
2325
[template]

distros/kubernetes/nvsentinel/charts/fault-remediation/templates/deployment.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,21 @@ metadata:
1717
name: {{ include "fault-remediation.fullname" . }}
1818
labels:
1919
{{- include "fault-remediation.labels" . | nindent 4}}
20+
annotations:
21+
argocd.argoproj.io/sync-wave: "0"
2022
spec:
2123
replicas: {{ .Values.replicaCount }}
2224
selector:
2325
matchLabels:
2426
{{- include "fault-remediation.selectorLabels" . | nindent 6 }}
2527
template:
2628
metadata:
27-
{{- with ((.Values.global).podAnnotations | default .Values.podAnnotations) }}
2829
annotations:
30+
# Force pod restart when configmap changes
31+
checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
32+
{{- with ((.Values.global).podAnnotations | default .Values.podAnnotations) }}
2933
{{- toYaml . | nindent 8 }}
30-
{{- end }}
34+
{{- end }}
3135
labels:
3236
{{- include "fault-remediation.selectorLabels" . | nindent 8 }}
3337
spec:

distros/kubernetes/nvsentinel/charts/health-events-analyzer/templates/configmap.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ apiVersion: v1
1616
kind: ConfigMap
1717
metadata:
1818
name: {{ include "health-events-analyzer.fullname" . }}-config
19+
annotations:
20+
argocd.argoproj.io/sync-wave: "-1"
1921
data:
2022
config.toml: |
2123
{{ tpl .Values.config . | nindent 6 }}

distros/kubernetes/nvsentinel/charts/health-events-analyzer/templates/deployment.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,21 @@ metadata:
1818
name: {{ include "health-events-analyzer.fullname" . }}
1919
labels:
2020
{{- include "health-events-analyzer.labels" . | nindent 4 }}
21+
annotations:
22+
argocd.argoproj.io/sync-wave: "0"
2123
spec:
2224
replicas: {{ .Values.replicaCount }}
2325
selector:
2426
matchLabels:
2527
{{- include "health-events-analyzer.selectorLabels" . | nindent 6 }}
2628
template:
2729
metadata:
28-
{{- with .Values.podAnnotations }}
2930
annotations:
31+
# Force pod restart when configmap changes
32+
checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
33+
{{- with .Values.podAnnotations }}
3034
{{- toYaml . | nindent 8 }}
31-
{{- end }}
35+
{{- end }}
3236
labels:
3337
{{- include "health-events-analyzer.labels" . | nindent 8 }}
3438
spec:

0 commit comments

Comments
 (0)