-
Notifications
You must be signed in to change notification settings - Fork 8.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
fix(hpa): deprecated api version, bump to v2 #9348
fix(hpa): deprecated api version, bump to v2 #9348
Conversation
|
@sjoukedv: This issue is currently awaiting triage. If Ingress contributors determines 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/test-infra repository. |
Welcome @sjoukedv! |
Hi @sjoukedv. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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/test-infra repository. |
@sjoukedv Thanks for your contribution
|
I just discovered a odd thing that the other PR I linked has 0 files changed #8872 (comment) Maybe we need to wait and find out more. The focus is the conditional use of hpa api version based on K8s version etc. |
I can refactor with a helm value that allows you to still use the older (deprecated) version. The other PR has the same purpose, but contains no changed files. |
Okay, I have abstracted the value of the apiVersion, so that people can override it with a different one. @longwuyuan I'll leave it to you which one you would like to set as default (now it still ``autoscaling/v2beta2`). Dry run without the version yields the template as is now:
Specifying the apiVersion:
|
Sgtm, when was v2beta2 deprecated and when v2 got stable? I would default to the stable one if it is available for at least 3 releases |
https://kubernetes.io/docs/reference/using-api/deprecation-guide/#horizontalpodautoscaler-v125
So that makes 3 releases. Important to note for the upcoming version 1.26
|
1.23, 1.24, 1.25 = 3 releases :) |
I have changed the default apiVersion to |
Can someone check the pipeline? I didn't make any changes to the source files yet that is where it fails. |
Did you edit the README.md undr /charts manually to add that one line for autoscaling ? |
Yes, I did and afterwards I ran the |
@longwuyuan All jobs have passed now |
@sjoukedv thanks |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: longwuyuan, rikatz, sjoukedv 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 |
When the chart with this change is going to be published? Long-awaited fix... |
* fix(hpa): deprecated api version, bump to v2 * chore(hpa): abstract hpa apiVersion to helm value * feat(hpa): add controller.autoscaling.apiVersion docs in README * docs(hpa): quotes around apiVersion string type * chore(hpa): run helm-docs in repo * chore(hpa): remove local helm-docs module install and output * docs(helm): add hpa controller.autoscaling.apiVersion description * docs(hpa): remove autoscaling.apiVersion description as it fails ci
What this PR does / why we need it:
autoscaling/v2beta2 HorizontalPodAutoscaler is deprecated in v1.23+, unavailable in v1.26+; use autoscaling/v2 HorizontalPodAutoscaler
Types of changes
Which issue/s this PR fixes
fixes #9347
How Has This Been Tested?
n.a.
Checklist: