Skip to content

[BugFix] Try to use different version to delete HPA #468

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

Conversation

yandongxiao
Copy link
Collaborator

@yandongxiao yandongxiao commented Mar 14, 2024

Description

If we mistakenly determine the type of HPA, we will receive an error message similar to "no matches for kind 'HorizontalPodAutoscaler' in version 'autoscaling/v2beta2'".

This error cannot be identified through apierrors, and using string comparison to determine if it is this error is not a good approach. Therefore, our solution is to always switch to another version of HPA for deletion.

Checklist

For operator, please complete the following checklist:

  • run make generate to generate the code.
  • run golangci-lint run to check the code style.
  • run make test to run UT.
  • run make manifests to update the yaml files of CRD.

@yandongxiao yandongxiao force-pushed the bugfix/try-to-use-different-version-to-delete-hpa branch from 25d0de3 to 5519559 Compare March 14, 2024 07:39
@yandongxiao yandongxiao marked this pull request as ready for review March 14, 2024 07:44
@yandongxiao yandongxiao merged commit 5f93b29 into StarRocks:main Mar 14, 2024
5 checks passed
@yandongxiao yandongxiao added v1.9.4 bugfix fix something that does not work labels Apr 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix fix something that does not work v1.9.4
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants