kubeconform/pkg
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
..
cache Update Golang to 1.21.4 (#245) 2023-11-18 18:31:34 +01:00
config Sanitize csv strings (#258) 2024-05-09 14:21:36 +02:00
output Fix junit output, also ensure junit output is deterministic (#253) 2023-12-24 18:06:03 +01:00
registry Update Golang to 1.21.4 (#245) 2023-11-18 18:31:34 +01:00
resource Allow to skip resources using the GVK notation (#92) 2022-10-16 14:59:48 +02:00
validator Stop validating output of closed channel in Validate (#265) 2024-05-09 16:27:59 +02:00