From 9f8f2b86952542a3bd0d9e45035d83b462c5d107 Mon Sep 17 00:00:00 2001
From: Vasyl Saienko <vsaienko@mirantis.com>
Date: Mon, 25 May 2020 11:28:40 +0300
Subject: [PATCH] [Ironic] Add configmap bin/etc hash to annotations

Make sure ironic conductor pods are restarted automatically with configmap changes.

Change-Id: I08ae650d6117d4d3590028a3f385615623318af8
---
 ironic/templates/statefulset-conductor.yaml | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/ironic/templates/statefulset-conductor.yaml b/ironic/templates/statefulset-conductor.yaml
index c02cd5406f..c09c30495f 100644
--- a/ironic/templates/statefulset-conductor.yaml
+++ b/ironic/templates/statefulset-conductor.yaml
@@ -41,6 +41,8 @@ spec:
 {{ tuple $envAll "ironic" "conductor" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 8 }}
       annotations:
 {{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" | indent 8 }}
+        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: