ソースを参照

add env, initContainers, volumeMounts and volumes (#1668)

Co-authored-by: Pierre Motte <pierre.motte@quicksign.com>
piermotte 3 年 前
コミット
fd7ba5e195
2 ファイル変更24 行追加0 行削除
  1. 16 0
      charts/kafka-ui/templates/deployment.yaml
  2. 8 0
      charts/kafka-ui/values.yaml

+ 16 - 0
charts/kafka-ui/templates/deployment.yaml

@@ -29,6 +29,10 @@ spec:
       imagePullSecrets:
         {{- toYaml . | nindent 8 }}
       {{- end }}
+      {{- with .Values.initContainers }}
+      initContainers:
+        {{- toYaml . | nindent 8 }}
+      {{- end }}
       serviceAccountName: {{ include "kafka-ui.serviceAccountName" . }}
       securityContext:
         {{- toYaml .Values.podSecurityContext | nindent 8 }}
@@ -38,6 +42,10 @@ spec:
             {{- toYaml .Values.securityContext | nindent 12 }}
           image: "{{ .Values.image.registry }}/{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
           imagePullPolicy: {{ .Values.image.pullPolicy }}
+          {{- with .Values.env }}
+          env:
+            {{- toYaml . | nindent 12 }}
+          {{- end }}
           envFrom:
             {{- if .Values.existingConfigMap }}
             - configMapRef:
@@ -73,6 +81,14 @@ spec:
             timeoutSeconds: 10
           resources:
             {{- toYaml .Values.resources | nindent 12 }}
+          {{- with .Values.volumeMounts }}
+          volumeMounts:
+            {{- toYaml . | nindent 12 }}
+          {{- end }}
+      {{- with .Values.volumes }}
+      volumes:
+        {{- toYaml . | nindent 8 }}
+      {{- end }}
       {{- with .Values.nodeSelector }}
       nodeSelector:
         {{- toYaml . | nindent 8 }}

+ 8 - 0
charts/kafka-ui/values.yaml

@@ -117,3 +117,11 @@ nodeSelector: {}
 tolerations: []
 
 affinity: {}
+
+env: {}
+
+initContainers: {}
+
+volumeMounts: {}
+
+volumes: {}