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

Merged
merged 14 commits into from
Jul 22, 2024

Conversation

naveenthangaraj03
Copy link
Contributor

@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

Signed-off-by: naveenthangaraj03 <tnaveen3402@gmail.com>
Signed-off-by: naveenthangaraj03 <tnaveen3402@gmail.com>
@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
Contributor 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 

Signed-off-by: naveenthangaraj03 <tnaveen3402@gmail.com>
Signed-off-by: naveenthangaraj03 <tnaveen3402@gmail.com>
@naveenthangaraj03
Copy link
Contributor Author

@AlexsJones Can you check this once?

naveenthangaraj03 and others added 5 commits July 19, 2024 17:16
Signed-off-by: naveenthangaraj03 <tnaveen3402@gmail.com>
Signed-off-by: naveenthangaraj03 <tnaveen3402@gmail.com>
Signed-off-by: naveenthangaraj03 <tnaveen3402@gmail.com>
Signed-off-by: naveenthangaraj03 <tnaveen3402@gmail.com>
@matthisholleville
Copy link
Contributor

@naveenthangaraj03
Copy link
Contributor Author

@matthisholleville Can you check this now?

Copy link
Contributor

@matthisholleville matthisholleville left a comment

Choose a reason for hiding this comment

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

lgtm

@matthisholleville matthisholleville merged commit a068310 into k8sgpt-ai:main Jul 22, 2024
8 checks passed
kayhern pushed a commit to fidelity-contributions/k8sgpt-ai-k8sgpt that referenced this pull request Aug 23, 2024
…#1164)

* getting the error from status field for hpa analyzer

Signed-off-by: naveenthangaraj03 <tnaveen3402@gmail.com>

* Signed-off

Signed-off-by: naveenthangaraj03 <tnaveen3402@gmail.com>

* Updated the hpaAnalyzer_test.go

Signed-off-by: naveenthangaraj03 <tnaveen3402@gmail.com>

* Updated hpa_test.go

Signed-off-by: naveenthangaraj03 <tnaveen3402@gmail.com>

* Updated the hpa

Signed-off-by: naveenthangaraj03 <tnaveen3402@gmail.com>

* Updated the Conflicts

Signed-off-by: naveenthangaraj03 <tnaveen3402@gmail.com>

* Resolved all the conflicts

Signed-off-by: naveenthangaraj03 <tnaveen3402@gmail.com>

* Updated the test case

Signed-off-by: naveenthangaraj03 <tnaveen3402@gmail.com>

---------

Signed-off-by: naveenthangaraj03 <tnaveen3402@gmail.com>
Co-authored-by: Alex Jones <alexsimonjones@gmail.com>
Co-authored-by: Matthis <matthish29@gmail.com>
Signed-off-by: michael12312 <jun.wang@fmr.com>
@naveenthangaraj03 naveenthangaraj03 deleted the HPA-analyzer branch September 12, 2024 09:22
AlexsJones added a commit that referenced this pull request Oct 24, 2024
* getting the error from status field for hpa analyzer

Signed-off-by: naveenthangaraj03 <tnaveen3402@gmail.com>

* Signed-off

Signed-off-by: naveenthangaraj03 <tnaveen3402@gmail.com>

* Updated the hpaAnalyzer_test.go

Signed-off-by: naveenthangaraj03 <tnaveen3402@gmail.com>

* Updated hpa_test.go

Signed-off-by: naveenthangaraj03 <tnaveen3402@gmail.com>

* Updated the hpa

Signed-off-by: naveenthangaraj03 <tnaveen3402@gmail.com>

* Updated the Conflicts

Signed-off-by: naveenthangaraj03 <tnaveen3402@gmail.com>

* Resolved all the conflicts

Signed-off-by: naveenthangaraj03 <tnaveen3402@gmail.com>

* Updated the test case

Signed-off-by: naveenthangaraj03 <tnaveen3402@gmail.com>

---------

Signed-off-by: naveenthangaraj03 <tnaveen3402@gmail.com>
Co-authored-by: Alex Jones <alexsimonjones@gmail.com>
Co-authored-by: Matthis <matthish29@gmail.com>
Signed-off-by: AlexsJones <alexsimonjones@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants