k8sutil

package
v1.0.14 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2017 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PodRunningAndReady

func PodRunningAndReady(pod v1.Pod) (bool, error)

PodRunningAndReady returns whether a pod is running and each container has passed it's ready state.

func ResolveKubectlBinary added in v1.0.1

func ResolveKubectlBinary(kubeclient *kubernetes.Clientset) (string, error)

ResolveKubectlBinary resolves the binary to use such as 'kubectl' or 'oc'

func V1BetaSelectorToListOptions added in v1.0.1

func V1BetaSelectorToListOptions(selector *v1beta1.LabelSelector) (*api.ListOptions, error)

V1BetaSelectorToListOptions converts a selector from a Deployment to an api.ListOptions object

func WaitForTPRReady

func WaitForTPRReady(restClient *rest.RESTClient, tprGroup, tprVersion, tprName string) error

WaitForTPRReady waits for a third party resource to be available for use.

Types

type PodAction added in v1.0.1

type PodAction struct {
	OnPodChange PodFunc
	// contains filtered or unexported fields
}

func (*PodAction) CheckLatestPod added in v1.0.1

func (p *PodAction) CheckLatestPod()

func (*PodAction) WatchLoop added in v1.0.1

func (p *PodAction) WatchLoop() error

WatchLoop is the loop waiting or the watch to fail

func (*PodAction) WatchPods added in v1.0.1

func (p *PodAction) WatchPods(kubeclient *kubernetes.Clientset, namespace string, listOpts *api.ListOptions) cache.SharedIndexInformer

WatchPods sets up the watcher for the given kubernetes client, namespace and listOpts

type PodFunc added in v1.0.1

type PodFunc func(pod *v1.Pod) error

Jump to

Keyboard shortcuts

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