kube

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2018 License: Apache-2.0 Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KubeClient

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

KubeClient abstracts operations on a running kubernetes cluster

func NewKubeClient

func NewKubeClient(kubeconfig string) (*KubeClient, error)

NewKubeClient creates a KubeClient object, configuring it from the provided kubeconfig. The connection will be established in this function

func (*KubeClient) DrainNode

func (k *KubeClient) DrainNode(ctx context.Context) error

DrainNode drains a node, that is stopping all pods on it

func (*KubeClient) FindDashboardAdminSecret

func (k *KubeClient) FindDashboardAdminSecret() string

func (*KubeClient) FindService

func (k *KubeClient) FindService(serviceName string) (string, int32)

func (*KubeClient) WaitForNode

func (k *KubeClient) WaitForNode(ctx context.Context) error

WaitForNode delays execution until a single node exists and is in state 'Ready', removing the unschedulable taint if possible

Jump to

Keyboard shortcuts

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