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

Check that string probe port match container port

Open jouve opened this issue 3 years ago • 4 comments

implementation of #455

if a probe port is a string and the string is not of number (like "1234" ) and the string is not in the container ports (ie. ` ports[].name), then raise a diagnostic message.

while the resource it accepted by kube currently, the liveness/readiness/startup will fail anyway, so added to default checks.

jouve avatar Nov 26 '22 07:11 jouve

@jouve You need to regenerate files

janisz avatar Dec 06 '22 11:12 janisz

I'll update this PR soon :)

jouve avatar Dec 06 '22 13:12 jouve

@jouve ping

janisz avatar Feb 22 '23 19:02 janisz

@jouve Could you rebase? I think we can make it into next release Don't forget to rerequest review ⟳

janisz avatar Feb 28 '24 14:02 janisz