-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
✨ Add the ability to specify name of cluster to move #4605
✨ Add the ability to specify name of cluster to move #4605
Conversation
Welcome @bvberg! |
Hi @bvberg. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Thanks for your pull request. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please follow instructions at https://git.k8s.io/community/CLA.md#the-contributor-license-agreement to sign the CLA. It may take a couple minutes for the CLA signature to be fully registered; after that, please reply here with a new comment and we'll verify. Thanks.
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
retry CLA |
@bvberg thanks for your PR and welcome on the Cluster API community 🥳 As of today there is a increasing probability that the set of objects "linked" a cluster is not limited to what is strictly labeled with the cluster label name. e.g.
What are the expectation for those object in this PR? should we open an issue to sort out those details? |
@fabriziopandini thank you for the warm welcome and for your feedback. We faced this issue exactly, at the beginning of our process we suffered from cluster resource disconnect where the majority of our cluster resources were successfully moved to the target cluster, but a few resources remained in the source cluster. So the expectation for So with that being said, I feel we should open a separate issue addressing the disconnect between cluster resources and the cluster instance. I will open an issue to discuss these use cases and concerns. |
@bvberg great! let's figure out details on an issue before deciding how to move on with this PR. |
@bvberg: PR needs rebase. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close |
@k8s-triage-robot: Closed this PR. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
What this PR does:
It allows for users using
clusterctl
to specify acluster
by name when performing themove
action. It makes use of thecluster.x-k8s.io/cluster-name
label to identify resources as part of discovery.Why this PR is needed
In a scenario where you are running multiple
production
clusters within the same namespace, you want to be able to reduce the risk of moving both clusters at the same time to a new management cluster. We do this by adding the ability to specify which cluster by name we would like to move. If no cluster name is provided, the default logic applies, move all clusters in a namespace if namespace is specified, move all clusters if neither namespace or cluster name is supplied.Proven results
We faced the above scenario recently, and with these changes we were able to move multiple clusters, safely and individually, to an array of different CAPI management clusters.
Which issue(s) this PR fixes
This PR does not fix any issues, however it does relate to the redesign/scope re-define of
clusterctl
- #3354