if the kind matches '*List$', treat it as a list

This commit is contained in:
Andrew Lavery
2019-02-12 12:28:08 -08:00
parent 02d753027a
commit fdba7df3c1
2 changed files with 7 additions and 2 deletions

View File

@@ -108,7 +108,7 @@ func (kf *KunstructuredFactoryImpl) validate(u unstructured.Unstructured) error
kind := u.GetKind()
if kind == "" {
return fmt.Errorf("missing kind in object %v", u)
} else if kind == "List" {
} else if strings.HasSuffix(kind, "List") {
return nil
}
if u.GetName() == "" {