Skip to content

[CLOUDP-332234] Change the way kubectl-mongodb plugin is built by evergreen function #275

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 5 commits into from

Conversation

viveksinghggits
Copy link
Contributor

@viveksinghggits viveksinghggits commented Jul 17, 2025

Summary

The evergreen function build_multi_cluster_binary is used to build the kubectl-mongodb plugin. And this function gets used in the main .evergreen.yml file to build the kubectl-mongodb binary. Since we moved the location of the source files for kubectl-mongodb plugin as part of PR, this PR makes respective changes in the evergreen function so that it can properly build the kubectl-mongodb plugin from the new location.

Proof of Work

ToDo:

Jira: https://jira.mongodb.org/browse/CLOUDP-332234

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 checked for release_note changes?

Reminder (Please remove this when merging)

  • Please try to Approve or Reject Changes the PR, keep PRs in review as short as possible
  • Our Short Guide for PRs: Link
  • Remember the following Communication Standards - use comment prefixes for clarity:
    • blocking: Must be addressed before approval.
    • follow-up: Can be addressed in a later PR or ticket.
    • q: Clarifying question.
    • nit: Non-blocking suggestions.
    • note: Side-note, non-actionable. Example: Praise
    • --> no prefix is considered a question

…ster

This commit moves the source code of mongodb kubectl plugin from `public/tools/multicluster`
to `cmd` directory. This is to align with how go code that ships a CLI is structured.

The command/subcommand building logic is moved to the `cmd` directory and and rest of the logic

The command/subcommand building logic is moved to the `cmd` directory and and rest of the logic
is moved to the new package `pkg/kubectl-mongodb`.

This commit also moves the `.goreleaser.yaml` to the root of the project because kubectl plugin
is now at the root of the project.
1. Since most of our evergreen config files are in root of the repo and now that kubectl plugin
is also moved to `cmd/` it makes sense to move the evergreen config file to the root of repo
with correct name.
2. Change the goreleaser config file to version 1. We upgraded it temporarily to  version 2
but CI complains that only version 1 is supported.
The evergreen function `build_multi_cluster_binary` is used to build the `kubectl-mongodb` plugin. And this function
gets used in the main `.evergreen.yml` file to build the `kubectl-mongodb` binary.
Since we moved the location of the source files for `kubectl-mongodb` plugin as part of [PR](#271),
this PR makes respective changes in the evergreen function so that it can properly build the `kubectl-mongodb` plugin from
the new location.
@viveksinghggits viveksinghggits requested a review from a team as a code owner July 17, 2025 18:38
@viveksinghggits viveksinghggits requested review from m1kola and MaciejKaras and removed request for a team July 17, 2025 18:38
@MaciejKaras
Copy link
Collaborator

@viveksinghggits is this PR ready for review? I cannot see PoW and evergreen pipeline is not running (probably you need to change PR base). If this is not ready, please move it back to draft. Otherwise engineers are automatically assigned and notified about awaiting PR

@viveksinghggits viveksinghggits changed the title Change the way kubectl-mongodb plugin is built by evergreen function [CLOUDP-332234] Change the way kubectl-mongodb plugin is built by evergreen function Jul 18, 2025
@viveksinghggits viveksinghggits marked this pull request as draft July 18, 2025 13:51
Base automatically changed from mongodb-kubectlplugin-refactor to master July 21, 2025 14:49
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.

2 participants