imageregistry

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

View Source
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 Pull

func Pull(apiClient *clients.Settings, imageRegistryObjName string) (*Builder, error)

Pull retrieves an existing imageRegistry object from the cluster.

func (*Builder) Exists

func (builder *Builder) Exists() bool

Exists checks whether the given imageRegistry exists.

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

func (builder *Builder) Update() (*Builder, error)

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.

Jump to

Keyboard shortcuts

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