test

package
v0.13.0-rc0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnvMapFrom

func EnvMapFrom(daemonSet *appsv1.DaemonSet) map[string]string

func EnvMapFromVars

func EnvMapFromVars(env []corev1.EnvVar) map[string]string

Types

type Driver

type Driver struct {
	InitClientObjs []client.Object
	Client         client.Client
	Controller     reconcile.Reconciler
	Namespace      string
	ResourceName   string
}

func (*Driver) AssertDaemonSet

func (d *Driver) AssertDaemonSet(name string) *appsv1.DaemonSet

func (*Driver) AssertDeployment

func (d *Driver) AssertDeployment(name string) *appsv1.Deployment

func (*Driver) AssertNoDaemonSet

func (d *Driver) AssertNoDaemonSet(name string)

func (*Driver) AssertNoDeployment

func (d *Driver) AssertNoDeployment(name string)

func (*Driver) AssertReconcileError

func (d *Driver) AssertReconcileError()

func (*Driver) AssertReconcileRequeue

func (d *Driver) AssertReconcileRequeue()

func (*Driver) AssertReconcileSuccess

func (d *Driver) AssertReconcileSuccess()

func (*Driver) AssertUninstallInitContainer

func (d *Driver) AssertUninstallInitContainer(template *corev1.PodTemplateSpec, image string) map[string]string

func (*Driver) AwaitFinalizer

func (d *Driver) AwaitFinalizer(obj client.Object, finalizer string)

func (*Driver) AwaitNoResource added in v0.13.0

func (d *Driver) AwaitNoResource(obj client.Object)

func (*Driver) BeforeEach

func (d *Driver) BeforeEach()

func (*Driver) DeletePods

func (d *Driver) DeletePods(label, value string)

func (*Driver) DoReconcile

func (d *Driver) DoReconcile() (reconcile.Result, error)

func (*Driver) GetDaemonSet

func (d *Driver) GetDaemonSet(name string) (*appsv1.DaemonSet, error)

func (*Driver) GetDeployment

func (d *Driver) GetDeployment(name string) (*appsv1.Deployment, error)

func (*Driver) JustBeforeEach

func (d *Driver) JustBeforeEach()

func (*Driver) NewClient

func (d *Driver) NewClient() client.Client

func (*Driver) NewDaemonSet

func (d *Driver) NewDaemonSet(name string) *appsv1.DaemonSet

func (*Driver) NewDeployment

func (d *Driver) NewDeployment(name string) *appsv1.Deployment

func (*Driver) NewPodWithLabel

func (d *Driver) NewPodWithLabel(label, value string) *corev1.Pod

func (*Driver) UpdateDaemonSetToObserved

func (d *Driver) UpdateDaemonSetToObserved(daemonSet *appsv1.DaemonSet)

func (*Driver) UpdateDaemonSetToReady

func (d *Driver) UpdateDaemonSetToReady(daemonSet *appsv1.DaemonSet)

func (*Driver) UpdateDaemonSetToScheduled

func (d *Driver) UpdateDaemonSetToScheduled(daemonSet *appsv1.DaemonSet)

func (*Driver) UpdateDeploymentToReady

func (d *Driver) UpdateDeploymentToReady(deployment *appsv1.Deployment)

type FailingClient

type FailingClient struct {
	controllerClient.Client
	OnCreate reflect.Type
	OnGet    reflect.Type
	OnUpdate reflect.Type
}

func (*FailingClient) Create

func (*FailingClient) Get

func (*FailingClient) Update

Jump to

Keyboard shortcuts

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