mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-11 00:52:55 +00:00
RNode copier
This commit is contained in:
@@ -168,6 +168,16 @@ type RNode struct {
|
||||
Match []string
|
||||
}
|
||||
|
||||
// Copy returns a distinct copy.
|
||||
func (rn *RNode) Copy() *RNode {
|
||||
if rn == nil {
|
||||
return nil
|
||||
}
|
||||
result := *rn
|
||||
result.value = CopyYNode(rn.value)
|
||||
return &result
|
||||
}
|
||||
|
||||
var ErrMissingMetadata = fmt.Errorf("missing Resource metadata")
|
||||
|
||||
// Field names
|
||||
|
||||
Reference in New Issue
Block a user