Skip to content
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

Allow Cluster API to stop controlling my workload cluster #7800

Closed
iming0319 opened this issue Dec 23, 2022 · 6 comments
Closed

Allow Cluster API to stop controlling my workload cluster #7800

iming0319 opened this issue Dec 23, 2022 · 6 comments
Labels
kind/feature Categorizes issue or PR as related to a new feature. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. triage/needs-information Indicates an issue needs more information in order to work on it.

Comments

@iming0319
Copy link

User Story
As an operator of a management cluster, given that I have a management cluster that I have used to deploy several workload clusters, I want to remove the Cluster/Machine objects representing one workload cluster from my management cluster without deprovisioning workload cluster.

As an operator of a management cluster, given that I have a management cluster that I have used to deploy several workload clusters, I want to uninstall Cluster API from my management cluster without deprovisioning my workload clusters.

As an operator of a management cluster, given that I have a management cluster, I want to use it to manage workload clusters that were created by a different management cluster.

Detailed Description
I just want to get rid of cluster api from controlling my workload cluster

Anything else you would like to add:

What can I do?
Just delete the related name spaces in management cluster?
Or the clusterctl delete provider command can satisfy me?

/kind feature

@k8s-ci-robot k8s-ci-robot added kind/feature Categorizes issue or PR as related to a new feature. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels Dec 23, 2022
@k8s-ci-robot
Copy link
Contributor

@iming0319: This issue is currently awaiting triage.

If CAPI contributors determines this is a relevant issue, they will accept it by applying the triage/accepted label and provide further guidance.

The triage/accepted label can be added by org members by writing /triage accepted in a comment.

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.

@fabriziopandini fabriziopandini changed the title Removing Cluster API Allow Cluster API to stop controlling my workload cluster Dec 27, 2022
@fabriziopandini
Copy link
Member

fabriziopandini commented Dec 27, 2022

If I got right the three use cases, IMO they are kind of different/unrelated, so my suggestion is to scope down the issue or break it down into multiple issues in order to keep the discussion focused and make the issue actionable.

Some additional context about my opinion above:

  • The first use case seems to match what is written in the detailed description, which is to allow Cluster API to stop controlling my workload cluster. I think it can be achieved as of today by pausing the cluster and then deleting all the objects in the cluster, which requires a deep understanding of our API; however, before exploring if/how to improve this it will be interesting to understand how many users are interested in this use case.

  • The second use case, uninstall CAPI leaving orphaned clusters, IMO it is already supported even if not intentionally (this is what happens w.g. when I nuke my dev management clusters without deleting workload clusters).

  • The third use case, manage a workload cluster created by another management cluster, is something in between "move a single cluster" (which was a use case that never got traction, see Re-define the scope of clusterctl move #3354) and adopt existing clusters, which is being discussed with slightly different angles in Cluster-api takeover of existing Kubeadm clusters #7776 and Adopt existing clusters on vSphere #7573. This IMO requires its own discussion or, even better, to be merged in one of the above threads

@fabriziopandini
Copy link
Member

Adding
/triage needs-information
While we scope down the issue

@k8s-ci-robot k8s-ci-robot added the triage/needs-information Indicates an issue needs more information in order to work on it. label Dec 27, 2022
@enxebre
Copy link
Member

enxebre commented Jan 2, 2023

I read the user stories above as function requirements, to get more context can we elaborate the use cases motivating these functional requirements? e.g In an non recoverable disaster scenario for my management cluster I'd like my workload cluster to keep operating with no down time...

I'd expect all/most of these requirements to be possible by leveraging .Pause API input.

@fabriziopandini
Copy link
Member

/close
Due to lack of follow up
If necessary, let's try to re-open more focused issues based on concrete use cases as suggested above

@k8s-ci-robot
Copy link
Contributor

@fabriziopandini: Closing this issue.

In response to this:

/close
Due to lack of follow up
If necessary, let's try to re-open more focused issues based on concrete use cases as suggested above

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. triage/needs-information Indicates an issue needs more information in order to work on it.
Projects
None yet
Development

No branches or pull requests

4 participants