SolaceProducts / pubsubplus-kubernetes-helm-quickstart

Quickstart to launch a Solace PubSub+ Software Event Broker in Kubernetes using Helm
Apache License 2.0
32 stars 44 forks source link

[Feature]: Ability to use existing secret for usernameAdminPassword #150

Open anified opened 4 hours ago

anified commented 4 hours ago

Feature Description

Adding an optional solace.existingSecret value to helm chart for enabling usernameAdminPassword deployment with encryption.

Use Case

Do not want to save plain text password in repository for CI/CD deployment.

Proposed Solution

Wrap secret.yaml: {{- if not .Values.solace.existingSecret }}

For solaceStatefulSet.yaml: Change: secretName: {{ template "solace.fullname" . }}-secrets To: secretName: {{ .Values.solace.existingSecret | default (printf "%s-secrets" (include "solace.fullname" .)) }}