Skip to content

Commit

Permalink
EVEREST-107: PG Operator 2.3.1 (#260)
Browse files Browse the repository at this point in the history
  • Loading branch information
Michal Kralik authored Jan 25, 2024
1 parent 2986214 commit e43000f
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 22 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
env:
PXC_OPERATOR_VERSION: 1.13.0
PSMDB_OPERATOR_VERSION: 1.15.0
PG_OPERATOR_VERSION: 2.3.0
PG_OPERATOR_VERSION: 2.3.1
PERCONA_VERSION_SERVICE_URL: https://check-dev.percona.com/versions/v1


Expand Down Expand Up @@ -126,7 +126,7 @@ jobs:
env:
PXC_OPERATOR_VERSION: 1.13.0
PSMDB_OPERATOR_VERSION: 1.15.0
PG_OPERATOR_VERSION: 2.3.0
PG_OPERATOR_VERSION: 2.3.1
PREVIOUS_PG_OPERATOR_VERSION: 2.2.0 # TODO: Revisit it after 2.3 release
PREVIOUS_PXC_OPERATOR_VERSION: 1.12.0
PREVIOUS_PSMDB_OPERATOR_VERSION: 1.14.0
Expand All @@ -135,6 +135,8 @@ jobs:
- name: Clean up custom resources
if: always()
continue-on-error: true
# If this does not finish in 10 minutes, it's stuck with some resource having a finalizer.
timeout-minutes: 10
run: |
namespaces=$(kubectl get pxc -A -o jsonpath='{.items[*].metadata.namespace}')
for namespace in ${namespaces[@]}
Expand Down Expand Up @@ -166,7 +168,7 @@ jobs:
env:
PXC_OPERATOR_VERSION: 1.13.0
PSMDB_OPERATOR_VERSION: 1.15.0
PG_OPERATOR_VERSION: 2.3.0
PG_OPERATOR_VERSION: 2.3.1
PERCONA_VERSION_SERVICE_URL: https://check-dev.percona.com/versions/v1

- name: Run features tests
Expand All @@ -176,7 +178,7 @@ jobs:
env:
PXC_OPERATOR_VERSION: 1.13.0
PSMDB_OPERATOR_VERSION: 1.15.0
PG_OPERATOR_VERSION: 2.3.0
PG_OPERATOR_VERSION: 2.3.1
PERCONA_VERSION_SERVICE_URL: https://check-dev.percona.com/versions/v1

- name: Clean up custom resources
Expand Down
6 changes: 3 additions & 3 deletions e2e-tests/tests/core/pg/10-assert.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ metadata:
spec:
backups:
pgbackrest:
image: percona/percona-postgresql-operator:2.3.0-ppg16-pgbackrest
image: percona/percona-postgresql-operator:2.3.1-ppg16-pgbackrest
repos:
- name: repo1
volume:
Expand All @@ -44,7 +44,7 @@ spec:
resources:
requests:
storage: 15G
image: percona/percona-postgresql-operator:2.3.0-ppg16-postgres
image: percona/percona-postgresql-operator:2.3.1-ppg16-postgres
instances:
- dataVolumeClaimSpec:
accessModes:
Expand All @@ -69,7 +69,7 @@ spec:
postgresVersion: 16
proxy:
pgBouncer:
image: percona/percona-postgresql-operator:2.3.0-ppg16-pgbouncer
image: percona/percona-postgresql-operator:2.3.1-ppg16-pgbouncer
port: 5432
replicas: 3
expose:
Expand Down
7 changes: 1 addition & 6 deletions e2e-tests/tests/core/pg/20-assert.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,4 @@ timeout: 300
# In the test assertion 02 we assert that the cluster is stopped and in 03 we assert that the cluster is up and ready to use.
# The test steps are still declarative so no operation is executed in 03.
commands:
# This check has been disabled until a bug in PG operator has been fixed.
# PG operator does not pause a DB when a backup is running. PG operator shall
# wait until the backup has finished and only then pause the DB, but in v2.3.0
# this logic is broken.
# https://perconadev.atlassian.net/browse/K8SPG-496
# - command: kubectl wait --for=jsonpath='{.status.status}'=initializing db/test-pg-cluster -n "${NAMESPACE}"
- command: kubectl wait --for=jsonpath='{.status.status}'=initializing db/test-pg-cluster -n "${NAMESPACE}"
6 changes: 3 additions & 3 deletions e2e-tests/tests/core/pg/30-assert.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ metadata:
spec:
backups:
pgbackrest:
image: percona/percona-postgresql-operator:2.3.0-ppg16-pgbackrest
image: percona/percona-postgresql-operator:2.3.1-ppg16-pgbackrest
repos:
- name: repo1
volume:
Expand All @@ -41,7 +41,7 @@ spec:
resources:
requests:
storage: 15G
image: percona/percona-postgresql-operator:2.3.0-ppg16-postgres
image: percona/percona-postgresql-operator:2.3.1-ppg16-postgres
instances:
- dataVolumeClaimSpec:
accessModes:
Expand All @@ -66,7 +66,7 @@ spec:
postgresVersion: 16
proxy:
pgBouncer:
image: percona/percona-postgresql-operator:2.3.0-ppg16-pgbouncer
image: percona/percona-postgresql-operator:2.3.1-ppg16-pgbouncer
port: 5432
replicas: 3
expose:
Expand Down
6 changes: 3 additions & 3 deletions e2e-tests/tests/core/pg/50-assert.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ metadata:
spec:
backups:
pgbackrest:
image: percona/percona-postgresql-operator:2.3.0-ppg16-pgbackrest
image: percona/percona-postgresql-operator:2.3.1-ppg16-pgbackrest
repos:
- name: repo1
volume:
Expand All @@ -41,7 +41,7 @@ spec:
resources:
requests:
storage: 15G
image: percona/percona-postgresql-operator:2.3.0-ppg16-postgres
image: percona/percona-postgresql-operator:2.3.1-ppg16-postgres
instances:
- dataVolumeClaimSpec:
accessModes:
Expand All @@ -66,7 +66,7 @@ spec:
postgresVersion: 16
proxy:
pgBouncer:
image: percona/percona-postgresql-operator:2.3.0-ppg16-pgbouncer
image: percona/percona-postgresql-operator:2.3.1-ppg16-pgbouncer
port: 5432
replicas: 1
expose:
Expand Down
6 changes: 3 additions & 3 deletions e2e-tests/tests/core/pg/80-assert.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ metadata:
spec:
backups:
pgbackrest:
image: percona/percona-postgresql-operator:2.3.0-ppg16-pgbackrest
image: percona/percona-postgresql-operator:2.3.1-ppg16-pgbackrest
repos:
- name: repo1
volume:
Expand All @@ -41,7 +41,7 @@ spec:
resources:
requests:
storage: 15G
image: percona/percona-postgresql-operator:2.3.0-ppg16-postgres
image: percona/percona-postgresql-operator:2.3.1-ppg16-postgres
instances:
- dataVolumeClaimSpec:
accessModes:
Expand All @@ -66,7 +66,7 @@ spec:
postgresVersion: 16
proxy:
pgBouncer:
image: percona/percona-postgresql-operator:2.3.0-ppg16-pgbouncer
image: percona/percona-postgresql-operator:2.3.1-ppg16-pgbouncer
port: 5432
replicas: 3
expose:
Expand Down

0 comments on commit e43000f

Please sign in to comment.