Skip to content

Commit

Permalink
Update tests after common rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
mbaldessari committed Aug 27, 2024
1 parent 4ead65b commit fc06e45
Show file tree
Hide file tree
Showing 18 changed files with 1,161 additions and 240 deletions.
62 changes: 62 additions & 0 deletions tests/all-crunchy-pgcluster-industrial-edge-factory.expected.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
---
# Source: crunchy-pgcluster/templates/dbinit-cm.yaml
apiVersion: v1
kind: ConfigMap
metadata:
name: db-init-sql
data:
initSQL: "\\c db;"
---
# Source: crunchy-pgcluster/templates/postgres-cluster.yaml
apiVersion: postgres-operator.crunchydata.com/v1beta1
kind: PostgresCluster
metadata:
name: db
spec:
users: [
{
"databases": [
"db"
],
"name": "user"
}
]
databaseInitSQL:
key: initSQL
name: db-init-sql
postgresVersion: 16
instances: [
{
"dataVolumeClaimSpec": {
"accessModes": [
"ReadWriteOnce"
],
"resources": {
"requests": {
"storage": "10Gi"
}
}
},
"name": "instance1"
}
]
backups:
pgbackrest: {
"repos": [
{
"name": "repo1",
"volume": {
"volumeClaimSpec": {
"accessModes": [
"ReadWriteOnce"
],
"resources": {
"requests": {
"storage": "1Gi"
}
}
}
}
}
]
}
62 changes: 62 additions & 0 deletions tests/all-crunchy-pgcluster-industrial-edge-hub.expected.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
---
# Source: crunchy-pgcluster/templates/dbinit-cm.yaml
apiVersion: v1
kind: ConfigMap
metadata:
name: db-init-sql
data:
initSQL: "\\c db;"
---
# Source: crunchy-pgcluster/templates/postgres-cluster.yaml
apiVersion: postgres-operator.crunchydata.com/v1beta1
kind: PostgresCluster
metadata:
name: db
spec:
users: [
{
"databases": [
"db"
],
"name": "user"
}
]
databaseInitSQL:
key: initSQL
name: db-init-sql
postgresVersion: 16
instances: [
{
"dataVolumeClaimSpec": {
"accessModes": [
"ReadWriteOnce"
],
"resources": {
"requests": {
"storage": "10Gi"
}
}
},
"name": "instance1"
}
]
backups:
pgbackrest: {
"repos": [
{
"name": "repo1",
"volume": {
"volumeClaimSpec": {
"accessModes": [
"ReadWriteOnce"
],
"resources": {
"requests": {
"storage": "1Gi"
}
}
}
}
}
]
}
62 changes: 62 additions & 0 deletions tests/all-crunchy-pgcluster-medical-diagnosis-hub.expected.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
---
# Source: crunchy-pgcluster/templates/dbinit-cm.yaml
apiVersion: v1
kind: ConfigMap
metadata:
name: db-init-sql
data:
initSQL: "\\c db;"
---
# Source: crunchy-pgcluster/templates/postgres-cluster.yaml
apiVersion: postgres-operator.crunchydata.com/v1beta1
kind: PostgresCluster
metadata:
name: db
spec:
users: [
{
"databases": [
"db"
],
"name": "user"
}
]
databaseInitSQL:
key: initSQL
name: db-init-sql
postgresVersion: 16
instances: [
{
"dataVolumeClaimSpec": {
"accessModes": [
"ReadWriteOnce"
],
"resources": {
"requests": {
"storage": "10Gi"
}
}
},
"name": "instance1"
}
]
backups:
pgbackrest: {
"repos": [
{
"name": "repo1",
"volume": {
"volumeClaimSpec": {
"accessModes": [
"ReadWriteOnce"
],
"resources": {
"requests": {
"storage": "1Gi"
}
}
}
}
}
]
}
Loading

0 comments on commit fc06e45

Please sign in to comment.