kube

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddPodFinalizer

func AddPodFinalizer(ctx context.Context, pod client.Object, finalizerName string) error

func Init

func Init(mgr ctrl.Manager)

func RemovePodFinalizer

func RemovePodFinalizer(ctx context.Context, pod client.Object, finalizerName string) error

func SetPodAnnotation

func SetPodAnnotation(ctx context.Context, pod *corev1.Pod, name, value string) error

func StripNodeUnusedFields added in v1.1.0

func StripNodeUnusedFields(obj any) (any, error)

func StripPodUnusedFields

func StripPodUnusedFields(obj any) (any, error)

StripPodUnusedFields is the transform function for shared pod informers, it removes unused fields from objects before they are stored in the cache to save memory.

func Update added in v1.0.0

func Update(ctx context.Context, obj client.Object, mutate func()) error

func UpdateStatus added in v1.0.0

func UpdateStatus(ctx context.Context, obj client.Object, mutate func()) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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