Allow use of existing secret for pulsar manager credentials (#69)
Signed-off-by: Jiří Pinkava <jiri.pinkava@rossum.ai> Co-authored-by: Jiri Pinkava <jiri.pinkava@rossum.ai>
This commit is contained in:
parent
6fbda8052c
commit
8d5339f9ff
@ -21,7 +21,7 @@ apiVersion: v1
|
||||
appVersion: "2.7.0"
|
||||
description: Apache Pulsar Helm chart for Kubernetes
|
||||
name: pulsar
|
||||
version: 2.7.0
|
||||
version: 2.7.0-1
|
||||
home: https://pulsar.apache.org
|
||||
sources:
|
||||
- https://github.com/apache/pulsar
|
||||
|
||||
@ -17,7 +17,7 @@
|
||||
# under the License.
|
||||
#
|
||||
|
||||
{{- if or .Values.components.pulsar_manager .Values.extra.pulsar_manager }}
|
||||
{{- if and (or .Values.components.pulsar_manager .Values.extra.pulsar_manager) (not .Values.pulsar_manager.existingSecretName) }}
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
|
||||
@ -72,12 +72,20 @@ spec:
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
key: PULSAR_MANAGER_ADMIN_USER
|
||||
{{- if .Values.pulsar_manager.existingSecretName }}
|
||||
name: "{{ .Values.pulsar_manager.existingSecretName }}"
|
||||
{{- else }}
|
||||
name: "{{ template "pulsar.fullname" . }}-{{ .Values.pulsar_manager.component }}-secret"
|
||||
{{- end }}
|
||||
- name: PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
key: PULSAR_MANAGER_ADMIN_PASSWORD
|
||||
{{- if .Values.pulsar_manager.existingSecretName }}
|
||||
name: "{{ .Values.pulsar_manager.existingSecretName }}"
|
||||
{{- else }}
|
||||
name: "{{ template "pulsar.fullname" . }}-{{ .Values.pulsar_manager.component }}-secret"
|
||||
{{- end }}
|
||||
volumes:
|
||||
- name: pulsar-manager-data
|
||||
emptyDir: {}
|
||||
|
||||
@ -963,6 +963,8 @@ pulsar_manager:
|
||||
hostname: ""
|
||||
path: "/"
|
||||
|
||||
## If set use existing secret with specified name to set pulsar admin credentials.
|
||||
existingSecretName:
|
||||
admin:
|
||||
user: pulsar
|
||||
password: pulsar
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user