util

package
v0.0.0-...-46d7da7 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// PodCheckBudget is the maximum number of retries with 1s delays
	PodCheckBudget = 90
)

Variables

This section is empty.

Functions

func CreateNamespace

func CreateNamespace(cl kubernetes.Interface) (string, error)

CreateNamespace creates a fresh namespace

func DeleteNamespace

func DeleteNamespace(cl kubernetes.Interface, ns string)

DeleteNamespace removes a namespace

func Eventually

func Eventually(f func() bool, t *testing.T)

Eventually does retrees to check a predicate

func FetchLogs

func FetchLogs(cl kubernetes.Interface, name, namespace string, container string) string

FetchLogs for a container in a a pod

func GetAppPods

func GetAppPods(cl kubernetes.Interface, nslist []string) (map[string][]string, error)

GetAppPods awaits till all pods are running in a namespace, and returns a map from "app" label value to the pod names.

func GetPods

func GetPods(cl kubernetes.Interface, ns string) []string

GetPods gets pod names in a namespace

Types

This section is empty.

Jump to

Keyboard shortcuts

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