File tree Expand file tree Collapse file tree 2 files changed +16
-2
lines changed
Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change 2222 app.kubernetes.io/managed-by : {{ .Release.Service }}
2323 name : {{ include "threatstack-agent.name" . }}
2424 annotations :
25- {{- if .Values.daemonset.podAnnotations }}
25+ # If configmap or secret files change, this will change the checksum annotations in the daemonset, forcing a redeploy.
26+ checksum/config : {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
27+ {{- if not .Values.agentSetupExternalSecretRef }}
28+ checksum/secrets : {{ include (print $.Template.BasePath "/secrets.yaml") . | sha256sum }}
29+ {{- else }}
30+ checksum/secrets : {{ .Values.agentSetupExternalSecretRef.checksum | sha256sum }}
31+ {{- end }}
32+ {{- if .Values.daemonset.podAnnotations }}
2633{{ toYaml .Values.daemonset.podAnnotations | indent 8 }}
27- {{- end }}
34+ {{- end }}
2835 spec :
2936{{- if .Values.imagePullSecrets }}
3037 imagePullSecrets :
Original file line number Diff line number Diff line change 2323 app.kubernetes.io/managed-by : {{ .Release.Service }}
2424 name : {{ include "threatstack-agent.name" .}}-kubernetes-api
2525 annotations :
26+ # If configmap or secret files change, this will change the checksum annotations in the daemonset, forcing a redeploy.
27+ checksum/config : {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
28+ {{- if not .Values.agentSetupExternalSecretRef }}
29+ checksum/secrets : {{ include (print $.Template.BasePath "/secrets.yaml") . | sha256sum }}
30+ {{- else }}
31+ checksum/secrets : {{ .Values.agentSetupExternalSecretRef.checksum | sha256sum }}
32+ {{- end }}
2633 spec :
2734{{- if .Values.imagePullSecrets }}
2835 imagePullSecrets :
You can’t perform that action at this time.
0 commit comments