Browse Source

[k8s] Adding annotation to hive configmap dependency

Romain Rigaux 5 năm trước cách đây
mục cha
commit
ef745d1775

+ 5 - 5
tools/kubernetes/helm/hue/templates/configmap-hive.yaml

@@ -4,11 +4,11 @@ metadata:
   name: hive-config
 data:
   hive-site: |
-  <?xml version="1.0"?>
-  <?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
+    <?xml version="1.0"?>
+    <?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
 
-  <configuration>
+    <configuration>
 
-  {{ .Values.hive.site | indent 4 | trim }}
+    {{ .Values.hive.site | indent 4 | trim }}
 
-  </configuration>
+    </configuration>

+ 1 - 0
tools/kubernetes/helm/hue/templates/deployment-hue.yaml

@@ -23,6 +23,7 @@ spec:
       annotations:
         checksum/config: {{ include (print $.Template.BasePath "/configmap-hue.yaml") . | sha256sum }}
         checksum/config-extra: {{ include (print $.Template.BasePath "/configmap-hue-extra.yaml") . | sha256sum }}
+        checksum/config-hive: {{ include (print $.Template.BasePath "/configmap-hive.yaml") . | sha256sum }}
 {{- with .Values.podAnnotations }}
 {{ toYaml . | indent 8 }}
 {{- end }}