Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improvement: slightly increase defensiveness
Maybe the List is actually a CRD? Seems to be unlikely as other tools like Kustomize also treat kinds matching `*List` as lists. But add a better error message here if items contains something unexpected just in case. This logic is more or less equivalent to https://github.com/kubernetes-sigs/kustomize/blob/cf3e81b590ab1fd7fc8f50849535f44bfea0d355/api/resource/factory.go#L550
- Loading branch information