-
Notifications
You must be signed in to change notification settings - Fork 4k
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
[CA-1.18] #2934 cherry-pick: Fixes 2932: let the capi version to be discovered #3105
[CA-1.18] #2934 cherry-pick: Fixes 2932: let the capi version to be discovered #3105
Conversation
…API version. This change adds detection for an environment variable to specify the group for the clusterapi resources. If the environment variable `CAPI_GROUP` is specified, then it will be used instead of the default. This also decouples the API group from the version and let the latter to be discovered dynamically.
i think this is a good commit to cherry-pick, i'd like to get @enxebre 's thoughts also. /approve |
+1 from me |
I'm all good with this. But It should be validated by some autoscaler core owner for the release branching management and back ports policy. |
/approve Regarding a broader backport policy - we are fine with cherry-picking provider specific fixes and there is plenty of precedent for it. We're also more relaxed than kubernetes/kubernetes when it comes to both cherry-picking features (if they're critical enough and changes are reasonably small) and how many versions we support (it's usually ~2 more than k/k). |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: elmiko, MaciekPytel The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/lgtm |
This PR proposes to cherry-pick #2934 to the
cluster-autoscaler-release-1.18
branch.With Cluster Autoscaler v1.18.0, it's possible to use the Cluster-API provider. However, there is a bug that makes the provider unusable for some users.
The provider supports all Cluster-API groups and versions, but in the original PR, the group and version are hardcoded. Users that are not using v1alpha2 have two options, which are not optimal:
The PR (#2934) that fixes this could be looked at as a bugfix and it doesn't introduce any behavior changes (the default group is still
cluster.x-k8s.io
and version will be auto-discovered). I believe that it would make sense to cherry-pick it to the release-1.18 branch, so the bugfix is included in the next patch release. That would make the provider useful for all users, regardless of the group and version they are using.Original PR description:
cc @elmiko