util

package
v0.0.0-...-35ad96d Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2026 License: Apache-2.0 Imports: 12 Imported by: 6

Documentation

Index

Constants

View Source
const TestFeatureGateName = "TestFeatureGate"

TestFeatureGateName is a constant use in helper function for testing

Variables

This section is empty.

Functions

func FetchCondition

func FetchCondition(cr *imageregistryv1.Config, conditionType string) (c operatorapi.OperatorCondition)

FetchCondition will return the provided condition.

func GenerateDeterministicStorageName

func GenerateDeterministicStorageName(listers *regopclient.StorageListers, additionalInfo ...string) (string, error)

GenerateDeterministicStorageName generates a deterministic, non-random name for the storage medium. This is used as the first bucket name attempt, making bucket creation idempotent across controller retries. If this name collides with a bucket owned by another AWS account, the caller should return an error (do not fall back to random names).

func GenerateStorageName

func GenerateStorageName(listers *regopclient.StorageListers, additionalInfo ...string) (string, error)

GenerateStorageName generates a unique name for the storage medium that the registry will use

func GetInfrastructure

func GetInfrastructure(lister configlisters.InfrastructureLister) (*configv1.Infrastructure, error)

GetInfrastructure gets information about the cloud platform that the cluster is installed on including the Type, Region, and other platform specific information.

func GetValueFromSecret

func GetValueFromSecret(sec *corev1.Secret, key string) (string, error)

GetValueFromSecret gets value for key in a secret or returns an error if it does not exist

func UpdateCondition

func UpdateCondition(cr *imageregistryv1.Config, conditionType string, status operatorapi.ConditionStatus, reason string, message string)

UpdateCondition will update or add the provided condition.

Types

This section is empty.

Jump to

Keyboard shortcuts

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