Skip to content

Commit 84c295f

Browse files
[FEAT] Prometheus Adapter reload (prometheus-operator#2195)
* [FEAT] Prometheus Adapter reload Signed-off-by: rita.canavarro <ritinhamcm@gmail.com> * [FEAT] Prometheus Adapter reload Signed-off-by: rita.canavarro <ritinhamcm@gmail.com> --------- Signed-off-by: rita.canavarro <ritinhamcm@gmail.com>
1 parent 4b5b943 commit 84c295f

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

jsonnet/kube-prometheus/components/prometheus-adapter.libsonnet

+6-1
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,12 @@ function(params) {
300300
},
301301
},
302302
template: {
303-
metadata: { labels: pa._config.commonLabels },
303+
metadata: {
304+
annotations: {
305+
'checksum.config/md5': std.md5(std.manifestYamlDoc(pa._config.config)),
306+
},
307+
labels: pa._config.commonLabels,
308+
},
304309
spec: {
305310
containers: [c],
306311
serviceAccountName: $.serviceAccount.metadata.name,

manifests/prometheusAdapter-deployment.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ spec:
2121
maxUnavailable: 1
2222
template:
2323
metadata:
24+
annotations:
25+
checksum.config/md5: 3b1ebf7df0232d1675896f67b66373db
2426
labels:
2527
app.kubernetes.io/component: metrics-adapter
2628
app.kubernetes.io/name: prometheus-adapter

0 commit comments

Comments
 (0)