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
autoscaling/v2beta1 is no longer available in current kubernetes 1.25 #114
Comments
indeed it fails on kubernetes 1.25 |
This should be simple enough to fix with a similar set of conditions as the CronJob resource. According to the deprecated API migration guide, v1.23+ supports the autoscaling/v2 API version, so something along the lines of {{- if semverCompare ">=1.23-0" .Capabilities.KubeVersion.GitVersion -}}
apiVersion: batch/v2
{{- else -}}
apiVersion: autoscaling/v2beta1
{{- end }} should do the trick. |
v2 will be removed in 1.26. We should use stable versions: https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/#api-object |
and since 1.26 is out now, we should be looking into fixing this. |
This looks like it'll be resolved in the upcoming 5.0.0-release: 664c10b. |
expectation is to use proper api reference as autoscaling would not working in the last release of kubernetes
The text was updated successfully, but these errors were encountered: