diff --git a/deploy/charts/Chart.yaml b/deploy/charts/Chart.yaml index d595b79..55d2192 100644 --- a/deploy/charts/Chart.yaml +++ b/deploy/charts/Chart.yaml @@ -1,4 +1,4 @@ apiVersion: v2 name: kubevoyage description: A Helm chart for Kubernetes auth proxy -version: 0.3.0 \ No newline at end of file +version: 0.4.0 \ No newline at end of file diff --git a/deploy/charts/templates/deployment.yaml b/deploy/charts/templates/deployment.yaml index e0f13f2..db1769e 100644 --- a/deploy/charts/templates/deployment.yaml +++ b/deploy/charts/templates/deployment.yaml @@ -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 diff --git a/deploy/charts/templates/secret.yaml b/deploy/charts/templates/secret.yaml index 2df30ea..7995890 100644 --- a/deploy/charts/templates/secret.yaml +++ b/deploy/charts/templates/secret.yaml @@ -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 }} \ No newline at end of file + db-password: {{ .Values.database.password | b64enc | quote }} + jwt-secret: {{ .Values.secret.jwtSecret }} \ No newline at end of file diff --git a/deploy/charts/values.yaml b/deploy/charts/values.yaml index 281d960..77e0f3f 100644 --- a/deploy/charts/values.yaml +++ b/deploy/charts/values.yaml @@ -35,6 +35,10 @@ auth: adminUser: adminPassword: +secret: + jwtSecret: + + database: type: postgres # default type, can be changed to mysql, sqlite, etc. host: