Don't swallow error in SM patch and use new RNode Map method.

This commit is contained in:
monopole
2021-01-09 06:57:29 -08:00
parent 1a002005c1
commit c2fbb709da
5 changed files with 26 additions and 19 deletions

View File

@@ -15,6 +15,7 @@ type Filter struct {
var _ kio.Filter = Filter{}
// Filter does a strategic merge patch, which can delete nodes.
func (pf Filter) Filter(nodes []*yaml.RNode) ([]*yaml.RNode, error) {
var result []*yaml.RNode
for i := range nodes {