utils

package
v0.0.0-...-a1f2fe4 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2017 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateClientset

func CreateClientset(kubeconfig string) (*kubernetes.Clientset, error)

func CreatePod

func CreatePod(clientset kubernetes.Interface, namespace string, image string, name string) (*v1.Pod, error)

func CreateRole

func CreateRole(clientset kubernetes.Interface, namespace string) error

func CreateRoleBinding

func CreateRoleBinding(clientset kubernetes.Interface, namespace string) error

func CreateService

func CreateService(clientset kubernetes.Interface, namespace string, name string, port int32,
	serviceType v1.ServiceType, pod *v1.Pod) (*v1.Service, error)

func CreateTestNamespace

func CreateTestNamespace(clientset kubernetes.Interface, prefix string) (string, error)

func DeletePod

func DeletePod(clientset kubernetes.Interface, namespace string, name string) error

func DeleteService

func DeleteService(clientset kubernetes.Interface, namespace string, name string) error

func DeleteTestNamespace

func DeleteTestNamespace(clientset kubernetes.Interface, namespace string) error

func WaitForSecretExist

func WaitForSecretExist(clientset kubernetes.Interface, namespace string, secretName string,
	timeToWait time.Duration) (*v1.Secret, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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