fix(releaseutil): Removes API version checks from kind sorter

The sorting method for manifests contained a check to see if the API
version existed. This violates separation of concerns as the sorter
should just sort and leave validation to other parts of the code.

Signed-off-by: Taylor Thomas <taylor.thomas@microsoft.com>
pull/6817/head
Taylor Thomas 6 years ago
parent 82a100b0b7
commit 6a91263e38

@ -129,10 +129,6 @@ func (file *manifestFile) sort(result *result) error {
return errors.Wrapf(err, "YAML parse error on %s", file.path)
}
if entry.Version != "" && !file.apis.Has(entry.Version) {
return errors.Errorf("apiVersion %q in %s is not available", entry.Version, file.path)
}
if !hasAnyAnnotation(entry) {
result.generic = append(result.generic, Manifest{
Name: file.path,

Loading…
Cancel
Save