framework

package
v0.0.0-...-7eb59c9 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2018 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TestNs         = "testing-habitat-broker"
	BrokerChartDir = "../../charts/habitat-service-broker"
	ReleaseName    = "habitat-service-broker"
)

Variables

This section is empty.

Functions

func ConvertService

func ConvertService(pathToYaml string) (*v1.Service, error)

ConvertService takes in a path to the YAML file containing the manifest. It converts the file to the Service object.

func ConvertServiceBindings

func ConvertServiceBindings(pathToYaml string) (*catalogv1beta1.ServiceBinding, error)

ConvertServiceBindings takes in a path to the YAML file containing the manifest. It converts the file to the Service Binding object.

func ConvertServiceInstances

func ConvertServiceInstances(pathToYaml string) (*catalogv1beta1.ServiceInstance, error)

ConvertServiceInstances takes in a path to the YAML file containing the manifest. It converts the file to the Service Instances object.

Types

type Framework

type Framework struct {
	KubeClient       kubernetes.Interface
	HelmClient       *helm.Client
	CatalogClientset *catalogclientset.Clientset
	ExternalIP       string
	TillerTunnel     *kube.Tunnel
}

func Setup

func Setup(image, kubeconfig, externalIP string) (*Framework, error)

func (*Framework) TearDown

func (f *Framework) TearDown() error

func (*Framework) WaitForClasses

func (f *Framework) WaitForClasses() error

WaitForClasses waits until there's any Cluster Service Class.

func (*Framework) WaitForNoSecrets

func (f *Framework) WaitForNoSecrets(namespace string) error

WaitForNoSecrets waits until there is no secrets except the default token and the habitat-service-broker token.

func (*Framework) WaitForPodReady

func (f *Framework) WaitForPodReady(name, namespace string) error

WaitForPodReady waits until the pod is in a Ready state.

func (*Framework) WaitForServiceBindingDeleted

func (f *Framework) WaitForServiceBindingDeleted(name, namespace string) error

WaitForServiceBindingDeleted waits until the Service Binding is deleted.

func (*Framework) WaitForServiceBindingReady

func (f *Framework) WaitForServiceBindingReady(name, namespace string) error

WaitForServiceBindingReady waits until the Service Binding is in a Ready state.

func (*Framework) WaitForServiceInstanceDeleted

func (f *Framework) WaitForServiceInstanceDeleted(name, namespace string) error

WaitForServiceInstanceDeleted waits until the Service Instance is deleted.

func (*Framework) WaitForServiceInstanceReady

func (f *Framework) WaitForServiceInstanceReady(name, namespace string) error

WaitForServiceInstanceReady waits until the Service Instance is in a Ready state.

Jump to

Keyboard shortcuts

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