Skip to content
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

operator api usage deprecated autoscaling/v2beta2 blocks update of Azure Kubernetes Service #864

Closed
SaschaJohn opened this issue Feb 6, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@SaschaJohn
Copy link

Hello VM team,

we're currently doing an upgrade from AKS 1.25 to 1.27. During the upgrade, the service scans for usage of deprecated APIs, that will be removed in the current upgrade path.
We came across the error of autoscaling/v2beta2 used from vmoperator which is deprecated since 1.23 and was removed in 1.26.

You already made the operator compatible with #583

However I see a problem in the order of the API usage.

1,25 supports API version supports v2beta2, therefore function IsHPAV2BetaSupported returns true
and

func buildHPASpec(targetRef v2beta2.CrossVersionObjectReference, spec *victoriametricsv1beta1.EmbeddedHPA, or []metav1.OwnerReference, lbls map[string]string, namespace string) client.Object {

takes the beta in favor of the stable version. In 1.26 the beta api was removed. This blocks the upgrade path.

Do you any need to support the beta api? Otherwise I suggest to remove it from the controllers factory builders,

Best

/Sascha

@f41gh7 f41gh7 added the bug Something isn't working label Feb 6, 2024
@f41gh7
Copy link
Collaborator

f41gh7 commented Feb 6, 2024

Hello, thanks for detailed bug report @Haleygo can you please take a look?

@SaschaJohn
Copy link
Author

SaschaJohn commented Feb 16, 2024

Bug fixed in next release after v0.41.1 from 1 Feb 2024.
Thank you very much @f41gh7 @Haleygo !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants