kubernetes

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewListerWatcher added in v0.2.0

func NewListerWatcher(ctx context.Context, kubeClient client.WithWatch, objectList client.ObjectList, opts ...client.ListOption) cache.ListerWatcher

func NewWatcher added in v0.2.0

func NewWatcher(ctx context.Context, kubeClient client.WithWatch, objectList client.ObjectList, opts ...client.ListOption) cache.Watcher

func ParseWatchEventObject added in v0.2.0

func ParseWatchEventObject[T runtime.Object](event watch.Event) (T, error)

ParseWatchEventObject determines if the specified watch event is an error and if so returns an error and otherwise asserts and returns an object of the expected type

func SelectorMatchesLabels added in v0.2.0

func SelectorMatchesLabels(labelSelector *metav1.LabelSelector, resourceLabels map[string]string) (bool, error)

func WaitForNodeToBeDeleted

func WaitForNodeToBeDeleted(ctx context.Context, clientset kubernetes.Interface, nodeName string) error

func WaitUntilDeploymentAvailable added in v0.2.0

func WaitUntilDeploymentAvailable(ctx context.Context, kubeClient client.WithWatch, deploymentNamespace, deploymentName string) error

func WaitUntilDeploymentUnavailable added in v0.3.0

func WaitUntilDeploymentUnavailable(ctx context.Context, kubeClient client.WithWatch, deploymentNamespace, deploymentName string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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