kube-linter icon indicating copy to clipboard operation
kube-linter copied to clipboard

Create dangling ingress check

Open charlesoconor opened this issue 1 year ago • 4 comments

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

charlesoconor avatar Aug 09 '22 06:08 charlesoconor

Could you add e2e test?

janisz avatar Aug 09 '22 10:08 janisz

Yes we can. Adding a e2e test

charlesoconor avatar Aug 09 '22 16:08 charlesoconor

I think it's a great idea to check the ports as well. Update the PR for that.

charlesoconor avatar Aug 11 '22 01:08 charlesoconor

Thanks for the approval! Excited to be able to use this check I've been running into issues around this a lot lately.

charlesoconor avatar Aug 11 '22 19:08 charlesoconor