Skip to content

Commit

Permalink
Update database secrets in deploy.yaml and secrets.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
Flagro committed Mar 3, 2024
1 parent 95ea3ad commit 153c5a0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ jobs:
helm upgrade --install phrinifluent ./helm \
--namespace phrinifluent \
--set backendDeployment.phrinifluentBackend.image.tag=${{ steps.latest_tag.outputs.tag }} \
--set dbSecrets.user="$DB_USER" \
--set dbSecrets.password="$DB_PASSWORD" \
--set dbSecrets.dbUser="$DB_USER" \
--set dbSecrets.dbPassword="$DB_PASSWORD" \
--set backendSecrets.secretKey="$SECRET_KEY" \
--set backendSecrets.adminUsername="$ADMIN_USERNAME" \
--set backendSecrets.adminEmail="$ADMIN_EMAIL" \
Expand Down
4 changes: 2 additions & 2 deletions helm/templates/db/secrets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ metadata:
{{- include "flatchart.labels" . | nindent 4 }}
type: Opaque
data:
POSTGRES_USER: {{ .Values.dbSecrets.user | b64enc | quote }}
POSTGRES_PASSWORD: {{ .Values.dbSecrets.password | b64enc | quote }}
POSTGRES_USER: {{ .Values.dbSecrets.dbUser | b64enc | quote }}
POSTGRES_PASSWORD: {{ .Values.dbSecrets.dbPassword | b64enc | quote }}
POSTGRES_DB: {{ .Values.dbSecrets.dbName | b64enc | quote }}
4 changes: 2 additions & 2 deletions helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ pvc:
storageRequest: 2Gi

dbSecrets:
user: ""
password: ""
dbUser: ""
dbPassword: ""
dbName: ""

backendSecrets:
Expand Down

0 comments on commit 153c5a0

Please sign in to comment.