patch

package
v0.0.0-...-dfb16cd Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package patch implements patch utilities. copied from sigs.k8s.io/cluster-api/util/patch

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Patcher

type Patcher struct {
	// contains filtered or unexported fields
}

Patcher is a utility for ensuring the proper patching of objects.

func NewPatcher

func NewPatcher(obj client.Object, crclient client.Client) (*Patcher, error)

NewPatcher returns an initialized Patcher.

func (*Patcher) Patch

func (p *Patcher) Patch(ctx context.Context, obj client.Object) error

Patch will attempt to patch the given object, including its status.

Jump to

Keyboard shortcuts

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