Skip to content

Commit

Permalink
Read database URL from secret
Browse files Browse the repository at this point in the history
  • Loading branch information
chosak committed Nov 25, 2024
1 parent f734506 commit c6eda3e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 172 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/friendly-umbrella-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,4 @@ jobs:
--set mapping.host=${{ secrets.HOST }}
--set serviceAccount.name=${{ secrets.K8S_SERVICE_ACCOUNT }}
--set config.AWS_STORAGE_BUCKET_NAME=${{ secrets.BUCKET_NAME }}
--set config.RDS_HOST=$RDS_HOST
--set config.RDS_PASSWORD=$RDS_PASSWORD
--set config.RDS_USER=$RDS_USER
--set config.RDS_PORT=$RDS_PORT
--set config.RDS_DB_NAME=$RDS_NAME
--set config.DATABASE_URL=$DATABASE_URL
159 changes: 0 additions & 159 deletions friendly_umbrella/helm-eks.py

This file was deleted.

12 changes: 4 additions & 8 deletions helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

initContainers:
- name: friendly-umbrella-init
image:
image:
repository: friendly-umbrella
pullPolicy: IfNotPresent
tag: "latest"
Expand All @@ -12,12 +12,12 @@ initContainers:
value: "django_application.settings.helm_eks"
commands: ["sh", "-c"]
args:
- |
- |
python friendly-umbrella/manage.py makemigrations && python friendly-umbrella/manage.py migrate
containers:
- name: friendly-umbrella
image:
image:
repository: friendly-umbrella
pullPolicy: IfNotPresent
tag: "latest"
Expand All @@ -40,11 +40,7 @@ serviceAccount:

config:
AWS_STORAGE_BUCKET_NAME: bucket_name
RDS_HOST: host
RDS_PORT: port
RDS_USER: user
RDS_PASSWORD: password
RDS_DB_NAME: db
DATABASE_URL: database_url

mapping:
enabled: true
Expand Down

0 comments on commit c6eda3e

Please sign in to comment.