package
1.12.0-alpha.0
Repository: https://github.com/karmada-io/karmada.git
Documentation: pkg.go.dev

# Functions

CreateCustomResourceDefinitionIfNeed creates a CustomResourceDefinition if the target resource doesn't exist.
CreateNamespace creates given namespace when the namespace is not existing.
CreateOrUpdateAPIService creates a APIService if the target resource doesn't exist.
CreateOrUpdateClusterRole creates a Clusterrole if the target resource doesn't exist.
CreateOrUpdateDeployment creates a Deployment if the target resource doesn't exist.
CreateOrUpdateMutatingWebhookConfiguration creates a MutatingWebhookConfiguration if the target resource doesn't exist.
CreateOrUpdateSecret creates a Sercret if the target resource doesn't exist.
CreateOrUpdateService creates a Service if the target resource doesn't exist.
CreateOrUpdateStatefulSet creates a StatefulSet if the target resource doesn't exist.
CreateOrUpdateValidatingWebhookConfiguration creates a ValidatingWebhookConfiguration if the target resource doesn't exist.
DeleteDeploymentIfHasLabels deletes a Deployment that exists the given labels.
DeleteSecretIfHasLabels deletes a secret that exists the given labels.
DeleteServiceIfHasLabels deletes a service that exists the given labels.
DeleteStatefulSetIfHasLabels deletes a StatefulSet that exists the given labels.
GetService returns service resource with specified name and namespace.
NewAPIRegistrationClient is to create an apiregistration ClientSet.
NewCRDsClient is to create a Clientset.
NewKarmadaWaiter returns a karmada waiter, the rest config is to create crd client or aggregate client.
PatchCustomResourceDefinition patches a crd resource.
TryRunCommand runs a function a maximum of failureThreshold times, and retries on error.

# Constants

APICallRetryInterval defines how long kubeadm should wait before retrying a failed API operation.

# Structs

KarmadaWaiter is an implementation of Waiter that is backed by a Kubernetes client.

# Interfaces

Waiter is an interface for waiting for criteria in Karmada to happen.