Skip to content

Commit

Permalink
fix: broker extraEnv variable (#540)
Browse files Browse the repository at this point in the history
* fix: broker extraEnv variable

* fix: comment extraEnv for broker as default values

* fix(typo): rename extreEnvs to extraEnvs
  • Loading branch information
lenglet-k authored Oct 18, 2024
1 parent 9e499db commit db20c2b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 13 deletions.
7 changes: 3 additions & 4 deletions charts/pulsar/templates/broker-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -262,10 +262,6 @@ spec:
- name: "{{ .Values.tlsPrefix }}pulsarssl"
containerPort: {{ .Values.broker.ports.pulsarssl }}
{{- end }}
{{- if .Values.broker.extreEnvs }}
env:
{{ toYaml .Values.broker.extreEnvs | indent 8 }}
{{- end }}
envFrom:
- configMapRef:
name: "{{ template "pulsar.fullname" . }}-{{ .Values.broker.component }}"
Expand Down Expand Up @@ -320,6 +316,9 @@ spec:
name: {{ .Values.broker.storageOffload.secret }}
key: AZURE_STORAGE_ACCESS_KEY
{{- end }}
{{- if .Values.broker.extraEnvs }}
{{- toYaml .Values.broker.extraEnvs | nindent 10 }}
{{- end }}
volumes:
{{- if .Values.broker.extraVolumes }}
{{ toYaml .Values.broker.extraVolumes | indent 6 }}
Expand Down
4 changes: 2 additions & 2 deletions charts/pulsar/templates/proxy-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -216,9 +216,9 @@ spec:
securityContext:
readOnlyRootFilesystem: false
{{- end }}
{{- if .Values.proxy.extreEnvs }}
{{- if .Values.proxy.extraEnvs }}
env:
{{ toYaml .Values.proxy.extreEnvs | indent 8 }}
{{ toYaml .Values.proxy.extraEnvs | indent 8 }}
{{- end }}
envFrom:
- configMapRef:
Expand Down
14 changes: 7 additions & 7 deletions charts/pulsar/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -884,12 +884,12 @@ broker:
# readOnly: true
extraVolumes: []
extraVolumeMounts: []
extreEnvs: []
# - name: POD_NAME
# valueFrom:
# fieldRef:
# apiVersion: v1
# fieldPath: metadata.name
extraEnvs: []
# - name: POD_NAME
# valueFrom:
# fieldRef:
# apiVersion: v1
# fieldPath: metadata.name
## Broker configmap
## templates/broker-configmap.yaml
## Keys in broker.conf can be overridden here. Use PULSAR_PREFIX_ to add keys to broker.conf.
Expand Down Expand Up @@ -1124,7 +1124,7 @@ proxy:
# readOnly: true
extraVolumes: []
extraVolumeMounts: []
extreEnvs: []
extraEnvs: []
# - name: POD_IP
# valueFrom:
# fieldRef:
Expand Down

0 comments on commit db20c2b

Please sign in to comment.