Documentation ¶
Index ¶
- func CleanupImageRegistryConfig(client *clients.Settings) error
- func DoesCIExtraLabelsExists(client *clients.Settings, name string, namespace string, testKey string, ...) (bool, error)
- func GetPolicyEvaluationIntervals(policy *ocm.PolicyBuilder) (string, string, error)
- func RestoreImageRegistry(client *clients.Settings, imageRegistryName string, ...) error
- func WaitForPolicyToExist(client *clients.Settings, name, namespace string, timeout time.Duration) (*ocm.PolicyBuilder, error)
- func WaitForServiceAccountToExist(client *clients.Settings, name, namespace string, timeout time.Duration) (*serviceaccount.Builder, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanupImageRegistryConfig ¶
CleanupImageRegistryConfig deletes the specified resources in the necessary order.
func DoesCIExtraLabelsExists ¶
func DoesCIExtraLabelsExists( client *clients.Settings, name string, namespace string, testKey string, testLabelKey string) (bool, error)
DoesCIExtraLabelsExists looks for a extraLabels on a cluster instance CR and returns true if it exists.
func GetPolicyEvaluationIntervals ¶
func GetPolicyEvaluationIntervals(policy *ocm.PolicyBuilder) (string, string, error)
GetPolicyEvaluationIntervals is used to get the configured evaluation intervals for the specified policy.
func RestoreImageRegistry ¶
func RestoreImageRegistry( client *clients.Settings, imageRegistryName string, imageRegistryConfig *imageregistry.Builder) error
RestoreImageRegistry restores the image registry with the provided name back to imageRegistryConfig, copying over the labels, annotations, and spec from imageRegistryConfig, then waiting until the image registry is available again.
func WaitForPolicyToExist ¶
func WaitForPolicyToExist( client *clients.Settings, name, namespace string, timeout time.Duration) (*ocm.PolicyBuilder, error)
WaitForPolicyToExist waits for up to the specified timeout until the policy exists.
func WaitForServiceAccountToExist ¶
func WaitForServiceAccountToExist( client *clients.Settings, name, namespace string, timeout time.Duration) (*serviceaccount.Builder, error)
WaitForServiceAccountToExist waits for up to the specified timeout until the service account exists.
Types ¶
This section is empty.