utils

package
v0.0.0-...-268c44b Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2017 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MASTER     string
	TESTLINK   string
	MASTERNAME string
)

Functions

func AddServiceAccountToAdmins

func AddServiceAccountToAdmins(c kubernetes.Interface)

AddServiceAccountToAdmins will add system:serviceaccounts to cluster-admin ClusterRole

func DumpLogs

func DumpLogs(clientset *kubernetes.Clientset, pods ...v1.Pod)

func ExecInPod

func ExecInPod(clientset *kubernetes.Clientset, pod v1.Pod, cmd ...string) (string, string, error)
func GetTestLink() string

func KubeClient

func KubeClient() (*kubernetes.Clientset, error)

func LoadConfig

func LoadConfig() *rest.Config

func Logf

func Logf(format string, a ...interface{})

func WaitForReady

func WaitForReady(clientset *kubernetes.Clientset, pod *v1.Pod)

Types

This section is empty.

Jump to

Keyboard shortcuts

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