Skip to content

Commit

Permalink
fixup! 🔧(helm) rework chart based on jenny helm chart
Browse files Browse the repository at this point in the history
  • Loading branch information
wilbrdt committed May 21, 2024
1 parent 652ef5e commit aa28caa
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/helm/manifests/warren-api-secrets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
apiVersion: v1
kind: Secret
metadata:
name: warren-api-db-password
name: warren-api-db
type: Opaque
stringData:
WARREN_API_DB_PASSWORD: pass
---
apiVersion: v1
kind: Secret
metadata:
name: warren-api-lrs-password
name: warren-api-lrs
type: Opaque
stringData:
WARREN_LRS_AUTH_BASIC_PASSWORD: password
Expand Down
4 changes: 2 additions & 2 deletions src/helm/manifests/warren-app-secrets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
apiVersion: v1
kind: Secret
metadata:
name: warren-app-db-password
name: warren-app-db
type: Opaque
stringData:
WARREN_APP_DB_PASSWORD: pass
Expand All @@ -18,7 +18,7 @@ stringData:
apiVersion: v1
kind: Secret
metadata:
name: warren-app-signing-key
name: warren-signing-key
type: Opaque
stringData:
WARREN_APP_SIGNING_KEY: change_me
Expand Down
6 changes: 3 additions & 3 deletions src/helm/warren/charts/api/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ Environment variables
- name: "WARREN_API_DB_PASSWORD"
valueFrom:
secretKeyRef:
name: warren-api-db-password
name: warren-api-db
key: WARREN_API_DB_PASSWORD
- name: "WARREN_API_DB_ENGINE"
value: "{{ .Values.fastapi.db.engine }}"
Expand All @@ -82,14 +82,14 @@ Environment variables
- name: "WARREN_LRS_AUTH_BASIC_PASSWORD"
valueFrom:
secretKeyRef:
name: warren-api-lrs-password
name: warren-api-lrs
key: WARREN_LRS_AUTH_BASIC_PASSWORD
- name: "WARREN_APP_SIGNING_ALGORITHM"
value: "{{ .Values.fastapi.signingAlgorithm }}"
- name: "WARREN_APP_SIGNING_KEY"
valueFrom:
secretKeyRef:
name: warren-app-signing-key
name: warren-signing-key
key: WARREN_APP_SIGNING_KEY
{{- range $key, $val := .Values.env.secret }}
- name: {{ $val.envName }}
Expand Down
4 changes: 2 additions & 2 deletions src/helm/warren/charts/app/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ Environment variables
- name: "WARREN_APP_DB_PASSWORD"
valueFrom:
secretKeyRef:
name: warren-app-db-password
name: warren-app-db
key: WARREN_APP_DB_PASSWORD
- name: "WARREN_APP_DB_HOST"
value: "{{ .Values.django.db.host }}"
Expand All @@ -85,7 +85,7 @@ Environment variables
- name: "WARREN_APP_SIGNING_KEY"
valueFrom:
secretKeyRef:
name: warren-app-signing-key
name: warren-signing-key
key: WARREN_APP_SIGNING_KEY
- name: "WARREN_APP_ACCESS_TOKEN_LIFETIME"
value: "{{ .Values.django.accessTokenLifetime }}"
Expand Down

0 comments on commit aa28caa

Please sign in to comment.