kube

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package kube provides the logic for interacting with Kubernetes

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrInvalidKubeConfig is returned when the kube client is invalid.
	ErrInvalidKubeConfig = errors.New("invalid kube config")

	// ErrMissingKubeConfig is returned when the kube config is invalid.
	ErrMissingKubeConfig = errors.New("running outside of cluster and kubeconfig flag is not set")

	// ErrInvalidKubeClient is returned when the kube client is invalid.
	ErrInvalidKubeClient = errors.New("invalid kube client")
)

Functions

func NewKubeClient

func NewKubeClient(_ context.Context, path string) (*kubernetes.Clientset, error)

NewKubeClient returns a new kubernetes clientset

func NewNodeWatcher

func NewNodeWatcher(ctx context.Context, cli kubernetes.Interface, label string) (watch.Interface, error)

NewNodeWatcher returns a new node watcher for nodes with the specified label

Types

This section is empty.

Jump to

Keyboard shortcuts

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