소스 검색

[k8s] Adding annotation to hive configmap dependency

Romain Rigaux 5 년 전
부모
커밋
ef745d1775
2개의 변경된 파일6개의 추가작업 그리고 5개의 파일을 삭제
  1. 5 5
      tools/kubernetes/helm/hue/templates/configmap-hive.yaml
  2. 1 0
      tools/kubernetes/helm/hue/templates/deployment-hue.yaml

+ 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 }}