Introduce resmap.ApplyFilter.

This commit is contained in:
monopole
2021-05-10 16:55:28 -07:00
parent 714af0cd66
commit 01ddeb476d
17 changed files with 294 additions and 101 deletions

View File

@@ -54,6 +54,10 @@ var buildAnnotations = []string{
buildAnnotationAllowKindChange,
}
func NewResource(rn *kyaml.RNode) *Resource {
return &Resource{node: rn}
}
func (r *Resource) AsRNode() *kyaml.RNode {
return r.node.Copy()
}