-
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
Deprecate clusterctl backup and clusterctl restore #6992
Comments
Is this a "help wanted" issue? If so, I would love to take it when I get back from the fells next week. |
/help-wanted @oscr, feel free to assign yourself to this task |
/assign |
Please don't do this. |
@mmmmmmpc Could you please explain a little more? No functionality is being removed. It's just changed name and location: |
And this change is meant to avoid confusion
backup and restore should be executed using tools like velero or by leveraging GitOps tools capable to consider everything there is in a Cluster, not only CAPI resources in a namespace |
Fair. But does this mean the backup commands are successful in backing up/restoring all the bits the cluster api is in charge of? IE, say you have a management cluster, as per recommended best practice. Is dumping the objects via backup, and saving them enough to be able to reinstall the management cluster and have it re-manage the managed cluster? IE, this backup on mgmt cluster, and velero on managed cluster? |
@fabriziopandini ... the Management Cluster is not a cluster to handle any workload but a very special case. My 0.02 € |
This sounds like a much larger discussion than the scope of this specific issue. Maybe we could start a discussion / office hours / take it on slack to get more people involved? |
Detailed Description
clusterctl backup
andclusterctl restore
command names are misleading and they drive a lot of confusion in the users.Those command does not provide a full backup and restore solution, they never intended to be.
Instead they allow to break down the
cluster move
command workflow into two parts;clusterctl backup
is the first part where move reads from the source cluster,clusterctl restore
is the second part where move writes to the target cluster.In order to avoid further confusion I suggest to:
clusterctl backup
and offer the same functionality bycluster move --to-folder
, where--to-folder
is a new flag that is mutually exclusive of the existingto-kubeconfig
clusterctl restore
and offer the same functionality bycluster move --from-folder
, where--from-folder
is a new flag that is mutually exclusive of the existingkubeconfig
/kind api-change
/kind cleanup
The text was updated successfully, but these errors were encountered: