Documentation ¶
Index ¶
- type TestClusterOperator
- func (co *TestClusterOperator) Copy() *TestClusterOperator
- func (co *TestClusterOperator) Object() *configv1.ClusterOperator
- func (co *TestClusterOperator) WithConditions(conds []configv1.ClusterOperatorStatusCondition) *TestClusterOperator
- func (co *TestClusterOperator) WithVersion(v string) *TestClusterOperator
- type TestDeployment
- func (d *TestDeployment) Copy() *TestDeployment
- func (d *TestDeployment) Object() *appsv1.Deployment
- func (d *TestDeployment) WithAnnotations(a map[string]string) *TestDeployment
- func (d *TestDeployment) WithAvailableReplicas(n int32) *TestDeployment
- func (d *TestDeployment) WithReleaseVersion(v string) *TestDeployment
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 ¶
func (co *TestClusterOperator) Copy() *TestClusterOperator
Copy returns a deep copy of the wrapped object.
func (*TestClusterOperator) Object ¶
func (co *TestClusterOperator) Object() *configv1.ClusterOperator
Object returns a copy of the wrapped configv1.ClusterOperator object.
func (*TestClusterOperator) WithConditions ¶
func (co *TestClusterOperator) WithConditions(conds []configv1.ClusterOperatorStatusCondition) *TestClusterOperator
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.