kubeconform/pkg/validator
Michael Lee 57e1c2b437 Stop validating output of closed channel in Validate
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-03-31 16:41:23 -07:00
..
validator.go Stop validating output of closed channel in Validate 2024-03-31 16:41:23 -07:00
validator_test.go Stop validating output of closed channel in Validate 2024-03-31 16:41:23 -07:00