apply

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2022 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultDecoderBufferSize = 500

Variables

View Source
var Scheme = runtime.NewScheme()

Functions

func ApplyUnstructured

func ApplyUnstructured(ctx context.Context, dynamicClient dynamic.Interface, restMapper meta.RESTMapper, unstructuredObj unstructured.Unstructured, serverSide bool) (*unstructured.Unstructured, error)

func Decode

func Decode(data []byte) ([]unstructured.Unstructured, error)

func NewApplyOptions

func NewApplyOptions(dynamicClient dynamic.Interface, discoveryClient discovery.DiscoveryInterface) *applyOptions

func ObjectToUnstructured

func ObjectToUnstructured(obj runtime.Object) ([]unstructured.Unstructured, error)

func Patch

func Patch(currentUnstr *unstructured.Unstructured, modified []byte, name string, gvk schema.GroupVersionKind) ([]byte, types.PatchType, error)

Types

type FailedObject added in v0.0.2

type FailedObject struct {
	Name       string
	Kind       string
	ErrMessage string
}

Jump to

Keyboard shortcuts

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