helpers

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TestClusterOperator

type TestClusterOperator struct {
	configv1.ClusterOperator
}

TestClusterOperator wraps the ClusterOperator type to add helper methods.

func NewTestClusterOperator

func NewTestClusterOperator(co *configv1.ClusterOperator) *TestClusterOperator

NewTestClusterOperator returns a new TestDeployment wrapping the given OpenShift ClusterOperator object.

func (*TestClusterOperator) Copy

Copy returns a deep copy of the wrapped object.

func (*TestClusterOperator) Object

Object returns a copy of the wrapped configv1.ClusterOperator object.

func (*TestClusterOperator) WithConditions

WithConditions returns a copy of the wrapped ClusterOperator object with the status conditions set to the given list.

func (*TestClusterOperator) WithVersion

func (co *TestClusterOperator) WithVersion(v string) *TestClusterOperator

WithVersion returns a copy of the object with the "operator" OperandVersion's version field set to the given value.

type TestDeployment

type TestDeployment struct {
	appsv1.Deployment
}

TestDeployment wraps the appsv1.Deployment type to add helper methods.

func NewTestDeployment

func NewTestDeployment(dep *appsv1.Deployment) *TestDeployment

NewTestDeployment returns a new TestDeployment wrapping the given appsv1.Deployment object.

func (*TestDeployment) Copy

func (d *TestDeployment) Copy() *TestDeployment

Copy returns a pointer to a new TestDeploymentdeep with a deep copy of the originally wrapped appsv1.Deployment object.

func (*TestDeployment) Object

func (d *TestDeployment) Object() *appsv1.Deployment

Object returns a copy of the wrapped appsv1.Deployment object.

func (*TestDeployment) WithAnnotations

func (d *TestDeployment) WithAnnotations(a map[string]string) *TestDeployment

WithAnnotations returns a copy of the object with the annotations set to the given value.

func (*TestDeployment) WithAvailableReplicas

func (d *TestDeployment) WithAvailableReplicas(n int32) *TestDeployment

WithAvailableReplicas returns a copy of the object with the AvailableReplicas field set to the given value.

func (*TestDeployment) WithReleaseVersion

func (d *TestDeployment) WithReleaseVersion(v string) *TestDeployment

WithReleaseVersion returns a copy of the object with the release version annotation set to the given value.

Jump to

Keyboard shortcuts

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