kubernetes-sigs / cluster-api

Home for Cluster API, a subproject of sig-cluster-lifecycle
https://cluster-api.sigs.k8s.io
Apache License 2.0
3.58k stars 1.31k forks source link

clusterctl should block its usage across minor versions of CAPI #3534

Closed wfernandes closed 3 years ago

wfernandes commented 4 years ago

User Story

As a user I would like to ensure that I'm using the appropriate version of clusterctl with a management cluster because I do not want to have unexpected side effects when performing cluster operations.

Detailed Description

If we have a v1alpha3 management cluster (which may have been created by clusterctl-v1a3 init), then we should be blocked from using a clusterctl cli from a newer minor release (e.g. clusterctl-v1a4 init -i <infra>). However, we still want upgrades to work. clusterctl-v1a3 --> clusterctl from a v0.3.x release clusterctl-v1a4 --> clusterctl from a v0.4.x release

Anything else you would like to add:

Other questions to consider:

/kind feature /area clusterctl

fabriziopandini commented 4 years ago

+1 to this IMO the most tricky part is that in a multitenancy scenario a management cluster could be both v1alpha3 and v1apha4 at the same time. Happy to brainstorm about how to get this addressed

vincepri commented 4 years ago

/milestone v0.4.0

vincepri commented 4 years ago

/priority important-soon

One clarification, clusterctl shouldn't support environments running multiple different versions of the controllers going forward

wfernandes commented 4 years ago

Yes, moving forward this may look a little different. We may have to ensure that there is consistency between the clusterctl CLI and the management cluster operator versions rather than the version of the management cluster itself.

fejta-bot commented 3 years ago

Issues go stale after 90d of inactivity. Mark the issue as fresh with /remove-lifecycle stale. Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta. /lifecycle stale

vincepri commented 3 years ago

/lifecycle frozen

fabriziopandini commented 3 years ago

/close This has been fixed by the work in preparation for v1alpha3 --> v1alpha4 upgrades

k8s-ci-robot commented 3 years ago

@fabriziopandini: Closing this issue.

In response to [this](https://github.com/kubernetes-sigs/cluster-api/issues/3534#issuecomment-825150429): >/close >This has been fixed by the work in preparation for v1alpha3 --> v1alpha4 upgrades Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository.