framework

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2016 License: Apache-2.0 Imports: 18 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 {
	KubeClient  kubernetes.Interface
	HTTPClient  *http.Client
	MasterHost  string
	Namespace   *v1.Namespace
	OperatorPod *v1.Pod
}

func New

func New(ns, kubeconfig, opImage string) (*Framework, error)

Setup setups a test framework and returns it.

func (*Framework) CreateDeployment

func (f *Framework) CreateDeployment(kclient kubernetes.Interface, ns string, deploy *v1beta1.Deployment) error

func (*Framework) CreatePrometheus

func (f *Framework) CreatePrometheus(e *spec.Prometheus) (*spec.Prometheus, error)

func (*Framework) DeletePrometheus

func (f *Framework) DeletePrometheus(name string) error

func (*Framework) Teardown

func (f *Framework) Teardown() error

Teardown tears down a previously initialized test environment.

func (*Framework) WaitForPodsReady

func (f *Framework) WaitForPodsReady(timeout time.Duration, expectedReplicas int, opts api.ListOptions) (*v1.PodList, error)

WaitForPodsReady waits for a selection of Pods to be running and each container to pass its readiness check.

Jump to

Keyboard shortcuts

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