From 6f6c6b8b9964e1f543cc6cb5129e4355b937db41 Mon Sep 17 00:00:00 2001 From: Steve Wilkerson Date: Mon, 30 Jul 2018 12:33:17 -0500 Subject: [PATCH] Nagios/Kibana: Update configmap annotations This changes the ordering of the configmap annotations for kibana, as older versions of helm require the configmap with the values template definition for the apache proxy to be listed last. This was addressed in the elasticsearch-client template but missed in kibana. This also adds the configmap hash annotations to the nagios chart as they were previously missing. It also places them in the correct order as above Change-Id: I13befe8684d975f310f2723c5172b8a0f9f365d6 --- kibana/templates/deployment.yaml | 2 +- nagios/templates/deployment.yaml | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/kibana/templates/deployment.yaml b/kibana/templates/deployment.yaml index adb4521c5..c900d8974 100644 --- a/kibana/templates/deployment.yaml +++ b/kibana/templates/deployment.yaml @@ -39,8 +39,8 @@ spec: labels: {{ tuple $envAll "kibana" "dashboard" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 8 }} annotations: - configmap-etc-hash: {{ tuple "configmap-etc.yaml" . | include "helm-toolkit.utils.hash" }} configmap-bin-hash: {{ tuple "configmap-bin.yaml" . | include "helm-toolkit.utils.hash" }} + configmap-etc-hash: {{ tuple "configmap-etc.yaml" . | include "helm-toolkit.utils.hash" }} spec: serviceAccountName: {{ $serviceAccountName }} affinity: diff --git a/nagios/templates/deployment.yaml b/nagios/templates/deployment.yaml index 9abda5160..72db0535c 100644 --- a/nagios/templates/deployment.yaml +++ b/nagios/templates/deployment.yaml @@ -75,6 +75,9 @@ spec: metadata: labels: {{ tuple $envAll "nagios" "monitoring" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 8 }} + annotations: + configmap-bin-hash: {{ tuple "configmap-bin.yaml" . | include "helm-toolkit.utils.hash" }} + configmap-etc-hash: {{ tuple "configmap-etc.yaml" . | include "helm-toolkit.utils.hash" }} spec: serviceAccountName: {{ $serviceAccountName }} nodeSelector: