Documentation ¶
Index ¶
- Constants
- func CreateNamespace(cl kubernetes.Interface) (string, error)
- func DeleteNamespace(cl kubernetes.Interface, ns string)
- func Eventually(f func() bool, t *testing.T)
- func FetchLogs(cl kubernetes.Interface, name, namespace string, container string) string
- func GetAppPods(cl kubernetes.Interface, nslist []string) (map[string][]string, error)
- func GetPods(cl kubernetes.Interface, ns string) []string
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 ¶
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 ¶
GetAppPods awaits till all pods are running in a namespace, and returns a map from "app" label value to the pod names.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.