mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-12 01:14:22 +00:00
ignore yaml files that do not include any entries
This commit is contained in:
@@ -52,6 +52,9 @@ func (kf *KunstructuredFactoryImpl) SliceFromBytes(
|
|||||||
var out unstructured.Unstructured
|
var out unstructured.Unstructured
|
||||||
err = decoder.Decode(&out)
|
err = decoder.Decode(&out)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
|
if len(out.Object) == 0 {
|
||||||
|
continue
|
||||||
|
}
|
||||||
err = kf.validate(out)
|
err = kf.validate(out)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
|||||||
Reference in New Issue
Block a user