kubernetes

package
v0.0.0-...-df3e306 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeleteOptions

type DeleteOptions struct {
	// DeletionPropagation decides how the garbage collector will handle the propagation.
	DeletionPropagation metav1.DeletionPropagation

	// Inclusions determines which in-cluster objects are subject to deletion
	// based on the labels.
	// A nil Inclusions map means all objects are subject to deletion
	Inclusions map[string]string
}

DeleteOptions contains options for delete requests.

type Handler

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

func NewHandler

func NewHandler(c client.Client, owner Owner, cleanup bool) (*Handler, error)

NewHelper returns an initialized Helper.

func (Handler) Apply

func (Handler) ApplyAll

func (*Handler) Delete

func (h *Handler) Delete(ctx context.Context, object *unstructured.Unstructured, opts DeleteOptions) error

Delete deletes the given object (not found errors are ignored).

func (*Handler) DeleteAll

func (h *Handler) DeleteAll(ctx context.Context, resources []*unstructured.Unstructured, opts DeleteOptions) error

func (Handler) PatchStatus

func (h Handler) PatchStatus(ctx context.Context, obj client.Object) error

type Owner

type Owner struct {
	// Field sets the field manager name for the given server-side apply patch.
	Field string
}

Owner contains options for setting the field manager.

Jump to

Keyboard shortcuts

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