Skip to content

Commit

Permalink
fix(infra): update env vars in helm chart
Browse files Browse the repository at this point in the history
  • Loading branch information
Björn Urban committed Oct 11, 2023
1 parent c850422 commit 3ac6797
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
2 changes: 1 addition & 1 deletion deploy/charts/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: v2
name: kubevoyage
description: A Helm chart for Kubernetes auth proxy
version: 0.3.0
version: 0.4.0
7 changes: 6 additions & 1 deletion deploy/charts/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,12 @@ spec:
- name: DB_PASSWORD
valueFrom:
secretKeyRef:
name: {{ include "kubevoyage.fullname" . }}-db-secret
name: {{ include "kubevoyage.fullname" . }}-secret
key: db-password
- name: JWT_SECRET_KEY
valueFrom:
secretKeyRef:
name: {{ include "kubevoyage.fullname" . }}-secret
key: jwt-secret


5 changes: 3 additions & 2 deletions deploy/charts/templates/secret.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
apiVersion: v1
kind: Secret
metadata:
name: {{ include "kubevoyage.fullname" . }}-db-secret
name: {{ include "kubevoyage.fullname" . }}-secret
namespace: {{ .Values.app.namespace }}
type: Opaque
data:
db-password: {{ .Values.database.password | b64enc | quote }}
db-password: {{ .Values.database.password | b64enc | quote }}
jwt-secret: {{ .Values.secret.jwtSecret }}
4 changes: 4 additions & 0 deletions deploy/charts/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ auth:
adminUser:
adminPassword:

secret:
jwtSecret:


database:
type: postgres # default type, can be changed to mysql, sqlite, etc.
host:
Expand Down

0 comments on commit 3ac6797

Please sign in to comment.