validate

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2020 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Package validate contains code to check objects deployed by the operator as part of an E2E test.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DriverDeployment

func DriverDeployment(client client.Client, k8sver version.Version, namespace string, deployment api.Deployment, resourceVersions map[string]string) (final bool, finalErr error)

DriverDeployment compares all objects as deployed by the operator against the expected objects for a certain deployment spec. deploymentSpec should only have those fields set which are not the defaults. The caller must ensure that the operator is done with creating objects.

resourceVersions is used to track which resource versions were encountered for generated objects. If not nil, the version must not change (i.e. the operator must not update the objects after creating them).

A final error is returned when observing a problem that is not going to go away, like an unexpected update of an object.

func DriverDeploymentEventually

func DriverDeploymentEventually(ctx context.Context, client client.Client, k8sver version.Version, namespace string, deployment api.Deployment, initialCreation bool) error

DriverDeployment compares all objects as deployed by the operator against the expected objects for a certain deployment spec. deploymentSpec should only have those fields set which are not the defaults. This call will wait for the expected objects until the context times out.

Types

This section is empty.

Jump to

Keyboard shortcuts

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