patch

package
v1.12.0-beta.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 4, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package patch contains patch utils.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopySpec

func CopySpec(in CopySpecInput) error

CopySpec copies a field from a srcSpecPath in src to a destSpecPath in dest, while preserving fieldsToPreserve.

func PatchSpec

func PatchSpec(object *runtime.RawExtension, patchedObjectBytes []byte) error

PatchSpec overwrites spec in object with spec of patchedObjectBytes.

Types

type CopySpecInput

type CopySpecInput struct {
	Src              *unstructured.Unstructured
	Dest             *unstructured.Unstructured
	SrcSpecPath      string
	DestSpecPath     string
	FieldsToPreserve []contract.Path
}

CopySpecInput is a struct containing the input parameters of CopySpec.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL