Skip to content

Commit

Permalink
test postgres-setup script
Browse files Browse the repository at this point in the history
  • Loading branch information
louisehuyton committed Dec 16, 2024
1 parent df118cb commit 3a0da38
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 0 deletions.
13 changes: 13 additions & 0 deletions apps/toffee/dev/aso/toffee-postgres-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apiVersion: dbforpostgresql.azure.com/v1api20210601
kind: FlexibleServersConfiguration
metadata:
name: extensions
namespace: ${NAMESPACE}
annotations:
serviceoperator.azure.com/reconcile-policy: detach-on-delete
spec:
owner:
name: ${NAMESPACE}-${ENVIRONMENT}
azureName: azure.extensions
source: user-override
value: "btree_gin"
7 changes: 7 additions & 0 deletions apps/toffee/dev/aso/toffee-postgres.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
apiVersion: dbforpostgresql.azure.com/v1api20210601
kind: FlexibleServer
metadata:
name: ${NAMESPACE}-${ENVIRONMENT}
namespace: ${NAMESPACE}
spec:
version: "16"
5 changes: 5 additions & 0 deletions apps/toffee/dev/sops-secrets/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- recipe-backend-postgres.enc.yaml
namespace: toffee
25 changes: 25 additions & 0 deletions apps/toffee/dev/sops-secrets/recipe-backend-values.enc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
apiVersion: v1
data:
PASSWORD: ENC[AES256_GCM,data:tEcGzzTxOWmDwgZKL6ioX4/zFyQ=,iv:Ip+94saZiJ5bgc7u2eIScP4cqGDMMaH0PyzUR2roW88=,tag:uNPfe7lGS/DI6g1YYQC5Fw==,type:str]

Check failure on line 3 in apps/toffee/dev/sops-secrets/recipe-backend-values.enc.yaml

View workflow job for this annotation

GitHub Actions / static_tests

3:5 [indentation] wrong indentation: expected 2 but found 4
kind: Secret
metadata:
creationTimestamp: null

Check failure on line 6 in apps/toffee/dev/sops-secrets/recipe-backend-values.enc.yaml

View workflow job for this annotation

GitHub Actions / static_tests

6:5 [indentation] wrong indentation: expected 2 but found 4
name: postgres
namespace: toffee
type: Opaque
sops:
kms: []

Check failure on line 11 in apps/toffee/dev/sops-secrets/recipe-backend-values.enc.yaml

View workflow job for this annotation

GitHub Actions / static_tests

11:5 [indentation] wrong indentation: expected 2 but found 4
gcp_kms: []
azure_kv:
- vault_url: https://dtssharedservicesdevkv.vault.azure.net

Check failure on line 14 in apps/toffee/dev/sops-secrets/recipe-backend-values.enc.yaml

View workflow job for this annotation

GitHub Actions / static_tests

14:9 [indentation] wrong indentation: expected 6 but found 8
name: sops-key
version: 2beba064ddfe454482ad0133af2cf0fd
created_at: "2024-12-16T15:46:12Z"
enc: CU9QZMvK1rZA4xW3P3UV8a_raE2taarTgg5dJPqPkDvZ_CFVUhxc4h72pIvMWjSkS8eTexpcYrsAUNAMV-tnKNX3EgBrCh20G9VXntODQilizJF1hvojK5qNPgJgvMfWsFxqCsLinMG1z93B_AOKj8egxgEvyd_S1Za3hoCaia1DSFCnsT3EPwyT-0dWn_5K7aMdTbsF1QgntSIRq_eDFF126RhTn4tuW4-2rTJSf-_sujflPizddLg-zYiuxqYFC_c1jZYrp0o9npvPTRbExNCrV5ZlqtVqIVwBmYc6UKzx8UrkwyRpRsCEZfJzvb4IfFP9TANnPiu2b8F7NKhk-A
hc_vault: []
age: []
lastmodified: "2024-12-16T15:46:15Z"
mac: ENC[AES256_GCM,data:SnZE4IUogPyHT/ehVkvv105o/6PbT4jVB1dXVnCKmNt022arWvr7HHfU99sipeaN7A3bZmhRcge01K5XCYrOpd07rnkI7DWWE3S1kXLB2tK9qQML1f29tshd99xmCHn6PBqxcziksm26fbF/pc7GaCaOwceyyEtLpXXDOx/WKk8=,iv:RIVEVfyGgdZfGsMWUsp6g7V89Oe2gYBonIls/liZiUw=,tag:oP1DwrOyKdMUen20RAYqaw==,type:str]
pgp: []
encrypted_regex: ^(data|stringData)$
version: 3.9.1

0 comments on commit 3a0da38

Please sign in to comment.