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: defer to service analyser when selectors are missing #652

Merged
merged 2 commits into from
Sep 14, 2023

Conversation

arbreezy
Copy link
Member

Closes #647

📑 Description

This PR fixes potential panic issues when service selector is empty for a service defined in {mutating,validating} webhook K8s resources.
It will now continue on their absence and effectively defer the analysis to the service analyser.

✅ 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: Aris Boutselis <arisboutselis08@gmail.com>
@arbreezy arbreezy requested review from a team as code owners September 13, 2023 15:04
@AlexsJones AlexsJones merged commit 6c5a062 into k8sgpt-ai:main Sep 14, 2023
6 checks passed
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.

k8sgpt v0.3.11 or later crashes on Linux when running --filter ValidatingWebhookConfiguration
2 participants