framework

package
v0.0.0-...-9317e97 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ALL        = "all"
	DEPLOYMENT = "deployment"
	DAEMONSET  = "daemonset"
)

Variables

This section is empty.

Functions

func RunTest

func RunTest(controller, whichController string) bool

Types

type Framework

type Framework struct {
	// contains filtered or unexported fields
}

func New

func New(
	restConfig *rest.Config,
	kubeClient kubernetes.Interface,
) *Framework

func (*Framework) CreateDeployment

func (f *Framework) CreateDeployment(obj *appsv1.Deployment) error

func (*Framework) CreateNamespace

func (f *Framework) CreateNamespace() error

func (*Framework) CreateSecret

func (f *Framework) CreateSecret(obj *core.Secret) error

func (*Framework) DeleteDeployment

func (f *Framework) DeleteDeployment(meta metav1.ObjectMeta) error

func (*Framework) DeleteNamespace

func (f *Framework) DeleteNamespace() error

func (*Framework) DeleteSecret

func (f *Framework) DeleteSecret(obj v1.ObjectMeta) error

func (*Framework) EventuallyDeploymentDeleted

func (f *Framework) EventuallyDeploymentDeleted(meta metav1.ObjectMeta) GomegaAsyncAssertion

func (*Framework) EventuallyImageCloned

func (f *Framework) EventuallyImageCloned(meta metav1.ObjectMeta, registry string) GomegaAsyncAssertion

func (*Framework) Invoke

func (f *Framework) Invoke() *Invocation

func (*Framework) Namespace

func (f *Framework) Namespace() string

type Invocation

type Invocation struct {
	*Framework
	// contains filtered or unexported fields
}

func (*Invocation) Deployment

func (i *Invocation) Deployment(name string) *appsv1.Deployment

func (*Invocation) DockerCredSecret

func (i *Invocation) DockerCredSecret(name string) *core.Secret

func (*Invocation) GetRandomName

func (fi *Invocation) GetRandomName(extraSuffix string) string

Jump to

Keyboard shortcuts

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