Support defining extra env for broker and proxy statefulsset. (#273)

This commit is contained in:
Marvin Cai 2022-06-20 07:59:43 -07:00 committed by GitHub
parent f2266c4295
commit c6ab1d18e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 21 additions and 1 deletions

View File

@ -227,6 +227,10 @@ spec:
- name: "{{ .Values.tlsPrefix }}pulsarssl" - name: "{{ .Values.tlsPrefix }}pulsarssl"
containerPort: {{ .Values.broker.ports.pulsarssl }} containerPort: {{ .Values.broker.ports.pulsarssl }}
{{- end }} {{- end }}
{{- if .Values.broker.extreEnvs }}
env:
{{ toYaml .Values.broker.extreEnvs | indent 8 }}
{{- end }}
envFrom: envFrom:
- configMapRef: - configMapRef:
name: "{{ template "pulsar.fullname" . }}-{{ .Values.broker.component }}" name: "{{ template "pulsar.fullname" . }}-{{ .Values.broker.component }}"

View File

@ -202,6 +202,10 @@ spec:
securityContext: securityContext:
readOnlyRootFilesystem: false readOnlyRootFilesystem: false
{{- end }} {{- end }}
{{- if .Values.proxy.extreEnvs }}
env:
{{ toYaml .Values.proxy.extreEnvs | indent 8 }}
{{- end }}
envFrom: envFrom:
- configMapRef: - configMapRef:
name: "{{ template "pulsar.fullname" . }}-{{ .Values.proxy.component }}" name: "{{ template "pulsar.fullname" . }}-{{ .Values.proxy.component }}"

View File

@ -740,6 +740,12 @@ broker:
# readOnly: true # readOnly: true
extraVolumes: [] extraVolumes: []
extraVolumeMounts: [] extraVolumeMounts: []
extreEnvs: []
# - name: POD_NAME
# valueFrom:
# fieldRef:
# apiVersion: v1
# fieldPath: metadata.name
## Broker configmap ## Broker configmap
## templates/broker-configmap.yaml ## templates/broker-configmap.yaml
## ##
@ -856,6 +862,12 @@ proxy:
# readOnly: true # readOnly: true
extraVolumes: [] extraVolumes: []
extraVolumeMounts: [] extraVolumeMounts: []
extreEnvs: []
# - name: POD_IP
# valueFrom:
# fieldRef:
# apiVersion: v1
# fieldPath: status.podIP
## Proxy configmap ## Proxy configmap
## templates/proxy-configmap.yaml ## templates/proxy-configmap.yaml
## ##
@ -1162,4 +1174,4 @@ pulsar_manager:
job: job:
ttl: ttl:
enabled: false enabled: false
secondsAfterFinished: 3600 secondsAfterFinished: 3600