Skip to content

Commit 45235cd

Browse files
committed
Add Azure test
Signed-off-by: Philippe Noël <philippemnoel@gmail.com>
1 parent 31f98b3 commit 45235cd

File tree

3 files changed

+48
-0
lines changed

3 files changed

+48
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
apiVersion: v1
2+
kind: Secret
3+
metadata:
4+
name: replica-origin-azure-creds-paradedb-origin-azure-creds
5+
data:
6+
AZURE_CONNECTION_STRING: "bXljb25uc3RyaW5n"
7+
AZURE_STORAGE_ACCOUNT: "bXlhY2NvdW50"
8+
AZURE_STORAGE_KEY: "bXlzdG9yYWdla2V5"
9+
AZURE_STORAGE_SAS_TOKEN: "bXlzYXN0b2tlbg=="
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
type: postgresql
2+
mode: replica
3+
4+
cluster:
5+
instances: 1
6+
storage:
7+
size: 256Mi
8+
9+
replica:
10+
self: "replica-cluster"
11+
primary: "source-cluster"
12+
bootstrap:
13+
source: object_store
14+
origin:
15+
objectStore:
16+
clusterName: source-cluster
17+
provider: azure
18+
destinationPath: "https://myaccount.blob.core.windows.net/mycontainer"
19+
azure:
20+
connectionString: "myconnstring"
21+
storageAccount: "myaccount"
22+
storageKey: "mystoragekey"
23+
storageSasToken: "mysastoken"
24+
containerName: "mycontainer"
25+
26+
backups:
27+
enabled: false

charts/cluster/test/postgresql-cluster-configuration/chainsaw-test.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,18 @@ spec:
4747
recovery-backup-database-owner ../../
4848
- assert:
4949
file: ./03-recovery_backup_database_owner-assert.yaml
50+
- name: Verify replica origin Azure credentials are rendered correctly
51+
try:
52+
- script:
53+
content: |
54+
helm template \
55+
--namespace $NAMESPACE \
56+
--values ./04-replica_origin_azure_creds.yaml \
57+
--show-only templates/origin-azure-creds.yaml \
58+
replica-origin-azure-creds ../../ \
59+
| kubectl apply --namespace $NAMESPACE -f -
60+
- assert:
61+
file: ./04-replica_origin_azure_creds-assert.yaml
5062
- name: Cleanup
5163
try:
5264
- script:

0 commit comments

Comments
 (0)