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

feat: getting the error from status field for HPA analyzer #1164

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

naveenthangaraj03
Copy link

@naveenthangaraj03 naveenthangaraj03 commented Jun 20, 2024

Display the error from the status field, will get to know the clear error from the HPA

Closes #

πŸ“‘ Description

βœ… Checks

  • My pull request adheres to the code style of this project
  • My code requires changes to the documentation
  • I have updated the documentation as required
  • All the tests have passed

β„Ή Additional Information

@naveenthangaraj03 naveenthangaraj03 changed the title Getting the error from status field for HPA analyzer feat: Getting the error from status field for HPA analyzer Jun 26, 2024
@naveenthangaraj03 naveenthangaraj03 changed the title feat: Getting the error from status field for HPA analyzer feat: getting the error from status field for HPA analyzer Jun 26, 2024
@JuHyung-Son
Copy link
Contributor

overall looks good!
would you add test for this?

@naveenthangaraj03
Copy link
Author

@JuHyung-Son
No, I am not aware of that

Copy link
Member

@AlexsJones AlexsJones left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please fix these tests

--- FAIL: TestHPAAnalyzerWithUnsuportedScaleTargetRef (0.00s)
    hpaAnalyzer_test.go:130: expected error 'does not possible option.' not found in analysis results
--- FAIL: TestHPAAnalyzerWithNonExistentScaleTargetRef (0.00s)
    hpaAnalyzer_test.go:177: expected error 'does not exist.' not found in analysis results
	assert.go:24: got 0 want 1 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Proposed
Development

Successfully merging this pull request may close these issues.

None yet

3 participants