Skip to content

Commit

Permalink
Updated chart tests
Browse files Browse the repository at this point in the history
  • Loading branch information
itay-grudev committed Sep 16, 2024
1 parent f439fd4 commit 9e1ad65
Show file tree
Hide file tree
Showing 43 changed files with 54 additions and 54 deletions.
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
apiVersion: monitoring.coreos.com/v1
kind: PodMonitor
metadata:
name: monitoring-cluster
name: monitoring-paradedb-cluster
spec:
selector:
matchLabels:
cnpg.io/cluster: monitoring-cluster
cnpg.io/cluster: monitoring-paradedb-cluster
---
apiVersion: monitoring.coreos.com/v1
kind: PodMonitor
metadata:
name: monitoring-cluster-pooler-rw
name: monitoring-paradedb-cluster-pooler-rw
spec:
selector:
matchLabels:
cnpg.io/poolerName: monitoring-cluster-pooler-rw
cnpg.io/poolerName: monitoring-paradedb-cluster-pooler-rw
---
apiVersion: monitoring.coreos.com/v1
kind: PrometheusRule
metadata:
name: monitoring-cluster-alert-rules
name: monitoring-paradedb-cluster-alert-rules
---
apiVersion: v1
kind: ConfigMap
metadata:
name: monitoring-cluster-monitoring
name: monitoring-paradedb-cluster-monitoring
data:
custom-queries: |
pg_cache_hit_ratio:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: postgresql.cnpg.io/v1
kind: Cluster
metadata:
name: paradedb-cluster
name: paradedb-paradedb-cluster
status:
readyInstances: 2
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ spec:
- name: DB_URI
valueFrom:
secretKeyRef:
name: paradedb-cluster-app
name: paradedb-paradedb-cluster-app
key: uri
image: alpine:3.19
command: ['sh', '-c']
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ spec:
- name: DB_URI
valueFrom:
secretKeyRef:
name: paradedb-cluster-app
name: paradedb-paradedb-cluster-app
key: uri
image: alpine:3.19
command: ['sh', '-c']
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ spec:
- name: DB_URI
valueFrom:
secretKeyRef:
name: paradedb-cluster-superuser
name: paradedb-paradedb-cluster-superuser
key: uri
image: alpine:3.19
command: ['sh', '-c']
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ metadata:
spec:
method: barmanObjectStore
cluster:
name: paradedb-cluster
name: paradedb-paradedb-cluster
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: post-init-backup
spec:
cluster:
name: paradedb-cluster
name: paradedb-paradedb-cluster
method: barmanObjectStore
status:
phase: completed
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: post-init-backup
spec:
cluster:
name: paradedb-cluster
name: paradedb-paradedb-cluster
method: barmanObjectStore
status:
phase: running
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ spec:
- name: DB_URI
valueFrom:
secretKeyRef:
name: paradedb-cluster-superuser
name: paradedb-paradedb-cluster-superuser
key: uri
image: alpine:3.19
command: ['sh', '-c']
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ spec:
- name: DB_URI
valueFrom:
secretKeyRef:
name: paradedb-cluster-superuser
name: paradedb-paradedb-cluster-superuser
key: uri
- name: NAMESPACE
valueFrom:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: postgresql.cnpg.io/v1
kind: Cluster
metadata:
name: recovery-backup-pitr-cluster
name: recovery-backup-pitr-paradedb-cluster
status:
readyInstances: 2
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ spec:
- name: DB_URI
valueFrom:
secretKeyRef:
name: recovery-backup-pitr-cluster-superuser
name: recovery-backup-pitr-paradedb-cluster-superuser
key: uri
image: alpine:3.19
command: ['sh', '-c']
Expand Down
6 changes: 3 additions & 3 deletions charts/paradedb/test/pooler/01-pooler_cluster-assert.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: pooler-cluster-pooler-rw
name: pooler-paradedb-cluster-pooler-rw
status:
readyReplicas: 2
---
apiVersion: postgresql.cnpg.io/v1
kind: Pooler
metadata:
name: pooler-cluster-pooler-rw
name: pooler-paradedb-cluster-pooler-rw
spec:
cluster:
name: pooler-cluster
name: pooler-paradedb-cluster
instances: 2
pgbouncer:
poolMode: transaction
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: postgresql.cnpg.io/v1
kind: Cluster
metadata:
name: non-default-configuration-cluster
name: non-default-configuration-paradedb-cluster
labels:
foo: bar
annotations:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: postgresql.cnpg.io/v1
kind: Cluster
metadata:
name: standalone-cluster
name: standalone-paradedb-cluster
status:
readyInstances: 2
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ spec:
- name: DB_URI
valueFrom:
secretKeyRef:
name: standalone-cluster-superuser
name: standalone-paradedb-cluster-superuser
key: uri
image: alpine:3.19
command: ['sh', '-c']
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ metadata:
spec:
method: barmanObjectStore
cluster:
name: standalone-cluster
name: standalone-paradedb-cluster
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: post-init-backup
spec:
cluster:
name: standalone-cluster
name: standalone-paradedb-cluster
method: barmanObjectStore
status:
phase: completed
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: post-init-backup
spec:
cluster:
name: standalone-cluster
name: standalone-paradedb-cluster
method: barmanObjectStore
status:
phase: running
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ spec:
- name: DB_URI
valueFrom:
secretKeyRef:
name: standalone-cluster-superuser
name: standalone-paradedb-cluster-superuser
key: uri
image: alpine:3.19
command: ['sh', '-c']
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ spec:
- name: DB_URI
valueFrom:
secretKeyRef:
name: standalone-cluster-superuser
name: standalone-paradedb-cluster-superuser
key: uri
- name: NAMESPACE
valueFrom:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: postgresql.cnpg.io/v1
kind: Cluster
metadata:
name: recovery-backup-cluster
name: recovery-backup-paradedb-cluster
status:
readyInstances: 2
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ spec:
- name: DB_URI
valueFrom:
secretKeyRef:
name: recovery-backup-cluster-superuser
name: recovery-backup-paradedb-cluster-superuser
key: uri
image: alpine:3.19
command: ['sh', '-c']
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: postgresql.cnpg.io/v1
kind: Cluster
metadata:
name: recovery-object-store-cluster
name: recovery-object-store-paradedb-cluster
status:
readyInstances: 2
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ cluster:

recovery:
method: object_store
clusterName: "standalone-cluster"
clusterName: "standalone-paradedb-cluster"
provider: s3
endpointURL: "https://minio.minio.svc.cluster.local"
endpointCA:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ spec:
- name: DB_URI
valueFrom:
secretKeyRef:
name: recovery-object-store-cluster-superuser
name: recovery-object-store-paradedb-cluster-superuser
key: uri
image: alpine:3.19
command: ['sh', '-c']
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: postgresql.cnpg.io/v1
kind: Cluster
metadata:
name: recovery-backup-pitr-cluster
name: recovery-backup-pitr-paradedb-cluster
status:
readyInstances: 2
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ spec:
- name: DB_URI
valueFrom:
secretKeyRef:
name: recovery-backup-pitr-cluster-superuser
name: recovery-backup-pitr-paradedb-cluster-superuser
key: uri
image: alpine:3.19
command: ['sh', '-c']
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: postgresql.cnpg.io/v1
kind: Cluster
metadata:
name: source-cluster
name: source-paradedb-cluster
status:
readyInstances: 1
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ spec:
- name: DB_USER
valueFrom:
secretKeyRef:
name: source-cluster-superuser
name: source-paradedb-cluster-superuser
key: username
- name: DB_PASS
valueFrom:
secretKeyRef:
name: source-cluster-superuser
name: source-paradedb-cluster-superuser
key: password
- name: DB_URI
value: postgres://$(DB_USER):$(DB_PASS)@source-cluster-rw:5432
value: postgres://$(DB_USER):$(DB_PASS)@source-paradedb-cluster-rw:5432
image: alpine:3.19
command: ['sh', '-c']
args:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: postgresql.cnpg.io/v1
kind: Cluster
metadata:
name: pg-basebackup-cluster
name: pg-basebackup-paradedb-cluster
status:
readyInstances: 2
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ recovery:
method: "pg_basebackup"
pgBaseBackup:
source:
host: "source-cluster-rw"
host: "source-paradedb-cluster-rw"
database: "mygooddb"
username: "streaming_replica"
sslMode: "require"
sslKeySecret:
name: source-cluster-replication
name: source-paradedb-cluster-replication
key: tls.key
sslCertSecret:
name: source-cluster-replication
name: source-paradedb-cluster-replication
key: tls.crt

cluster:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ spec:
- name: DB_URI
valueFrom:
secretKeyRef:
name: pg-basebackup-cluster-superuser
name: pg-basebackup-paradedb-cluster-superuser
key: uri
image: alpine:3.19
command: ['sh', '-c']
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: postgresql.cnpg.io/v1
kind: Cluster
metadata:
name: timescale-cluster
name: timescale-paradedb-cluster
status:
readyInstances: 2
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ spec:
- name: DB_URI
valueFrom:
secretKeyRef:
name: timescale-cluster-app
name: timescale-paradedb-cluster-app
key: uri
image: alpine:3.19
command: ['sh', '-c']
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ spec:
- name: DB_URI
valueFrom:
secretKeyRef:
name: timescale-cluster-superuser
name: timescale-paradedb-cluster-superuser
key: uri
image: alpine:3.19
command: ['sh', '-c']
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ metadata:
spec:
method: barmanObjectStore
cluster:
name: timescale-cluster
name: timescale-paradedb-cluster
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: post-init-backup
spec:
cluster:
name: timescale-cluster
name: timescale-paradedb-cluster
method: barmanObjectStore
status:
phase: completed
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: post-init-backup
spec:
cluster:
name: timescale-cluster
name: timescale-paradedb-cluster
method: barmanObjectStore
status:
phase: running
Loading

0 comments on commit 9e1ad65

Please sign in to comment.