Skip to content

Conversation

@MaciejKaras
Copy link
Collaborator

@MaciejKaras MaciejKaras commented Oct 29, 2025

Summary

Couple small fixes that together with @lsierant we have found during recent investigation. Details are provided in the PR comments.

Proof of Work

Passing CI.

Checklist

  • Have you linked a jira ticket and/or is the ticket in the title?
  • Have you checked whether your jira ticket required DOCSP changes?
  • Have you added changelog file?

@github-actions
Copy link

⚠️ (this preview might not be accurate if the PR is not rebased on current master branch)

MCK 1.6.0 Release Notes

New Features

  • MongoDBCommunity: Added support to configure custom cluster domain via newly introduced spec.clusterDomain resource field. If spec.clusterDomain is not set, environment variable CLUSTER_DOMAIN is used as cluster domain. If the environment variable CLUSTER_DOMAIN is also not set, operator falls back to cluster.local as default cluster domain.
  • Helm Chart: Introduced two new helm fields operator.podSecurityContext and operator.securityContext that can be used to configure securityContext for Operator deployment through Helm Chart.

Bug Fixes

  • Fixed parsing of the customEnvVars Helm value when values contain = characters.
  • ReplicaSet: Blocked disabling TLS and changing member count simultaneously. These operations must now be applied separately to prevent configuration inconsistencies.

else:
raise e

run_periodically(
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is racy, because stateful set is immediately recreated by operator

sleep 1

local service_account_name="operator-tests-multi-cluster-service-account"

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

duplicated code that is already present jus below. Creating Multi Cluster configuration secret shows twice in the logs as well

fi

member_cluster_token="$(kubectl --context "${member_cluster}" get secret "${secret_name}" -o jsonpath='{ .data.token}' -n "${NAMESPACE}" | base64 -d)"
# Retry up to 10 times if .data.token is not yet populated
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

secrets .data.token is populated asynchronously after the secret is created. We need to wait for it become available, otherwise the member_cluster_token will be empty


- name: e2e_multi_cluster_validation
tags: [ "patch-run" ]
exec_timeout_secs: 1000
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

this is not needed and prevents us from collecting test data

@MaciejKaras MaciejKaras added the skip-changelog Use this label in Pull Request to not require new changelog entry file label Oct 29, 2025
@MaciejKaras MaciejKaras marked this pull request as ready for review October 29, 2025 13:22
@MaciejKaras MaciejKaras requested a review from a team as a code owner October 29, 2025 13:22
@MaciejKaras MaciejKaras requested review from Julien-Ben, lsierant, nammn and viveksinghggits and removed request for nammn and viveksinghggits October 29, 2025 13:22
Copy link
Collaborator

@Julien-Ben Julien-Ben left a comment

Choose a reason for hiding this comment

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

One of the greenest CI I've seen in the last days 😍

@MaciejKaras MaciejKaras merged commit a29a2a0 into master Oct 29, 2025
34 of 38 checks passed
@MaciejKaras MaciejKaras deleted the maciejk/fix-flaky-tests branch October 29, 2025 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-changelog Use this label in Pull Request to not require new changelog entry file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants