Skip to content

Conversation

@MaciejKaras
Copy link
Collaborator

@MaciejKaras MaciejKaras commented Oct 31, 2025

Summary

We need to make kubectl-mongodb available for Code Snippets tests. Previously Code Snippets were expecting the binary in ./bin directory, but this logic was lost when the kubectl-mongodb build process was changed.

mkdir -p bin || true
cp docker/mongodb-kubernetes-tests/multi-cluster-kube-config-creator bin/kubectl-mongodb || true
cp bin/kubectl-mongodb "${WORKDIR}/bin/kubectl-mongodb" || true

This PR brings back this copy procedure to make Code Snippets tests work. Additionally changed the logic of download_multi_cluster_binary evergreen function and now it only downloads single binary matching platform provided - there is no need to download all platform variants.

Proof of Work

Passing CI and run the test locally:

(venv) ➜ mongodb-kubernetes git:(maciejk/ar-fix-kubectl-plugin-location) ✗ scripts/dev/run_python.sh scripts/release/kubectl_mongodb/download_kubectl_plugin.py --build-scenario staging --version b4789443 --platform linux/amd64 INFO 2025-10-31 13:05:44,644 [download_kubectl_plugin] Downloading s3://mongodb-kubernetes-staging/kubectl-mongodb/b4789443/kubectl-mongodb_linux_amd64 to docker/mongodb-kubernetes-tests/multi-cluster-kube-config-creator_amd64 INFO 2025-10-31 13:05:46,472 [download_kubectl_plugin] Successfully downloaded artifact to docker/mongodb-kubernetes-tests/multi-cluster-kube-config-creator_amd64 and bin/kubectl-mongodb 

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?
@MaciejKaras MaciejKaras changed the base branch from master to maciejk/ar-image-release-smoke-tests October 31, 2025 12:13
@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.

Other Changes

  • kubectl-mongodb plugin: cosign, the signing tool that is used to sign kubectl-mongodb plugin binaries, has been updated to version 3.0.2. With this change, released binaries will be bundled with .bundle files containing both signature and certificate information. For more information on how to verify signatures using new cosign version please refer to -> https://github.com/sigstore/cosign/blob/v3.0.2/doc/cosign_verify-blob.md
@MaciejKaras MaciejKaras added skip-changelog Use this label in Pull Request to not require new changelog entry file and removed skip-changelog Use this label in Pull Request to not require new changelog entry file labels Oct 31, 2025
@MaciejKaras MaciejKaras marked this pull request as ready for review October 31, 2025 12:41
@MaciejKaras MaciejKaras requested a review from a team as a code owner October 31, 2025 12:41
@MaciejKaras MaciejKaras requested review from lsierant, lucian-tosa, m1kola and viveksinghggits and removed request for a team and viveksinghggits October 31, 2025 12:41
@MaciejKaras MaciejKaras reopened this Oct 31, 2025
@MaciejKaras MaciejKaras force-pushed the maciejk/ar-fix-kubectl-plugin-location branch from 0d414fb to 0cc987d Compare October 31, 2025 12:45
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

3 participants