percona / percona-postgresql-operator

Percona Operator for PostgreSQL
https://www.percona.com/doc/kubernetes-operator-for-postgresql/index.html
Apache License 2.0
254 stars 50 forks source link

K8SPG-597 - Update monitoring test #824

Closed tplavcic closed 1 week ago

tplavcic commented 1 week ago

K8SPG-597 Powered by Pull Request Badge

CHANGE DESCRIPTION

Problem: In one position in the test we were checking for Pod status conditions (array) and Kubernetes 1.29 adds a new status PodReadyToStartContainers. Unfortunately kuttl cannot compare arrays of different sizes so the test fails on 1.29. On the other hand I don't think checking for these status conditions in this place tests anything since any pod running will have all these conditions True.

Solution: I have removed checking for status conditions and just left checking for Running phase and also added checking for sts statuses.

CHECKLIST

Jira

Tests

Config/Logging/Testability

JNKPercona commented 1 week ago
Test name Status
custom-extensions passed
demand-backup passed
init-deploy passed
major-upgrade passed
monitoring passed
one-pod passed
operator-self-healing passed
pitr passed
scaling passed
scheduled-backup passed
self-healing passed
start-from-backup passed
tablespaces passed
telemetry-transfer passed
upgrade-consistency passed
upgrade-minor passed
users passed
We run 17 out of 17

commit: https://github.com/percona/percona-postgresql-operator/pull/824/commits/3d236e374c6102fdcc2b9bbdaf2df294cfed839e image: perconalab/percona-postgresql-operator:PR-824-3d236e374