ibgu

package
v0.0.0-...-d0642ff Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IbguBuilder

type IbguBuilder struct {
	// ibgu Definition, used to create the ibgu object.
	Definition *v1alpha1.ImageBasedGroupUpgrade
	// created ibgu object.
	Object *v1alpha1.ImageBasedGroupUpgrade
	// contains filtered or unexported fields
}

IbguBuilder provides struct for the ibgu object containing connection to the cluster and the ibgu definitions.

func NewIbguBuilder

func NewIbguBuilder(
	apiClient *clients.Settings,
	name string,
	nsname string) *IbguBuilder

NewIbguBuilder creates a new instance of IbguBuilder.

func PullIbgu

func PullIbgu(apiClient *clients.Settings, name, nsname string) (*IbguBuilder, error)

PullIbgu pulls existing ibgu into IbguBuilder struct.

func (*IbguBuilder) Create

func (builder *IbguBuilder) Create() (*IbguBuilder, error)

Create makes an IBGU in the cluster and stores the created object in struct.

func (*IbguBuilder) Delete

func (builder *IbguBuilder) Delete() error

Delete removes the IBGU from the cluster.

func (*IbguBuilder) DeleteAndWait

func (builder *IbguBuilder) DeleteAndWait(timeout time.Duration) (*IbguBuilder, error)

DeleteAndWait deletes the ibgu object and waits until the ibgu is deleted.

func (*IbguBuilder) Exists

func (builder *IbguBuilder) Exists() bool

Exists checks whether the given imagebasedgroupupgrade exists.

func (*IbguBuilder) Get

func (builder *IbguBuilder) Get() (*v1alpha1.ImageBasedGroupUpgrade, error)

Get returns imagebasedgroupupgrade object if found.

func (*IbguBuilder) WaitForCondition

func (builder *IbguBuilder) WaitForCondition(expected metav1.Condition, timeout time.Duration) (*IbguBuilder, error)

WaitForCondition waits until the IBGU has a condition that matches the expected, checking only the Type, Status, Reason, and Message fields. For the message field, it matches if the message contains the expected. Zero fields in the expected condition are ignored.

func (*IbguBuilder) WaitUntilComplete

func (builder *IbguBuilder) WaitUntilComplete(timeout time.Duration) (*IbguBuilder, error)

WaitUntilComplete waits the specified timeout for the IBGU to complete.

func (*IbguBuilder) WaitUntilDeleted

func (builder *IbguBuilder) WaitUntilDeleted(timeout time.Duration) error

WaitUntilDeleted waits for the duration of the defined timeout or until the ibgu is deleted.

func (*IbguBuilder) WithAutoRollbackOnFailure

func (builder *IbguBuilder) WithAutoRollbackOnFailure(initMonitorTimeout int) *IbguBuilder

WithAutoRollbackOnFailure appends the AutoRollbackOnFailure InitMonitorTimeout to the ibuSpec.

func (*IbguBuilder) WithClusterLabelSelectors

func (builder *IbguBuilder) WithClusterLabelSelectors(labels map[string]string) *IbguBuilder

WithClusterLabelSelectors appends labels to the ibgu clusterLabelSelectors.

func (*IbguBuilder) WithOadpContent

func (builder *IbguBuilder) WithOadpContent(name string, namespace string) *IbguBuilder

WithOadpContent appends the oadpContent to the ibuSpec.

func (*IbguBuilder) WithPlan

func (builder *IbguBuilder) WithPlan(actions []string, maxConcurrency int, timeout int) *IbguBuilder

WithPlan appends the plan to the ibgu.

func (*IbguBuilder) WithSeedImageRef

func (builder *IbguBuilder) WithSeedImageRef(seedImage string, seedVersion string) *IbguBuilder

WithSeedImageRef appends the SeedImageRef to the ibuSpec.

Jump to

Keyboard shortcuts

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