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