-
Notifications
You must be signed in to change notification settings - Fork 746
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
Incorrect findings for HorizontalPodAutoscaler #216
Comments
Hello, Thank you for your issue. I Will check. |
I just tried it and I couldn't reproduce it. Are your deployment and HPA in the same namespace? |
Yeah if you see the output from the HPA it’s in the same namespace as the service. |
Can you please send me the ApiVersions that you are using for HPA and Deployment? |
I'm also seeing this: HPA API version: autoscalign/v2 I'm talking about this issue in #229 |
Thank you for reporting the issue. I have just pushed a fix that resolves the problem. |
Checklist:
Subject of the issue
k8sgpt returns incorrect information reporting missing information about HorizontalPodAutoscaler. Specifically:
- Error: HorizontalPodAutoscaler uses Deployment/teams as ScaleTargetRef which does not exist.
Your environment
Client Version: v1.24.12-dispatcher
Kustomize Version: v4.5.4
Server Version: v1.24.9-gke.3200
k8sgpt version 0.1.8
Steps to reproduce
k8sgpt analyze --explain
- Error: HorizontalPodAutoscaler uses Deployment/teams as ScaleTargetRef which does not exist.
Expected behaviour
k8sgpt should not be trying to check the HPA at all.
Actual behaviour
It seems to be incorrectly checking for HPA deployment targets in the default namespace.
Additional context / screenshots
The text was updated successfully, but these errors were encountered: