kcp-dev / contrib-tmc

An experimental add-on readding some Kubernetes compute APIs and impement transparent multi-cluster scheduling
Apache License 2.0
5 stars 3 forks source link

`kubectl-kcp` Command to Unsync a Workload Cluster #133

Open adambkaplan opened 2 years ago

adambkaplan commented 2 years ago

Is your feature request related to a problem? Please describe.

The kubectl kcp workload sync command makes it easy to configure a workload cluster on kcp, and create a manifest to deploy the syncer on a workload cluster.

Tearing down a workload cluster, however, requires the following manual steps on the kcp side:

  1. Delete the WorkloadCluster
  2. Delete the associated service account
  3. Delete the associated clusterrolebinding

Describe the solution you'd like

An inverse command - kubectl kcp workload unsync - which removes the WorkloadCluster and associated RBAC.

Describe alternatives you've considered

Keep the status quo, but document the steps needed to remove a workload cluster.

Additional context

N/A

ncdc commented 2 years ago

Related: kcp-dev/kcp#948 cc @kasturinarra

chrisahl commented 2 years ago

Will this also remove the syncer pod and namespace/project from the workload cluster?

mjudeikis commented 11 months ago

/transfer-issue contrib-tmc