diff --git a/charts/tempo-distributed/templates/compactor/deployment-compactor.yaml b/charts/tempo-distributed/templates/compactor/deployment-compactor.yaml index f49def948f..2679d47a97 100644 --- a/charts/tempo-distributed/templates/compactor/deployment-compactor.yaml +++ b/charts/tempo-distributed/templates/compactor/deployment-compactor.yaml @@ -34,13 +34,7 @@ spec: {{- toYaml . | nindent 8 }} {{- end }} annotations: - checksum/config: {{ include (print $.Template.BasePath "/configmap-tempo.yaml") . | sha256sum }} - {{- with .Values.tempo.podAnnotations }} - {{- toYaml . | nindent 8 }} - {{- end }} - {{- with .Values.compactor.podAnnotations }} - {{- toYaml . | nindent 8 }} - {{- end }} + {{- include "tempo.podAnnotations" $dict | nindent 8 }} spec: {{- if or (.Values.compactor.priorityClassName) (.Values.global.priorityClassName) }} priorityClassName: {{ default .Values.compactor.priorityClassName .Values.global.priorityClassName }} diff --git a/charts/tempo-distributed/templates/distributor/deployment-distributor.yaml b/charts/tempo-distributed/templates/distributor/deployment-distributor.yaml index dc266c2870..9fdd187a02 100644 --- a/charts/tempo-distributed/templates/distributor/deployment-distributor.yaml +++ b/charts/tempo-distributed/templates/distributor/deployment-distributor.yaml @@ -34,13 +34,7 @@ spec: {{- toYaml . | nindent 8 }} {{- end }} annotations: - checksum/config: {{ include (print $.Template.BasePath "/configmap-tempo.yaml") . | sha256sum }} - {{- with .Values.tempo.podAnnotations }} - {{- toYaml . | nindent 8 }} - {{- end }} - {{- with .Values.distributor.podAnnotations }} - {{- toYaml . | nindent 8 }} - {{- end }} + {{- include "tempo.podAnnotations" $dict | nindent 8 }} spec: {{- if or (.Values.distributor.priorityClassName) (.Values.global.priorityClassName) }} priorityClassName: {{ default .Values.distributor.priorityClassName .Values.global.priorityClassName }} diff --git a/charts/tempo-distributed/templates/gateway/deployment-gateway.yaml b/charts/tempo-distributed/templates/gateway/deployment-gateway.yaml index 4adc541c18..a268f6a20b 100644 --- a/charts/tempo-distributed/templates/gateway/deployment-gateway.yaml +++ b/charts/tempo-distributed/templates/gateway/deployment-gateway.yaml @@ -23,13 +23,7 @@ spec: template: metadata: annotations: - checksum/config: {{ include (print .Template.BasePath "/gateway/configmap-gateway.yaml") . | sha256sum }} - {{- with .Values.tempo.podAnnotations }} - {{- toYaml . | nindent 8 }} - {{- end }} - {{- with .Values.gateway.podAnnotations }} - {{- toYaml . | nindent 8 }} - {{- end }} + {{- include "tempo.podAnnotations" $dict | nindent 8 }} labels: {{- include "tempo.selectorLabels" $dict | nindent 8 }} {{- with .Values.tempo.podLabels }} diff --git a/charts/tempo-distributed/templates/ingester/statefulset-ingester.yaml b/charts/tempo-distributed/templates/ingester/statefulset-ingester.yaml index d89950e8e2..a8cf39615f 100644 --- a/charts/tempo-distributed/templates/ingester/statefulset-ingester.yaml +++ b/charts/tempo-distributed/templates/ingester/statefulset-ingester.yaml @@ -44,13 +44,7 @@ spec: {{- toYaml . | nindent 8 }} {{- end }} annotations: - checksum/config: {{ include (print $.Template.BasePath "/configmap-tempo.yaml") . | sha256sum }} - {{- with .Values.tempo.podAnnotations }} - {{- toYaml . | nindent 8 }} - {{- end }} - {{- with .Values.ingester.podAnnotations }} - {{- toYaml . | nindent 8 }} - {{- end }} + {{- include "tempo.podAnnotations" $dict | nindent 8 }} spec: {{- if or (.Values.ingester.priorityClassName) (.Values.global.priorityClassName) }} priorityClassName: {{ default .Values.ingester.priorityClassName .Values.global.priorityClassName }} diff --git a/charts/tempo-distributed/templates/metrics-generator/deployment-metrics-generator.yaml b/charts/tempo-distributed/templates/metrics-generator/deployment-metrics-generator.yaml index 94b70f0220..94264b5654 100644 --- a/charts/tempo-distributed/templates/metrics-generator/deployment-metrics-generator.yaml +++ b/charts/tempo-distributed/templates/metrics-generator/deployment-metrics-generator.yaml @@ -29,13 +29,7 @@ spec: {{- toYaml . | nindent 8 }} {{- end }} annotations: - checksum/config: {{ include (print $.Template.BasePath "/configmap-tempo.yaml") . | sha256sum }} - {{- with .Values.tempo.podAnnotations }} - {{- toYaml . | nindent 8 }} - {{- end }} - {{- with .Values.metricsGenerator.podAnnotations }} - {{- toYaml . | nindent 8 }} - {{- end }} + {{- include "tempo.podAnnotations" $dict | nindent 8 }} spec: {{- if or (.Values.metricsGenerator.priorityClassName) (.Values.global.priorityClassName) }} priorityClassName: {{ default .Values.metricsGenerator.priorityClassName .Values.global.priorityClassName }} diff --git a/charts/tempo-distributed/templates/metrics-generator/statefulset-metrics-generator.yaml b/charts/tempo-distributed/templates/metrics-generator/statefulset-metrics-generator.yaml index bec1efcf0d..08d53fc57b 100644 --- a/charts/tempo-distributed/templates/metrics-generator/statefulset-metrics-generator.yaml +++ b/charts/tempo-distributed/templates/metrics-generator/statefulset-metrics-generator.yaml @@ -35,13 +35,7 @@ spec: {{- toYaml . | nindent 8 }} {{- end }} annotations: - checksum/config: {{ include (print $.Template.BasePath "/configmap-tempo.yaml") . | sha256sum }} - {{- with .Values.tempo.podAnnotations }} - {{- toYaml . | nindent 8 }} - {{- end }} - {{- with .Values.metricsGenerator.podAnnotations }} - {{- toYaml . | nindent 8 }} - {{- end }} + {{- include "tempo.podAnnotations" $dict | nindent 8 }} spec: {{- if or (.Values.metricsGenerator.priorityClassName) (.Values.global.priorityClassName) }} priorityClassName: {{ default .Values.metricsGenerator.priorityClassName .Values.global.priorityClassName }} diff --git a/charts/tempo-distributed/templates/querier/deployment-querier.yaml b/charts/tempo-distributed/templates/querier/deployment-querier.yaml index e804402397..2eee937f2c 100644 --- a/charts/tempo-distributed/templates/querier/deployment-querier.yaml +++ b/charts/tempo-distributed/templates/querier/deployment-querier.yaml @@ -34,13 +34,7 @@ spec: {{- toYaml . | nindent 8 }} {{- end }} annotations: - checksum/config: {{ include (print $.Template.BasePath "/configmap-tempo.yaml") . | sha256sum }} - {{- with .Values.tempo.podAnnotations }} - {{- toYaml . | nindent 8 }} - {{- end }} - {{- with .Values.querier.podAnnotations }} - {{- toYaml . | nindent 8 }} - {{- end }} + {{- include "tempo.podAnnotations" $dict | nindent 8 }} spec: {{- if or (.Values.querier.priorityClassName) (.Values.global.priorityClassName) }} priorityClassName: {{ default .Values.querier.priorityClassName .Values.global.priorityClassName }} diff --git a/charts/tempo-distributed/templates/query-frontend/deployment-query-frontend.yaml b/charts/tempo-distributed/templates/query-frontend/deployment-query-frontend.yaml index 1b92d6560b..0237e1aba6 100644 --- a/charts/tempo-distributed/templates/query-frontend/deployment-query-frontend.yaml +++ b/charts/tempo-distributed/templates/query-frontend/deployment-query-frontend.yaml @@ -34,13 +34,7 @@ spec: {{- toYaml . | nindent 8 }} {{- end }} annotations: - checksum/config: {{ include (print $.Template.BasePath "/configmap-tempo.yaml") . | sha256sum }} - {{- with .Values.tempo.podAnnotations }} - {{- toYaml . | nindent 8 }} - {{- end }} - {{- with .Values.queryFrontend.podAnnotations }} - {{- toYaml . | nindent 8 }} - {{- end }} + {{- include "tempo.podAnnotations" $dict | nindent 8 }} spec: {{- if or (.Values.queryFrontend.priorityClassName) (.Values.global.priorityClassName) }} priorityClassName: {{ default .Values.queryFrontend.priorityClassName .Values.global.priorityClassName }}