K8SPG-1055 Adopt test infrastructure for running upstream PostgreSQL containers#1612
Open
hors wants to merge 8 commits into
Open
K8SPG-1055 Adopt test infrastructure for running upstream PostgreSQL containers#1612hors wants to merge 8 commits into
hors wants to merge 8 commits into
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates E2E execution to run with community PostgreSQL image defaults.
Changes:
- Sets
PG_DISTRIBUTION=communityin the Jenkins KUTTL test runner. - Adds community-specific default images for PostgreSQL, pgBouncer, pgBackRest, and upgrade jobs.
- Updates PostgreSQL version extraction from
IMAGE_POSTGRESQL.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
Jenkinsfile |
Enables community image distribution for Jenkins E2E test runs. |
e2e-tests/vars.sh |
Adds community image defaults and adjusts PostgreSQL version parsing. |
| export IMAGE=${IMAGE:-"${IMAGE_BASE}:${VERSION}"} | ||
| if [[ ! $PG_VER && $IMAGE_POSTGRESQL ]]; then | ||
| pg_version_value=$(echo "$IMAGE_POSTGRESQL" | sed -E 's/.*:(.*ppg)?([0-9]+).*/\2/') | ||
| pg_version_value=$(echo "$IMAGE_POSTGRESQL" | sed -E 's/.*-(ppg|postgres)([0-9]+).*/\2/') |
Comment on lines
34
to
39
| if [[ ! $PG_VER && $IMAGE_POSTGRESQL ]]; then | ||
| pg_version_value=$(echo "$IMAGE_POSTGRESQL" | sed -E 's/.*:(.*ppg)?([0-9]+).*/\2/') | ||
| pg_version_value=$(echo "$IMAGE_POSTGRESQL" | sed -E 's/.*-(ppg|postgres)([0-9]+).*/\2/') | ||
| export PG_VER="${pg_version_value}" | ||
| else | ||
| export PG_VER="${PG_VER:-18}" | ||
| fi |
Comment on lines
+8
to
+9
| # community images do not ship pg_stat_monitor; keep the patch so the | ||
| # cluster generation still increments and 06-assert.yaml passes. |
Comment on lines
258
to
266
| sh """ | ||
| if [ ! -d "e2e-tests/logs" ]; then | ||
| mkdir "e2e-tests/logs" | ||
| fi | ||
| export KUBECONFIG=/tmp/$CLUSTER_NAME-$clusterSuffix | ||
| export PATH="\${KREW_ROOT:-\$HOME/.krew}/bin:\$PATH" | ||
| export PG_DISTRIBUTION=community | ||
| set -o pipefail | ||
| kubectl kuttl test --config e2e-tests/kuttl.yaml --test "^${testName}\$" |& tee e2e-tests/logs/${testName}.log |
Comment on lines
+35
to
36
| pg_version_value=$(echo "$IMAGE_POSTGRESQL" | sed -E 's/.*-(ppg|postgres)([0-9]+).*/\2/') | ||
| export PG_VER="${pg_version_value}" |
Comment on lines
34
to
36
| if [[ ! $PG_VER && $IMAGE_POSTGRESQL ]]; then | ||
| pg_version_value=$(echo "$IMAGE_POSTGRESQL" | sed -E 's/.*:(.*ppg)?([0-9]+).*/\2/') | ||
| pg_version_value=$(echo "$IMAGE_POSTGRESQL" | sed -E 's/.*-(ppg|postgres)([0-9]+).*/\2/') | ||
| export PG_VER="${pg_version_value}" |
Collaborator
commit: 56d4ab1 |
egegunes
approved these changes
Jun 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
CHANGE DESCRIPTION
Problem:
Many PostgreSQL users and organizations have a strong preference for upstream, unmodified container images and actively avoid vendor-specific builds to prevent lock-in and maintain full control over their database software supply chain. By enabling the Percona Operator for PostgreSQL to work with community PostgreSQL images, Percona removes a key adoption barrier for teams with strict open-source or procurement policies.
CHECKLIST
Jira
Needs Doc) and QA (Needs QA)?Tests
Config/Logging/Testability