1+ credential :
2+ {{- if (eq .Values.service.type "LoadBalancer") }}
3+ - name : EXTERNAL_HOST
4+ valueFrom :
5+ serviceRef :
6+ name : {{ template "common.names.fullname" . }}
7+ jsonpath : ' { .status.loadBalancer.ingress[*].ip }'
8+ {{- end }}
9+
10+ - name : HOST
11+ valueFrom :
12+ serviceRef :
13+ name : {{ template "common.names.fullname" . }}
14+ jsonpath : ' { .spec.clusterIP }'
15+
16+ {{- if not .Values.service.disableBaseClientPort }}
17+ - name : TCP_CLIENT_PORT
18+ valueFrom :
19+ serviceRef :
20+ name : {{ template "common.names.fullname" . }}
21+ jsonpath : ' { .spec.ports[?(@.name=="tcp-client")].port }'
22+ {{- end }}
23+
24+ {{- if .Values.tls.client.enabled }}
25+ - name : TCP_CLIENTT_TLS_PORT
26+ valueFrom :
27+ serviceRef :
28+ name : {{ template "common.names.fullname" . }}
29+ jsonpath : ' { .spec.ports[?(@.name=="tcp-client-tls")].port }'
30+ {{- end }}
31+
32+ {{- if .Values.auth.client.enabled }}
33+ - name : ZOO_CLIENT_USER
34+ value : {{ .Values.auth.client.clientUser | quote }}
35+
36+ - name : ZOO_SERVER_USERS
37+ value : {{ .Values.auth.client.serverUsers | quote }}
38+ {{- end }}
39+
40+ {{- if (include "zookeeper.client.createSecret" .) }}
41+ - name : CLIENT_PASSWORD
42+ valueFrom :
43+ secretKeyRef :
44+ name : {{ printf "%s-client-auth" (include "common.names.fullname" .) }}
45+ jsonpath : ' { .data.client-password }'
46+
47+ - name : SERVER_PASSWORD
48+ valueFrom :
49+ secretKeyRef :
50+ name : {{ printf "%s-client-auth" (include "common.names.fullname" .) }}
51+ jsonpath : ' { .data.server-password }'
52+ {{- end }}
53+
54+ {{- if .Values.auth.quorum.enabled }}
55+ - name : QUORUM_LEARNER_USER
56+ value : {{ .Values.auth.quorum.learnerUser | quote }}
57+
58+ - name : QUORUM_SERVER_USER
59+ value : {{ .Values.auth.quorum.serverUsers | quote }}
60+ {{- end }}
61+
62+ {{- if (include "zookeeper.quorum.createSecret" .) }}
63+ - name : QUORUM_LEARNER_PASSWORD
64+ valueFrom :
65+ secretKeyRef :
66+ name : {{ printf "%s-quorum-auth" (include "common.names.fullname" .) }}
67+ jsonpath : ' { .data.quorum-learner-password }'
68+
69+ - name : QUORUM_SERVER_PASSWORD
70+ valueFrom :
71+ secretKeyRef :
72+ name : {{ printf "%s-quorum-auth" (include "common.names.fullname" .) }}
73+ jsonpath : ' { .data.quorum-server-password }'
74+ {{- end }}
75+
76+ {{- if (include "zookeeper.client.createTlsPasswordsSecret" .) }}
77+ - name : CLIENT_KEYSTORE_PASSWORD
78+ valueFrom :
79+ secretKeyRef :
80+ name : {{ template "common.names.fullname" . }}-client-tls-pass
81+ jsonpath : ' { .data.keystore-password }'
82+
83+ - name : CLIENT_TRUSTSTORE_PASSWORD
84+ valueFrom :
85+ secretKeyRef :
86+ name : {{ template "common.names.fullname" . }}-client-tls-pass
87+ jsonpath : ' { .data.truststore-password }'
88+ {{- end }}
89+
90+ {{- if (include "zookeeper.quorum.createTlsPasswordsSecret" .) }}
91+ - name : QUORUM_KEYSTORE_PASSWORD
92+ valueFrom :
93+ secretKeyRef :
94+ name : {{ template "common.names.fullname" . }}-quorum-tls-pass
95+ jsonpath : ' { .data.keystore-password }'
96+
97+ - name : QUORUM_TRUSTSTORE_PASSWORD
98+ valueFrom :
99+ secretKeyRef :
100+ name : {{ template "common.names.fullname" . }}-quorum-tls-pass
101+ jsonpath : ' { .data.truststore-password }'
102+ {{- end }}
0 commit comments