Require relocatable kustomizations and fix some nits.

This commit is contained in:
Jeffrey Regan
2018-12-07 10:46:35 -08:00
parent 8a8331bf57
commit 108b3e497b
4 changed files with 7 additions and 26 deletions

View File

@@ -103,10 +103,10 @@ func (kf *KunstructuredFactoryImpl) Set(fs fs.FileSystem, ldr ifc.Loader) {
// validate validates that u has kind and name
func (kf *KunstructuredFactoryImpl) validate(u unstructured.Unstructured) error {
if u.GetName() == "" {
return fmt.Errorf("Missing metadata.name in object %v", u)
return fmt.Errorf("missing metadata.name in object %v", u)
}
if u.GetKind() == "" {
return fmt.Errorf("Missing kind in object %v", u)
return fmt.Errorf("missing kind in object %v", u)
}
return nil
}