Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added existingSecret as an option to provide a self managed secret to… #12

Merged
merged 1 commit into from
Mar 23, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion charts/permission-manager/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@ spec:
imagePullPolicy: {{ .Values.image.pullPolicy }}
envFrom:
- secretRef:
name: {{ include "permission-manager.fullname" . }}
{{- if .Values.config.existingSecret }}
name: {{ .Values.config.existingSecret }}
{{- else }}
name: {{ include "permission-manager.fullname" . }}
{{- end }}
ports:
- name: http
containerPort: 4000
Expand Down
9 changes: 9 additions & 0 deletions charts/permission-manager/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,3 +100,12 @@ config:

# Random password to login to web-app. PLEASE CHANGE!
basicAuthPassword: RrXwZSBdTXhQL6

# Set to name of a secret. will read basicAuthPassword from secret instead of confg.basicAuthPassword
# example : basicAuthExistingSecret: permission-maanger-htpasswd that has the same structure as the chart's secret
# stringData:
# PORT: "4000" # port where server is exposed
# CLUSTER_NAME: {{ .Values.config.clusterName }}
# CONTROL_PLANE_ADDRESS: {{ .Values.config.controlePlaneAddress }}
# BASIC_AUTH_PASSWORD: {{ .Values.config.basicAuthPassword }}
existingSecret: false