framework

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Framework

type Framework struct {
	KubeClientset    kubernetes.Interface
	ApiExtClientset  apiextension.Interface
	KarydiaClientset versioned.Interface

	Namespace string
}

func Setup

func Setup(server, kubeconfig, namespace string) (*Framework, error)

func (*Framework) CreateNamespace

func (f *Framework) CreateNamespace() error

func (*Framework) CreateServiceAccount

func (f *Framework) CreateServiceAccount(serviceAccountName string, namespace string) (*corev1.ServiceAccount, error)

func (*Framework) CreateTestNamespace

func (f *Framework) CreateTestNamespace() (*corev1.Namespace, error)

func (*Framework) CreateTestNamespaceWithAnnotation

func (f *Framework) CreateTestNamespaceWithAnnotation(annotations map[string]string) (*corev1.Namespace, error)

func (*Framework) DeleteAll

func (f *Framework) DeleteAll() error

func (*Framework) WaitDefaultServiceAccountCreated

func (f *Framework) WaitDefaultServiceAccountCreated(ns string, timeout time.Duration) error

func (*Framework) WaitNetworkPolicyCreated added in v0.2.2

func (f *Framework) WaitNetworkPolicyCreated(ns string, name string, timeout time.Duration) error

func (*Framework) WaitPodRunning

func (f *Framework) WaitPodRunning(namespace, name string, timeout time.Duration) error

func (*Framework) WaitRunning

func (f *Framework) WaitRunning(timeout time.Duration) error

Jump to

Keyboard shortcuts

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