CLOUDP-423293: Add multicluster generate-member-registration plugin command#1390
Open
m1kola wants to merge 3 commits into
Open
Conversation
…ommand Reads a member cluster's ServiceAccount token and emits a credential Secret (single-context kubeconfig) and a MemberCluster CR to stdout for kubectl apply / GitOps.
This was referenced Jul 16, 2026
m1kola
commented
Jul 20, 2026
m1kola
marked this pull request as ready for review
July 20, 2026 11:42
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.
Summary
Adds the
kubectl mongodb multicluster generate-member-registrationcommand: it connects to one member cluster (via a kubeconfig context), reads the ServiceAccount token thatgenerate-member-resourcescreated on it, and emits a credential Secret (a single-context kubeconfig) and aMemberClusterCR referencing it to stdout — forkubectl applyor GitOps. Purely additive; the operator stays inert toMemberClusterCRs until a later slice.Also folds in the RBAC-unification-slice note (previously #1388, now closed).
Stacked on #1381.
Proof of Work
go test ./pkg/kubectl-mongodb/... ./pkg/resourcenames/...passes andmake precommit-fullis clean.kubectl mongodb multicluster generate-member-registration --helprenders the flags/usage.Checklist
changelog/20260716_feature_generate_member_registration.md)