-
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
Allow Clusterctl upgrade plan/apply to use --config to upgrade to specific version #11080
Comments
This issue is currently awaiting triage. If CAPI contributors determine this is a relevant issue, they will accept it by applying the The 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-sigs/prow repository. |
I'm not sure I agree with the idea of using the config file to control versions. The config file is used to define custom provider repository and where they are located (and to provide variables). Please note that the fact that the github providers has a version in its url its sort of "incidental" (this is how the GitHub url is, not a clusterctl feature; as a proof of this, you can replace version with latest and everything works the same) |
Okay sure, our thought was that it is a easy and gitops friendly way to know which version we are using/upgrading to. And it is a bit strange that it did not work, as it is a global flag specifying repos. 🙂
Well I guess that is true, but it is also common practice to link/use a specific release via its url hosted on github as I tried to do in my config. Is there anyway you could reconsider? 🙏 |
Frankly speaking I don't think this is the way to go, there are better alternatives. e.g. Most of the CAPI users use a local repository or a custom repository to control which version a users can access, because they validate/support only specific versions and usually ships custom templates. |
Please correct me if I'm wrong but when initializing a new CAPI management cluster, without specifying a config, a lookup is performed to determine the provider manifests. The reason why we ended up here is that (before v1.7) when there was a new provider version released there can be a lag before a GitHub release has been created as well. This caused the lookup to fail with:
To solve this we now run I see the hesitancy for allowing the upgrade versions to be provided via the configuration, but it feels surprising from a user perspective that the initialization utilize the config while the upgrade does not. |
You are correct, there is no agreement on the idea of using the config file to control which version to upgrade to. But as far as I remember the --config flag is a global flag that applies to all commands, upgrade included. Note: I'm not sure about the correlation between running clusterctl init with the --config flag and the error when a release was in progress, but for this I defer to folks who did the actual work |
Yes, this should have been fixed via And be part of clusterctl >= v1.8.0 and v1.7.3 |
/close |
@fabriziopandini: Closing this issue. 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-sigs/prow repository. |
What would you like to be added (User Story)?
Hello, Im not sure if this is a bug or a feature. But as a operator I would like to control which version to upgrade to using the
--config
flag, as you can do with init.I know I can use arguments to control this behavior, but as there is a flag
--config
it would be nice to use it forupgrade plan/apply
as well.Detailed Description
When I run the plan command today with
--config
and with the debug flag I see that the config is picked up, but after fetching latest versions upstream./home/robin/Documents/capi/clusterctl-config.yaml:
What I expect is that the version should be held back depending on my config file.
Anything else you would like to add?
Label(s) to be applied
/kind feature
One or more /area label. See https://github.com/kubernetes-sigs/cluster-api/labels?q=area for the list of labels.
The text was updated successfully, but these errors were encountered: