framework

package
Version: v0.12.0 Latest Latest
Warning

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

Go to latest
Published: May 18, 2020 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OperatorNamespace = "kube-system"
	ContainerOperator = "operator"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Framework

type Framework struct {
	KubeClient clientset.Interface

	Mutex          sync.Mutex
	CertStore      *certstore.CertStore
	KubeConfigPath string
	ClientConfig   *rest.Config
	// contains filtered or unexported fields
}

func New

func New(config *rest.Config) *Framework

func (*Framework) CreateNamespace

func (f *Framework) CreateNamespace(ns *core.Namespace) error

func (*Framework) CreateSecret

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

func (*Framework) DeleteNamespace

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

func (*Framework) DeleteSecret

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

func (*Framework) EnsureNamespace

func (f *Framework) EnsureNamespace() error

func (*Framework) EventuallyNamespaceDeleted

func (f *Framework) EventuallyNamespaceDeleted(ns string) GomegaAsyncAssertion

func (*Framework) Invoke

func (f *Framework) Invoke() *Invocation

func (*Framework) Namespace

func (f *Framework) Namespace() string

func (*Framework) NewNamespace

func (f *Framework) NewNamespace(name string) *core.Namespace

type Invocation

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

func (*Invocation) App

func (fi *Invocation) App() string

func (*Invocation) CreateConfigMap

func (fi *Invocation) CreateConfigMap(configMap *core.ConfigMap) (*core.ConfigMap, error)

func (*Invocation) DeleteAllConfigmaps

func (fi *Invocation) DeleteAllConfigmaps()

func (*Invocation) DeleteAllSecrets

func (fi *Invocation) DeleteAllSecrets()

func (*Invocation) DeleteConfigMap

func (fi *Invocation) DeleteConfigMap(meta metav1.ObjectMeta) error

func (*Invocation) DeleteEndpoints

func (fi *Invocation) DeleteEndpoints(meta metav1.ObjectMeta) error

func (*Invocation) DeleteNamespaceForContext

func (fi *Invocation) DeleteNamespaceForContext(kubeConfigPath string, context string)

func (*Invocation) DeleteService

func (fi *Invocation) DeleteService(meta metav1.ObjectMeta) error

func (*Invocation) EnsureNamespaceForContext

func (fi *Invocation) EnsureNamespaceForContext(kubeConfigPath string, context string)

func (*Invocation) EventuallyConfigMapNotSynced

func (fi *Invocation) EventuallyConfigMapNotSynced(source *core.ConfigMap) GomegaAsyncAssertion

func (*Invocation) EventuallyConfigMapSynced

func (fi *Invocation) EventuallyConfigMapSynced(source *core.ConfigMap) GomegaAsyncAssertion

func (*Invocation) EventuallyConfigMapSyncedToNamespace

func (fi *Invocation) EventuallyConfigMapSyncedToNamespace(source *core.ConfigMap, namespace string) GomegaAsyncAssertion

func (*Invocation) EventuallyNumOfConfigmaps

func (fi *Invocation) EventuallyNumOfConfigmaps(namespace string) GomegaAsyncAssertion

func (*Invocation) EventuallyNumOfConfigmapsForClient

func (fi *Invocation) EventuallyNumOfConfigmapsForClient(client kubernetes.Interface, namespace string) GomegaAsyncAssertion

func (*Invocation) EventuallyNumOfConfigmapsForContext

func (fi *Invocation) EventuallyNumOfConfigmapsForContext(kubeConfigPath string, context string) GomegaAsyncAssertion

func (*Invocation) EventuallyNumOfSecrets

func (fi *Invocation) EventuallyNumOfSecrets(namespace string) GomegaAsyncAssertion

func (*Invocation) EventuallyNumOfSecretsForClient

func (fi *Invocation) EventuallyNumOfSecretsForClient(client kubernetes.Interface, namespace string) GomegaAsyncAssertion

func (*Invocation) EventuallyNumOfSecretsForContext

func (fi *Invocation) EventuallyNumOfSecretsForContext(kubeConfigPath string, context string) GomegaAsyncAssertion

func (*Invocation) EventuallySecretNotSynced

func (fi *Invocation) EventuallySecretNotSynced(source *core.Secret) GomegaAsyncAssertion

func (*Invocation) EventuallySecretSynced

func (fi *Invocation) EventuallySecretSynced(source *core.Secret) GomegaAsyncAssertion

func (*Invocation) EventuallySecretSyncedToNamespace

func (fi *Invocation) EventuallySecretSyncedToNamespace(source *core.Secret, namespace string) GomegaAsyncAssertion

func (*Invocation) EventuallySyncedConfigMapsDeleted

func (fi *Invocation) EventuallySyncedConfigMapsDeleted(source *core.ConfigMap) GomegaAsyncAssertion

func (*Invocation) EventuallySyncedConfigMapsUpdated

func (fi *Invocation) EventuallySyncedConfigMapsUpdated(source *core.ConfigMap) GomegaAsyncAssertion

func (*Invocation) EventuallySyncedSecretsDeleted

func (fi *Invocation) EventuallySyncedSecretsDeleted(source *core.Secret) GomegaAsyncAssertion

func (*Invocation) EventuallySyncedSecretsUpdated

func (fi *Invocation) EventuallySyncedSecretsUpdated(source *core.Secret) GomegaAsyncAssertion

func (*Invocation) NewConfigMap

func (fi *Invocation) NewConfigMap() *core.ConfigMap

func (*Invocation) NewNamespaceWithLabel

func (fi *Invocation) NewNamespaceWithLabel() *core.Namespace

func (*Invocation) NewSecret

func (fi *Invocation) NewSecret() *core.Secret

func (*Invocation) NumberOfNameSpace

func (fi *Invocation) NumberOfNameSpace() int

func (*Invocation) OperatorPod

func (fi *Invocation) OperatorPod() (*core.Pod, error)

func (*Invocation) ReadConfigMapFromRecycleBin

func (fi *Invocation) ReadConfigMapFromRecycleBin(recycleBinLocation string, cm *core.ConfigMap) (*core.ConfigMap, error)

func (*Invocation) RemoveFromOperatorPod

func (fi *Invocation) RemoveFromOperatorPod(dir string) error

func (*Invocation) SecretForWebhookNotifier

func (fi *Invocation) SecretForWebhookNotifier() *core.Secret

func (*Invocation) WaitUntilDeploymentReady

func (fi *Invocation) WaitUntilDeploymentReady(meta metav1.ObjectMeta) error

func (*Invocation) WaitUntilDeploymentTerminated

func (fi *Invocation) WaitUntilDeploymentTerminated(meta metav1.ObjectMeta) error

func (*Invocation) WaitUntilSecretCreated

func (fi *Invocation) WaitUntilSecretCreated(meta metav1.ObjectMeta) error

func (*Invocation) WaitUntilSecretDeleted

func (fi *Invocation) WaitUntilSecretDeleted(meta metav1.ObjectMeta) error

Jump to

Keyboard shortcuts

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