|
2 | 2 | {{- fail "When persistence is enabled, you must set .Values.persistence.size" }} |
3 | 3 | {{- end }} |
4 | 4 |
|
5 | | -{{- include "common-app.deployment" . }} |
| 5 | +{{- include "kafka-app.deployment" . }} |
6 | 6 | spec: |
7 | | -{{- include "common-app.deployment-spec" . }} |
| 7 | +{{- include "kafka-app.deployment-spec" . }} |
8 | 8 | template: |
9 | 9 | metadata: |
10 | | -{{- include "common-app.pod-metadata" . | indent 4 }} |
| 10 | +{{- include "kafka-app.pod-metadata" . | indent 4 }} |
11 | 11 | spec: |
12 | | -{{- include "common-app.pod-spec" . | indent 4 }} |
| 12 | +{{- include "kafka-app.pod-spec" . | indent 4 }} |
13 | 13 | containers: |
14 | | - {{- include "common-app.kafka-container" . | nindent 8 }} |
| 14 | + {{- include "kafka-app.kafka-container" . | nindent 8 }} |
15 | 15 | env: |
16 | | - {{- include "common-app.common-env" . | nindent 12 }} |
17 | | - {{- include "common-app.group-instance-id-env" . | indent 12 }} |
18 | | - {{- include "common-app.input-env" . | indent 12 }} |
19 | | - {{- include "common-app.group-id-env" . | indent 12 }} |
| 16 | + {{- include "kafka-app.common-env" . | nindent 12 }} |
| 17 | + {{- include "kafka-app.group-instance-id-env" . | indent 12 }} |
| 18 | + {{- include "kafka-app.input-env" . | indent 12 }} |
| 19 | + {{- include "kafka-app.group-id-env" . | indent 12 }} |
20 | 20 | - name: JAVA_TOOL_OPTIONS |
21 | | - value: '{{ include "common-app.java-tool-jmx-options" . }} |
22 | | - {{ include "common-app.java-tool-options" . }}' |
| 21 | + value: '{{ include "kafka-app.java-tool-jmx-options" . }} |
| 22 | + {{ include "kafka-app.java-tool-options" . }}' |
23 | 23 | {{- if or (.Values.files) (and .Values.persistence.enabled .Values.statefulSet) (.Values.secretFilesRefs) }} |
24 | 24 | volumeMounts: |
25 | | - {{- include "common-app.volume-mounts" . | indent 12 }} |
| 25 | + {{- include "kafka-app.volume-mounts" . | indent 12 }} |
26 | 26 | {{- if and .Values.persistence.enabled .Values.statefulSet }} |
27 | 27 | - name: datadir |
28 | 28 | mountPath: /tmp/kafka-consumer |
29 | 29 | {{- end }} |
30 | 30 | {{- end }} |
31 | 31 | {{- if or (.Values.jmx.enabled) (.Values.ports) }} |
32 | 32 | ports: |
33 | | - {{- include "common-app.ports" . | indent 12 }} |
34 | | - {{- include "common-app.jmx-port" . | indent 12 }} |
| 33 | + {{- include "kafka-app.ports" . | indent 12 }} |
| 34 | + {{- include "kafka-app.jmx-port" . | indent 12 }} |
35 | 35 | {{- end }} |
36 | 36 | {{- if .Values.prometheus.jmx.enabled }} |
37 | | -{{- include "common-app.prometheus-container" . | nindent 8 }} |
| 37 | +{{- include "kafka-app.prometheus-container" . | nindent 8 }} |
38 | 38 | {{- end }} |
39 | 39 | {{- if or (.Values.prometheus.jmx.enabled) (.Values.files) (.Values.secretFilesRefs) }} |
40 | 40 | volumes: |
41 | | - {{- include "common-app.jmx-volume" . | indent 8 }} |
42 | | - {{- include "common-app.volumes" . | indent 8 }} |
| 41 | + {{- include "kafka-app.jmx-volume" . | indent 8 }} |
| 42 | + {{- include "kafka-app.volumes" . | indent 8 }} |
43 | 43 | {{- end }} |
0 commit comments