Skip to content

Commit

Permalink
add platformdb tag
Browse files Browse the repository at this point in the history
  • Loading branch information
kfeofantov committed May 31, 2018
1 parent 24a0789 commit 5d0e18e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions charts/user-manager/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,10 @@ spec:
secretKeyRef:
name: {{ template "fullname" . }}
key: pg-password
{{- else if .Values.tags.platformdb }}
- name: CH_USER_PG_PASSWORD
valueFrom:
secretKeyRef:
name: {{ .Release.Name }}-postgres
key: postgres-password
{{- end }}
2 changes: 2 additions & 0 deletions charts/user-manager/templates/secret.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.env.local.CH_USER_PG_PASSWORD }}
apiVersion: v1
kind: Secret
metadata:
Expand All @@ -12,3 +13,4 @@ data:
{{- if .Values.env.local.CH_USER_PG_PASSWORD }}
pg-password: {{ .Values.env.local.CH_USER_PG_PASSWORD | b64enc }}
{{- end }}
{{- end }}
1 change: 1 addition & 0 deletions charts/user-manager/values.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
tags:
db: true
platformdb: false

replicaCount: 1

Expand Down

0 comments on commit 5d0e18e

Please sign in to comment.