(obj runtime.Unstructured)
| 606 | } |
| 607 | |
| 608 | func encodeToJSON(obj runtime.Unstructured) ([]byte, error) { |
| 609 | serialization, err := runtime.Encode(unstructured.UnstructuredJSONScheme, obj) |
| 610 | if err != nil { |
| 611 | return nil, err |
| 612 | } |
| 613 | js, err := yaml.ToJSON(serialization) |
| 614 | if err != nil { |
| 615 | return nil, err |
| 616 | } |
| 617 | return js, nil |
| 618 | } |
| 619 | |
| 620 | func (o *EditOptions) visitToPatch(originalInfos []*resource.Info, patchVisitor resource.Visitor, results *editResults) error { |
| 621 | err := patchVisitor.Visit(func(info *resource.Info, incomingErr error) error { |
no outgoing calls
no test coverage detected
searching dependent graphs…