kube-linter
kube-linter copied to clipboard
Create dangling ingress check
Creating a check for dangling ingresses. I think it will fit in well with the other rules that already exist in this tool. Have been seeing these pop up from time to time in the projects I've been working on and would love to be able to catch them at lint time.
I punted on dealing with resources that ingress can point to an only check for services, but could add that logic in if need be. My assumption was this would cover almost all of the use cases.
Closes https://github.com/stackrox/kube-linter/issues/387
Could you add e2e test?
Yes we can. Adding a e2e test
I think it's a great idea to check the ports as well. Update the PR for that.
Thanks for the approval! Excited to be able to use this check I've been running into issues around this a lot lately.