소스 검색

[k8s] Add podLabels to values (#1305)

Reinaldo de Souza Jr 5 년 전
부모
커밋
68aaa93873
2개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      tools/kubernetes/helm/hue/templates/deployment-hue.yaml
  2. 3 0
      tools/kubernetes/helm/hue/values.yaml

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

@@ -17,6 +17,9 @@ spec:
     metadata:
       labels:
         pod: hue
+{{- with .Values.podLabels }}
+{{ toYaml . | indent 8 }}
+{{- end }}
       annotations:
         checksum/config: {{ include (print $.Template.BasePath "/configmap-hue.yaml") . | sha256sum }}
         checksum/config-extra: {{ include (print $.Template.BasePath "/configmap-hue-extra.yaml") . | sha256sum }}

+ 3 - 0
tools/kubernetes/helm/hue/values.yaml

@@ -66,3 +66,6 @@ aws:
 
 ## Pod Annotations
 # podAnnotations: {}
+
+## Pod Labels
+# podLabels: {}