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

fix: ensure ingress HTTP rule exists to prevent analyze panic #726

Merged
merged 2 commits into from
Nov 3, 2023
Merged

fix: ensure ingress HTTP rule exists to prevent analyze panic #726

merged 2 commits into from
Nov 3, 2023

Conversation

testA113
Copy link
Contributor

@testA113 testA113 commented Nov 1, 2023

Closes #653

📑 Description

The issue described gives a panic since the rule.HTTP field may not exist in an ingress object. My fix checks if the HTTP field rule.HTTP exists before looping though the rule.HTTP.Paths

✅ 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

@testA113 testA113 requested review from a team as code owners November 1, 2023 17:56
Copy link
Member

@arbreezy arbreezy left a comment

Choose a reason for hiding this comment

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

lgtm

@arbreezy arbreezy merged commit 37721b5 into k8sgpt-ai:main Nov 3, 2023
7 checks passed
@testA113 testA113 deleted the fix/no-ingress-paths-analyze-panic2 branch November 19, 2023 20:25
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.

[Bug]: Panic when analyzing ingress that has no paths (w suggested fix)
2 participants