helper

package
v0.0.0-...-0b861ab Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanupImageRegistryConfig

func CleanupImageRegistryConfig(client *clients.Settings) error

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.

Jump to

Keyboard shortcuts

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