Skip to content

Commit ba74cc8

Browse files
committed
add test
1 parent b72dbe9 commit ba74cc8

File tree

3 files changed

+42
-3
lines changed

3 files changed

+42
-3
lines changed

charts/cluster/test/pooler/01-pooler_cluster-assert.yaml

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,21 @@ kind: Deployment
33
metadata:
44
name: pooler-cluster-pooler-rw
55
status:
6-
readyReplicas: 2
6+
readyReplicas: 2
77
---
88
apiVersion: apps/v1
99
kind: Deployment
1010
metadata:
1111
name: pooler-cluster-pooler-ro
1212
status:
13-
readyReplicas: 2
13+
readyReplicas: 2
14+
---
15+
apiVersion: apps/v1
16+
kind: Deployment
17+
metadata:
18+
name: pooler-cluster-pooler-lb-rw
19+
status:
20+
readyReplicas: 2
1421
---
1522
apiVersion: postgresql.cnpg.io/v1
1623
kind: Pooler
@@ -35,3 +42,23 @@ spec:
3542
pgbouncer:
3643
poolMode: session
3744
type: ro
45+
---
46+
apiVersion: postgresql.cnpg.io/v1
47+
kind: Pooler
48+
metadata:
49+
name: pooler-cluster-pooler-lb-rw
50+
spec:
51+
cluster:
52+
name: pooler-cluster
53+
instances: 2
54+
pgbouncer:
55+
poolMode: transaction
56+
type: rw
57+
serviceTemplate:
58+
metadata:
59+
annotations:
60+
metallb.universe.tf/address-pool: loadbalanced
61+
metallb.universe.tf/allow-shared-ip: loadbalanced
62+
metallb.universe.tf/ip-allocated-from-pool: loadbalanced
63+
spec:
64+
type: LoadBalancer

charts/cluster/test/pooler/01-pooler_cluster.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,15 @@ poolers:
1515
- name: ro
1616
type: ro
1717
instances: 2
18+
- name: lb-rw
19+
type: rw
20+
instances: 2
21+
poolMode: transaction
22+
serviceTemplate:
23+
metadata:
24+
annotations:
25+
metallb.universe.tf/address-pool: loadbalanced
26+
metallb.universe.tf/allow-shared-ip: loadbalanced
27+
metallb.universe.tf/ip-allocated-from-pool: loadbalanced
28+
spec:
29+
type: LoadBalancer

charts/cluster/test/pooler/chainsaw-test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ metadata:
88
spec:
99
timeouts:
1010
apply: 1s
11-
assert: 20s
11+
assert: 2m
1212
cleanup: 30s
1313
steps:
1414
- name: Install the non-default configuration cluster

0 commit comments

Comments
 (0)