Skip to content

K8SPSMDB-1498 Update Versions and Tests for 1.22.0 Release#2249

Merged
jvpasinatto merged 3 commits intorelease-1.22.0from
update-tests
Feb 23, 2026
Merged

K8SPSMDB-1498 Update Versions and Tests for 1.22.0 Release#2249
jvpasinatto merged 3 commits intorelease-1.22.0from
update-tests

Conversation

@jvpasinatto
Copy link
Copy Markdown
Contributor

CHANGE DESCRIPTION

  • Update Mongo 8 image
  • Add docker.io prefix to images in tests
  • Update tests
  • Update Jenkisfile:
    • @field in global vars
    • Update helm
    • Remove unnecessary commas
  • Fix bundle generation:
    • Fix createdAt
    • Fix spacing issues
    • Add initImage to cr example
    • Remove unneeded fields

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?
  • Are OpenShift compare files changed for E2E tests (compare/*-oc.yml)?

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 MongoDB version?
  • Does the change support oldest and newest supported Kubernetes version?

@pull-request-size pull-request-size Bot added the size/L 100-499 lines label Feb 19, 2026
Comment thread e2e-tests/functions
local ref="$1"
local first="${ref%%/*}"

if [[ "$first" == *.* || "$first" == *:* || "$first" == "localhost" ]]; then
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[shfmt] reported by reviewdog 🐶

Suggested change
if [[ "$first" == *.* || "$first" == *:* || "$first" == "localhost" ]]; then
if [[ $first == *.* || $first == *:* || $first == "localhost" ]]; then

Comment thread e2e-tests/functions
return 0
fi

if [[ "$ref" == percona/* || "$ref" == perconalab/* ]]; then
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[shfmt] reported by reviewdog 🐶

Suggested change
if [[ "$ref" == percona/* || "$ref" == perconalab/* ]]; then
if [[ $ref == percona/* || $ref == perconalab/* ]]; then

Comment thread e2e-tests/functions
local out=""
local ref

[[ -z "$val" ]] && return 0
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[shfmt] reported by reviewdog 🐶

Suggested change
[[ -z "$val" ]] && return 0
[[ -z $val ]] && return 0

Comment thread e2e-tests/functions

[[ -z "$val" ]] && return 0

if [[ "$val" == *$'\n'* ]]; then
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[shfmt] reported by reviewdog 🐶

Suggested change
if [[ "$val" == *$'\n'* ]]; then
if [[ $val == *$'\n'* ]]; then

Comment thread e2e-tests/functions

if [[ "$val" == *$'\n'* ]]; then
while IFS= read -r ref; do
[[ -z "$ref" ]] && continue
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[shfmt] reported by reviewdog 🐶

Suggested change
[[ -z "$ref" ]] && continue
[[ -z $ref ]] && continue

Comment thread e2e-tests/functions
[[ -z "$ref" ]] && continue
out+=$(qualify_image_ref "$ref")
out+=$'\n'
done <<< "$val"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[shfmt] reported by reviewdog 🐶

Suggested change
done <<< "$val"
done <<<"$val"

Comment thread e2e-tests/functions
Comment on lines +64 to +66
IMAGE_PMM_CLIENT IMAGE_PMM_SERVER \
IMAGE_PMM3_CLIENT IMAGE_PMM3_SERVER \
IMAGE_LOGCOLLECTOR IMAGE_OPERATOR; do
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[shfmt] reported by reviewdog 🐶

Suggested change
IMAGE_PMM_CLIENT IMAGE_PMM_SERVER \
IMAGE_PMM3_CLIENT IMAGE_PMM3_SERVER \
IMAGE_LOGCOLLECTOR IMAGE_OPERATOR; do
IMAGE_PMM_CLIENT IMAGE_PMM_SERVER \
IMAGE_PMM3_CLIENT IMAGE_PMM3_SERVER \
IMAGE_LOGCOLLECTOR IMAGE_OPERATOR; do

Comment on lines 87 to 88
local temp_file
temp_file=$(mktemp)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[shfmt] reported by reviewdog 🐶

Suggested change
local temp_file
temp_file=$(mktemp)
local temp_file
temp_file=$(mktemp)

Comment on lines +225 to +226
yq eval -o=json ../../deploy/cr.yaml |
jq --arg initImage "$containerImage" '
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[shfmt] reported by reviewdog 🐶

Suggested change
yq eval -o=json ../../deploy/cr.yaml |
jq --arg initImage "$containerImage" '
yq eval -o=json ../../deploy/cr.yaml \
| jq --arg initImage "$containerImage" '

IMAGE=$(echo "${INIT_OPERATOR_IMAGES}" | jq -r '.versions[].matrix.operator[].imagePath')
# we use the starting image from the same repo so we don't need to use initImage option
if [[ "$(echo ${TARGET_IMAGE} | cut -d'/' -f1)" == "perconalab" ]]; then
if [[ "${TARGET_IMAGE}" == perconalab/* || "${TARGET_IMAGE}" == */perconalab/* ]]; then
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[shfmt] reported by reviewdog 🐶

Suggested change
if [[ "${TARGET_IMAGE}" == perconalab/* || "${TARGET_IMAGE}" == */perconalab/* ]]; then
if [[ ${TARGET_IMAGE} == perconalab/* || ${TARGET_IMAGE} == */perconalab/* ]]; then

Comment thread e2e-tests/upgrade/run
IMAGE=$(echo "${INIT_OPERATOR_IMAGES}" | jq -r '.versions[].matrix.operator[].imagePath')
# we use the starting image from the same repo so we don't need to use initImage option
if [[ "$(echo ${TARGET_IMAGE} | cut -d'/' -f1)" == "perconalab" ]]; then
if [[ "${TARGET_IMAGE}" == perconalab/* || "${TARGET_IMAGE}" == */perconalab/* ]]; then
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[shfmt] reported by reviewdog 🐶

Suggested change
if [[ "${TARGET_IMAGE}" == perconalab/* || "${TARGET_IMAGE}" == */perconalab/* ]]; then
if [[ ${TARGET_IMAGE} == perconalab/* || ${TARGET_IMAGE} == */perconalab/* ]]; then

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[shfmt] reported by reviewdog 🐶

local cluster_name="${1:-some-name}"
local timeout=
apply_cluster "$test_dir/conf/$cluster_name.yml"
echo -n "Waiting new statefulset version..."
until ! kubectl_bin get statefulset "$cluster_name-rs0" \
-o jsonpath='{range .spec.template.spec.containers[*]}{.image}{"\n"}{end}' \
| grep -q "invalid-image:invalid-tag"; do
echo -n .
sleep 1
done
echo
echo "Deleting crashing pod $cluster_name-rs0-2"
kubectl_bin delete pod "$cluster_name-rs0-2" --wait=false

@JNKPercona
Copy link
Copy Markdown
Collaborator

Test Name Result Time
arbiter passed 00:00:00
balancer passed 00:00:00
cross-site-sharded passed 00:00:00
custom-replset-name passed 00:00:00
custom-tls passed 00:00:00
custom-users-roles passed 00:00:00
custom-users-roles-sharded passed 00:00:00
data-at-rest-encryption passed 00:00:00
data-sharded passed 00:00:00
demand-backup passed 00:00:00
demand-backup-eks-credentials-irsa passed 00:00:00
demand-backup-fs passed 00:00:00
demand-backup-if-unhealthy passed 00:00:00
demand-backup-incremental-aws passed 00:00:00
demand-backup-incremental-azure passed 00:00:00
demand-backup-incremental-gcp-native passed 00:00:00
demand-backup-incremental-gcp-s3 passed 00:00:00
demand-backup-incremental-minio passed 00:00:00
demand-backup-incremental-sharded-aws passed 00:00:00
demand-backup-incremental-sharded-azure passed 00:00:00
demand-backup-incremental-sharded-gcp-native passed 00:00:00
demand-backup-incremental-sharded-gcp-s3 passed 00:00:00
demand-backup-incremental-sharded-minio passed 00:00:00
demand-backup-physical-parallel passed 00:00:00
demand-backup-physical-aws passed 00:00:00
demand-backup-physical-azure passed 00:00:00
demand-backup-physical-gcp-s3 passed 00:00:00
demand-backup-physical-gcp-native passed 00:00:00
demand-backup-physical-minio passed 00:00:00
demand-backup-physical-minio-native passed 00:00:00
demand-backup-physical-minio-native-tls passed 00:00:00
demand-backup-physical-sharded-parallel passed 00:00:00
demand-backup-physical-sharded-aws passed 00:00:00
demand-backup-physical-sharded-azure passed 00:00:00
demand-backup-physical-sharded-gcp-native passed 00:00:00
demand-backup-physical-sharded-minio passed 00:00:00
demand-backup-physical-sharded-minio-native passed 00:00:00
demand-backup-sharded passed 00:00:00
disabled-auth passed 00:00:00
expose-sharded passed 00:00:00
finalizer passed 00:00:00
ignore-labels-annotations passed 00:00:00
init-deploy passed 00:00:00
ldap passed 00:00:00
ldap-tls passed 00:00:00
limits passed 00:00:00
liveness passed 00:00:00
mongod-major-upgrade passed 00:00:00
mongod-major-upgrade-sharded passed 00:00:00
monitoring-2-0 passed 00:00:00
monitoring-pmm3 passed 00:00:00
multi-cluster-service passed 00:00:00
multi-storage passed 00:00:00
non-voting-and-hidden passed 00:00:00
one-pod passed 00:00:00
operator-self-healing-chaos passed 00:00:00
pitr passed 00:00:00
pitr-physical passed 00:00:00
pitr-sharded passed 00:00:00
pitr-to-new-cluster passed 00:00:00
pitr-physical-backup-source passed 00:00:00
preinit-updates passed 00:00:00
pvc-auto-resize passed 00:00:00
pvc-resize passed 00:00:00
recover-no-primary passed 00:25:54
replset-overrides passed 00:00:00
replset-remapping passed 00:00:00
replset-remapping-sharded passed 00:00:00
rs-shard-migration passed 00:00:00
scaling passed 00:00:00
scheduled-backup passed 00:00:00
security-context passed 00:00:00
self-healing-chaos passed 00:00:00
service-per-pod passed 00:00:00
serviceless-external-nodes passed 00:00:00
smart-update passed 00:00:00
split-horizon passed 00:00:00
stable-resource-version passed 00:00:00
storage passed 00:00:00
tls-issue-cert-manager passed 00:00:00
unsafe-psa passed 00:00:00
upgrade passed 00:00:00
upgrade-consistency passed 00:00:00
upgrade-consistency-sharded-tls passed 00:00:00
upgrade-sharded passed 00:00:00
upgrade-partial-backup passed 00:00:00
users passed 00:00:00
users-vault passed 00:00:00
version-service passed 00:00:00
Summary Value
Tests Run 89/89
Job Duration 01:33:15
Total Test Time 00:25:54

commit: a1a9d3f
image: perconalab/percona-server-mongodb-operator:PR-2249-a1a9d3f9

@jvpasinatto jvpasinatto merged commit 9805288 into release-1.22.0 Feb 23, 2026
16 of 17 checks passed
@jvpasinatto jvpasinatto deleted the update-tests branch February 23, 2026 12:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants