kubeconform/pkg/validator
Michael Lee 20805f652c
Stop validating output of closed channel in Validate (#265)
Currently, Validate and ValidateWithContext always returns a
result with status `Empty` and a `missing 'kind' key` error as
the final item in the returned slice.

This is because ValidateWithContext currently will parse the output of
`resourcesChan`, even when the context is finished and we get back
a default `Resource` struct.

This PR modifies the code to skip validating this case.
2024-05-09 16:27:59 +02:00
..
validator.go Stop validating output of closed channel in Validate (#265) 2024-05-09 16:27:59 +02:00
validator_test.go Stop validating output of closed channel in Validate (#265) 2024-05-09 16:27:59 +02:00