kube

package
v0.0.0-...-3df9bb7 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFinalizer

func AddFinalizer(ctx context.Context, cl client.Client, obj client.Object, finalizer string) (ctrl.Result, error)

func HasFinalizer

func HasFinalizer(obj client.Object, finalizer string) bool

func Key

func Key(name string, namespace ...string) client.ObjectKey

key returns the client.ObjectKey for the given name and namespace. If no namespace is provided, it returns a key cluster scoped

func RemoveFinalizer

func RemoveFinalizer(ctx context.Context, cl client.Client, obj client.Object, finalizer string) (ctrl.Result, error)

Types

type StatusPatch

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

func NewStatusPatch

func NewStatusPatch(status interface{}) *StatusPatch

func (*StatusPatch) Data

func (p *StatusPatch) Data(obj client.Object) ([]byte, error)

func (*StatusPatch) Type

func (p *StatusPatch) Type() types.PatchType

Jump to

Keyboard shortcuts

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