[stable/prometheus-adapter] Add checksum of configMap as annotation (#8334)

* [stable/prometheus-adapter] Add checksum of configMap as annotation

- This adds checksum/config to the annotations which has sha256sum of
  the file custom-metrics-configmap.yaml
- This does the rolling update of the deployment when user does helm
  upgrade and there are changes to the configMap, so the adapter will
  pick up the latest changes in the config file
- ref:
  https://docs.helm.sh/charts_tips_and_tricks/#automatically-roll-deployments-when-configmaps-or-secrets-change
- Bump chart version

Signed-off-by: Bhavin Gandhi <bhavin7392@gmail.com>

* [stable/prometheus-adapter] Bump version to 0.2.0

Signed-off-by: Bhavin Gandhi <bhavin7392@gmail.com>
This commit is contained in:
Bhavin Gandhi
2018-10-10 17:21:00 -07:00
committed by k8s-ci-robot
parent 2df1110437
commit 2bb0fa3a75
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
name: prometheus-adapter
version: v0.1.2
version: v0.2.0
appVersion: v0.2.1
description: A Helm chart for k8s prometheus adapter
home: https://github.com/DirectXMan12/k8s-prometheus-adapter
@@ -21,6 +21,8 @@ spec:
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
name: {{ template "k8s-prometheus-adapter.name" . }}
annotations:
checksum/config: {{ include (print $.Template.BasePath "/custom-metrics-configmap.yaml") . | sha256sum }}
spec:
securityContext:
allowPrivilegeEscalation: false