test

package
v0.18.0-m1 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 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 {
	InitScopedClientObjs  []client.Object
	ScopedClient          client.Client
	InitGeneralClientObjs []client.Object
	GeneralClient         client.Client
	InterceptorFuncs      interceptor.Funcs
	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) AssertNoResource added in v0.16.0

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

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) NewDaemonSet

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

func (*Driver) NewDeployment

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

func (*Driver) NewGeneralClient added in v0.14.0

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

func (*Driver) NewPodWithLabel

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

func (*Driver) NewScopedClient added in v0.14.0

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

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)

Jump to

Keyboard shortcuts

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