test

package
v0.18.0-rc0 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 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(ctx context.Context, name string) *appsv1.DaemonSet

func (*Driver) AssertDeployment

func (d *Driver) AssertDeployment(ctx context.Context, name string) *appsv1.Deployment

func (*Driver) AssertNoDaemonSet

func (d *Driver) AssertNoDaemonSet(ctx context.Context, name string)

func (*Driver) AssertNoDeployment

func (d *Driver) AssertNoDeployment(ctx context.Context, name string)

func (*Driver) AssertNoResource added in v0.16.0

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

func (*Driver) AssertReconcileError

func (d *Driver) AssertReconcileError(ctx context.Context)

func (*Driver) AssertReconcileRequeue

func (d *Driver) AssertReconcileRequeue(ctx context.Context)

func (*Driver) AssertReconcileSuccess

func (d *Driver) AssertReconcileSuccess(ctx context.Context)

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(ctx context.Context, label, value string)

func (*Driver) DoReconcile

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

func (*Driver) GetDaemonSet

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

func (*Driver) GetDeployment

func (d *Driver) GetDeployment(ctx context.Context, 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(ctx context.Context, daemonSet *appsv1.DaemonSet)

func (*Driver) UpdateDaemonSetToReady

func (d *Driver) UpdateDaemonSetToReady(ctx context.Context, daemonSet *appsv1.DaemonSet)

func (*Driver) UpdateDaemonSetToScheduled

func (d *Driver) UpdateDaemonSetToScheduled(ctx context.Context, daemonSet *appsv1.DaemonSet)

func (*Driver) UpdateDeploymentToReady

func (d *Driver) UpdateDeploymentToReady(ctx context.Context, deployment *appsv1.Deployment)

Jump to

Keyboard shortcuts

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