From 8b0e5e070dc4e4127e993382d8afa9415c6d9b3d Mon Sep 17 00:00:00 2001 From: cccs-eric Date: Fri, 11 Dec 2020 09:19:53 -0500 Subject: [PATCH] Added checksums to configmaps to enable pod restart on configmap change. (#18600) * Added support for Keycloak admin secret Added support to change endpoint-watcher image Signed-off-by: Eric Ladouceur * Added user feedback and validation for Keycloak password Signed-off-by: Eric Ladouceur * Apply suggestions from code review Signed-off-by: Eric Ladouceur Co-authored-by: Anatolii Bazko * Apply suggestions from code review Signed-off-by: Eric Ladouceur Co-authored-by: Anatolii Bazko * Added checksums to configmap to enable pod restart on configmap change. Signed-off-by: Eric Ladouceur Co-authored-by: Anatolii Bazko --- .../che-devfile-registry/templates/deployment.yaml | 2 ++ .../custom-charts/che-plugin-registry/templates/deployment.yaml | 2 ++ deploy/kubernetes/helm/che/templates/deployment.yaml | 2 ++ 3 files changed, 6 insertions(+) diff --git a/deploy/kubernetes/helm/che/custom-charts/che-devfile-registry/templates/deployment.yaml b/deploy/kubernetes/helm/che/custom-charts/che-devfile-registry/templates/deployment.yaml index e3d62f923e..0f1d3a4c36 100644 --- a/deploy/kubernetes/helm/che/custom-charts/che-devfile-registry/templates/deployment.yaml +++ b/deploy/kubernetes/helm/che/custom-charts/che-devfile-registry/templates/deployment.yaml @@ -31,6 +31,8 @@ spec: labels: app: che component: devfile-registry + annotations: + checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }} spec: containers: - image: {{ .Values.cheDevfileRegistry.image }} diff --git a/deploy/kubernetes/helm/che/custom-charts/che-plugin-registry/templates/deployment.yaml b/deploy/kubernetes/helm/che/custom-charts/che-plugin-registry/templates/deployment.yaml index 3393e04ba6..8bf3c47b6e 100644 --- a/deploy/kubernetes/helm/che/custom-charts/che-plugin-registry/templates/deployment.yaml +++ b/deploy/kubernetes/helm/che/custom-charts/che-plugin-registry/templates/deployment.yaml @@ -31,6 +31,8 @@ spec: labels: app: che component: plugin-registry + annotations: + checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }} spec: containers: - image: {{ .Values.chePluginRegistry.image }} diff --git a/deploy/kubernetes/helm/che/templates/deployment.yaml b/deploy/kubernetes/helm/che/templates/deployment.yaml index 857271c7a3..0b1d20b5c0 100644 --- a/deploy/kubernetes/helm/che/templates/deployment.yaml +++ b/deploy/kubernetes/helm/che/templates/deployment.yaml @@ -27,6 +27,8 @@ spec: labels: app: che component: che + annotations: + checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }} spec: securityContext: fsGroup: {{ .Values.global.securityContext.fsGroup }}