Skip to content

K8SPG-980: crVersion operator initImage in upgrade consistency#1510

Merged
hors merged 3 commits intomainfrom
K8SPG-980
Mar 20, 2026
Merged

K8SPG-980: crVersion operator initImage in upgrade consistency#1510
hors merged 3 commits intomainfrom
K8SPG-980

Conversation

@eleo007
Copy link
Contributor

@eleo007 eleo007 commented Mar 20, 2026

CHANGE DESCRIPTION

Problem:
At the moment in upgrade consistency tests we start clusters of old versions with the being tested operator version in initContainer. But in practice if the initContainer is not set in cr, it is set to the $operator_image_repo:$crVersion. As a result some issues related to changes of the init scripts can be missed in the tests.

Cause:
Short explanation of the root cause of the issue if applicable.

Solution:
Use image of the corresponding operator version in initContainer for upgrade-consistency test.

CHECKLIST

Jira

  • Is the Jira ticket created and referenced properly?
  • Does the Jira ticket have the proper statuses for documentation (Needs Doc) and QA (Needs QA)?
  • Does the Jira ticket link to the proper milestone (Fix Version field)?

Tests

  • Is an E2E test/test case added for the new feature/change?
  • Are unit tests added where appropriate?

Config/Logging/Testability

  • Are all needed new/changed options added to default YAML files?
  • Are all needed new/changed options added to the Helm Chart?
  • Did we add proper logging messages for operator actions?
  • Did we ensure compatibility with the previous version or cluster upgrade process?
  • Does the change support oldest and newest supported PG version?
  • Does the change support oldest and newest supported Kubernetes version?

@JNKPercona
Copy link
Collaborator

Test Name Result Time
backup-enable-disable passed 00:15:04
builtin-extensions passed 00:05:13
cert-manager-tls passed 00:08:11
custom-envs passed 00:20:49
custom-extensions passed 00:14:34
custom-tls passed 00:10:22
database-init-sql passed 00:05:32
demand-backup passed 00:25:35
demand-backup-offline-snapshot passed 00:13:56
dynamic-configuration passed 00:04:33
finalizers passed 00:03:58
init-deploy passed 00:02:42
huge-pages passed 00:03:00
ldap passed 00:03:02
ldap-tls passed 00:05:03
monitoring passed 00:07:58
monitoring-pmm3 passed 00:08:11
one-pod passed 00:06:00
operator-self-healing passed 00:10:26
pitr passed 00:11:52
scaling passed 00:05:01
scheduled-backup passed 00:28:09
self-healing passed 00:09:05
sidecars passed 00:02:53
standby-pgbackrest passed 00:13:46
standby-streaming passed 00:09:23
start-from-backup passed 00:10:47
tablespaces passed 00:06:59
telemetry-transfer passed 00:04:27
upgrade-consistency passed 00:06:25
upgrade-minor passed 00:05:39
users passed 00:04:36
Summary Value
Tests Run 32/32
Job Duration 01:36:57
Total Test Time 04:53:24

commit: 41a2622
image: perconalab/percona-postgresql-operator:PR-1510-41a262215

@hors hors merged commit f14b5ed into main Mar 20, 2026
17 checks passed
@hors hors deleted the K8SPG-980 branch March 20, 2026 18:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants