Documentation
¶
Index ¶
- Constants
- func FetchCondition(cr *imageregistryv1.Config, conditionType string) (c operatorapi.OperatorCondition)
- func GenerateDeterministicStorageName(listers *regopclient.StorageListers, additionalInfo ...string) (string, error)
- func GenerateStorageName(listers *regopclient.StorageListers, additionalInfo ...string) (string, error)
- func GetInfrastructure(lister configlisters.InfrastructureLister) (*configv1.Infrastructure, error)
- func GetValueFromSecret(sec *corev1.Secret, key string) (string, error)
- func UpdateCondition(cr *imageregistryv1.Config, conditionType string, ...)
Constants ¶
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 ¶
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.