package
0.0.0-20250307185937-c09e9946e1f6
Repository: https://github.com/openshift/cloud-credential-operator.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# Functions

CCODisabledCheck will take the operator configuration ConfigMap and return whether the CCO operator is set to enabled or disabled.
ErrorScrub scrubs cloud error messages destined for CRD status to remove things that change every attempt, such as request IDs, which subsequently cause an infinite update/reconcile loop.
FindClusterOperatorCondition iterates all conditions on a ClusterOperator looking for the specified condition type.
FindCredentialsRequestCondition iterates all conditions on a CredentialsRequest looking for the specified condition type.
GenerateNameWithFieldLimits lets you pass in two strings which will be clipped to their respective maximum lengths.
GenerateUniqueNameWithFieldLimits will take infraName and crName and shorten them if necessary to no longer than their respective MaxLen argument.
No description provided by the author
GetCredentialsRequestCloudType decodes a Spec.ProviderSpec and returns the kind field.
GetEffectiveOperatorMode will take the legacy configmap and the value in the operator config, and return the effective CCO mode and whether there is a conflict between the legacy and operator config values.
GetInfrastructure will return the cluster's Infrastructure object.
No description provided by the author
No description provided by the author
GetOperatorConfiguration will return the value in the operator config (reporting "manual" mode if necessary), and whether there is a conflict between the legacy ConfigMap and CCO config (in the even of a conflict, the operator mode will be reported to reflect the actual value in the operator config).
No description provided by the author
IsTimedTokenCluster answers a two part test to determine if we're running on a cluster enabled for timed access tokens (TAT) like STS enabled cluster on AWS, GCP Workload Identity Federation or Azure AAD Pod Identity.
No description provided by the author
LiveClient returns a client.Client that never uses the cache by virtue of using the APIReader() for all read operations.
No description provided by the author
LoadInfrastructureName loads the cluster Infrastructure config and returns the infra name used to identify this cluster, and tag some cloud objects.
LoadInfrastructureTopology loads the topology from the cluster Infrastructure config.
ModeToAnnotation converts a CCO operator mode to a CCO secret annotation or errors if the mode is not one that converts to a secret annotation.
SetCredentialsRequestCondition sets the condition for the CredentialsRequest and returns the new slice of conditions.
UpdateConditionAlways returns true.
UpdateConditionIfReasonOrMessageChange returns true if there is a change in the reason or the message of the condition.
UpdateConditionNever return false.
UpdateStatus updates the status of the credentials request.
UpgradeableCheck will set the Upgradeable condition based on the mode CCO is in: Mint/Passthrough: check that the root creds secret exists Manual: check that the CCO's config CR has been annotated properly to signal that the user has performed the pre-upgrade credentials tasks.

# Constants

OperatorDisabledDefault holds the default behavior of whether CCO is disabled in the absence of any setting in the ConfigMap.

# Type aliases

UpdateConditionCheck tests whether a condition should be updated from the old condition to the new condition.