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 ¶
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.
Click to show internal directories.
Click to hide internal directories.