Skip to content

CLOUDP-423293: Add multicluster generate-member-registration plugin command#1390

Open
m1kola wants to merge 3 commits into
iux-multi-cluster-generate-member-resourcesfrom
iux-multi-cluster-generate-member-registration
Open

CLOUDP-423293: Add multicluster generate-member-registration plugin command#1390
m1kola wants to merge 3 commits into
iux-multi-cluster-generate-member-resourcesfrom
iux-multi-cluster-generate-member-registration

Conversation

@m1kola

@m1kola m1kola commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds the kubectl mongodb multicluster generate-member-registration command: it connects to one member cluster (via a kubeconfig context), reads the ServiceAccount token that generate-member-resources created on it, and emits a credential Secret (a single-context kubeconfig) and a MemberCluster CR referencing it to stdout — for kubectl apply or GitOps. Purely additive; the operator stays inert to MemberCluster CRs 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 and make precommit-full is clean. kubectl mongodb multicluster generate-member-registration --help renders the flags/usage.

Checklist

  • Have you linked a jira ticket and/or is the ticket in the title? (CLOUDP-423293)
  • Have you checked whether your jira ticket required DOCSP changes? (none needed)
  • Have you added changelog file? (changelog/20260716_feature_generate_member_registration.md)

m1kola added 2 commits July 16, 2026 12:08
…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.
Comment thread pkg/kubectl-mongodb/memberregistration/memberregistration.go Outdated
@m1kola
m1kola marked this pull request as ready for review July 20, 2026 11:42
@m1kola
m1kola requested review from a team and vinilage as code owners July 20, 2026 11:42
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.

1 participant