patch

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2020 License: Apache-2.0 Imports: 7 Imported by: 1

README

The code in this directory has been copied from: github.com/kubernetes-sigs/cluster-api/util/patch@beff1e1df8e80d3a4fdb996c86409793ee491d47

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Helper

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

Helper is a utility for ensuring the proper Patching of resources and their status

func NewHelper

func NewHelper(resource runtime.Object, crClient client.Client) (*Helper, error)

NewHelper returns an initialized Helper

func (*Helper) Patch

func (h *Helper) Patch(ctx context.Context, resource runtime.Object) error

Patch will attempt to patch the given resource and its status

Jump to

Keyboard shortcuts

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