Documentation ¶
Index ¶
- Constants
- type Builder
- func (builder *Builder) Exists() bool
- func (builder *Builder) Get() (*imageregistryv1.Config, error)
- func (builder *Builder) GetManagementState() (*operatorv1.ManagementState, error)
- func (builder *Builder) GetStorageConfig() (*imageregistryv1.ImageRegistryConfigStorage, error)
- func (builder *Builder) Update() (*Builder, error)
- func (builder *Builder) WaitForCondition(expected operatorv1.OperatorCondition, timeout time.Duration) (*Builder, error)
- func (builder *Builder) WithManagementState(expectedManagementState operatorv1.ManagementState) *Builder
- func (builder *Builder) WithStorage(expectedStorage imageregistryv1.ImageRegistryConfigStorage) *Builder
Constants ¶
const ( // APIGroup represents nodes.config api group. APIGroup = "imageregistry.operator.openshift.io" // APIVersion represents version of nodes.config api. APIVersion = "v1" // APIKind represents nodes.config api kind. APIKind = "Config" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder struct { // imageRegistry definition, used to create the imageRegistry object. Definition *imageregistryv1.Config // Created imageRegistry object. Object *imageregistryv1.Config // contains filtered or unexported fields }
Builder provides a struct for imageRegistry object from the cluster and a imageRegistry definition.
func (*Builder) Get ¶
func (builder *Builder) Get() (*imageregistryv1.Config, error)
Get fetches existing imageRegistry from cluster.
func (*Builder) GetManagementState ¶
func (builder *Builder) GetManagementState() (*operatorv1.ManagementState, error)
GetManagementState fetches imageRegistry ManagementState.
func (*Builder) GetStorageConfig ¶
func (builder *Builder) GetStorageConfig() (*imageregistryv1.ImageRegistryConfigStorage, error)
GetStorageConfig fetches imageRegistry Storage configuration.
func (*Builder) Update ¶
Update renovates the imageRegistry in the cluster and stores the created object in struct.
func (*Builder) WaitForCondition ¶
func (builder *Builder) WaitForCondition( expected operatorv1.OperatorCondition, timeout time.Duration) (*Builder, error)
WaitForCondition waits until the imageRegistry has a condition that matches the expected, checking only the Type, Status, Reason, and Message fields. For the messages field, it matches if the message contains the expected. Zero value fields in the expected condition are ignored.
func (*Builder) WithManagementState ¶
func (builder *Builder) WithManagementState(expectedManagementState operatorv1.ManagementState) *Builder
WithManagementState sets the imageRegistry operator's management state.
func (*Builder) WithStorage ¶
func (builder *Builder) WithStorage(expectedStorage imageregistryv1.ImageRegistryConfigStorage) *Builder
WithStorage sets the imageRegistry operator's storage.