Skip to content

Commit

Permalink
Skru på cascading delete for notifikasjondatabase
Browse files Browse the repository at this point in the history
  • Loading branch information
bjerga committed Nov 5, 2024
1 parent eb40b71 commit 80755c3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
8 changes: 6 additions & 2 deletions config/nais.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ spec:
gcp:
sqlInstances:
- type: POSTGRES_14
{{#if database.cascadingDelete}}
cascadingDelete: {{ database.cascadingDelete }}
{{/if}}
tier: {{ database.tier }}
databases:
- name: {{ database.name }}
Expand All @@ -73,9 +76,10 @@ spec:
{{/if}}
{{#if envFrom}}
envFrom:
{{# each envFrom as |item| }}
{{# each envFrom as |item| }}
- {{ item.type }}: {{ item.name }}
{{/each}}{{/if}}
{{/each}}
{{/if}}
env:
- name: KAFKA_CONSUMER_GROUP_ID
value: helsearbeidsgiver-im-{{app}}-v1
Expand Down
1 change: 1 addition & 0 deletions config/notifikasjon/dev-gcp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ database:
name: notifikasjon
tier: db-custom-1-3840
logicalDecoding: true
cascadingDelete: true
envFrom:
- type: secret
name: google-sql-im-notifikasjon
Expand Down
1 change: 1 addition & 0 deletions config/notifikasjon/prod-gcp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ database:
name: notifikasjon
tier: db-custom-1-3840
logicalDecoding: true
cascadingDelete: true
envFrom:
- type: secret
name: google-sql-im-notifikasjon
Expand Down

0 comments on commit 80755c3

Please sign in to comment.