Skip to content

Commit

Permalink
fix: test CNPG DB (#500)
Browse files Browse the repository at this point in the history
* feat: use CNPG DB

* chore: add create-db for preprod and prod +cleanup

---------

Co-authored-by: devthejo <[email protected]>
  • Loading branch information
matmut7 and devthejo authored Feb 20, 2023
1 parent 53155cc commit 85c83f7
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 20 deletions.
9 changes: 9 additions & 0 deletions .kontinuous/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,12 @@ dependencies:
import: socialgouv/kontinuous/plugins/fabrique
options:
registry: ghcr.io
dependencies:
contrib:
preDeploy:
importSecrets:
options:
secrets:
pg-admin-user:
from:
- cnpg-admin-user
27 changes: 7 additions & 20 deletions .kontinuous/env/dev/values.yaml
Original file line number Diff line number Diff line change
@@ -1,28 +1,15 @@
app:
replicas: 1
# hasura:
# ~needs: [create-db]

hasura:
~needs: [create-db]
replicas: 1
envFrom:
- secretRef:
name: hasura
- secretRef:
name: pg-user
- configMapRef:
name: hasura-configmap

jobs:
runs:
create-db:
use: create-db
with:
pgAdminSecretRefName: azure-pg-admin-user
# jobs:
# runs:
# create-db:
# use: create-db

deactivate:
enabled: false
jobs-deactivate:
runs:
deactivate:
with:
pgAdminSecretRefName: azure-pg-admin-user
db: true
6 changes: 6 additions & 0 deletions .kontinuous/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ app:
imagePackage: app

hasura:
~needs: [create-db]
envFrom:
- secretRef:
name: hasura
Expand All @@ -25,3 +26,8 @@ hasura:
cpu: 250m
memory: 512Mi
replicas: 2

jobs:
runs:
create-db:
use: create-db

0 comments on commit 85c83f7

Please sign in to comment.