Documentation ¶
Index ¶
- Constants
- func AppendDeploymentAnnotations(client kubernetes.Interface, deployment *appsv1.Deployment, ...)
- func AssertBindingScheduledClusters(client karmada.Interface, namespace, name string, expectedResults [][]string)
- func CheckDeploymentReadyStatus(deployment *appsv1.Deployment, wantedReplicas int32) bool
- func ClusterNames() []string
- func ClusterNamesWithSyncMode(mode clusterv1alpha1.ClusterSyncMode) []string
- func Clusters() []*clusterv1alpha1.Cluster
- func CreateCRD(client dynamic.Interface, crd *apiextensionsv1.CustomResourceDefinition)
- func CreateClusterOverridePolicy(client karmada.Interface, policy *policyv1alpha1.ClusterOverridePolicy)
- func CreateClusterPropagationPolicy(client karmada.Interface, policy *policyv1alpha1.ClusterPropagationPolicy)
- func CreateClusterRole(client kubernetes.Interface, clusterRole *rbacv1.ClusterRole)
- func CreateClusterRoleBinding(client kubernetes.Interface, clusterRoleBinding *rbacv1.ClusterRoleBinding)
- func CreateConfigMap(client kubernetes.Interface, configMap *corev1.ConfigMap)
- func CreateCronFederatedHPA(client karmada.Interface, fhpa *autoscalingv1alpha1.CronFederatedHPA)
- func CreateDaemonSet(client kubernetes.Interface, daemonSet *appsv1.DaemonSet)
- func CreateDeployment(client kubernetes.Interface, deployment *appsv1.Deployment)
- func CreateFederatedHPA(client karmada.Interface, fhpa *autoscalingv1alpha1.FederatedHPA)
- func CreateFederatedResourceQuota(client karmada.Interface, ...)
- func CreateHPA(client kubernetes.Interface, hpa *autoscalingv2.HorizontalPodAutoscaler)
- func CreateIngress(client kubernetes.Interface, ingress *networkingv1.Ingress)
- func CreateJob(client kubernetes.Interface, job *batchv1.Job)
- func CreateMultiClusterService(client karmada.Interface, mcs *networkingv1alpha1.MultiClusterService)
- func CreateNamespace(client kubernetes.Interface, namespace *corev1.Namespace)
- func CreateOverridePolicy(client karmada.Interface, policy *policyv1alpha1.OverridePolicy)
- func CreatePVC(client kubernetes.Interface, pvc *corev1.PersistentVolumeClaim)
- func CreatePod(client kubernetes.Interface, pod *corev1.Pod)
- func CreatePodDisruptionBudget(client kubernetes.Interface, pdb *policyv1.PodDisruptionBudget)
- func CreatePropagationPolicy(client karmada.Interface, policy *policyv1alpha1.PropagationPolicy)
- func CreateResourceInterpreterCustomization(client karmada.Interface, ...)
- func CreateResourceRegistry(client karmada.Interface, rr *searchv1alpha1.ResourceRegistry)
- func CreateRole(client kubernetes.Interface, role *rbacv1.Role)
- func CreateRoleBinding(client kubernetes.Interface, roleBinding *rbacv1.RoleBinding)
- func CreateSecret(client kubernetes.Interface, secret *corev1.Secret)
- func CreateService(client kubernetes.Interface, service *corev1.Service)
- func CreateServiceAccount(client kubernetes.Interface, serviceaccount *corev1.ServiceAccount)
- func CreateStatefulSet(client kubernetes.Interface, statefulSet *appsv1.StatefulSet)
- func CreateWorkload(client dynamic.Interface, workload *workloadv1alpha1.Workload)
- func CreateWorkloadRebalancer(client karmada.Interface, rebalancer *appsv1alpha1.WorkloadRebalancer)
- func DeleteClusterLabels(client karmada.Interface, clusterName string, labels map[string]string)
- func DeleteResourceInterpreterCustomization(client karmada.Interface, name string)
- func ExtractTargetClustersFrom(c client.Client, deployment *appsv1.Deployment) []string
- func FetchCluster(client karmada.Interface, clusterName string) (*clusterv1alpha1.Cluster, error)
- func GetAnyResourceOrFail(client dynamic.ResourceInterface) *unstructured.Unstructured
- func GetCRD(client dynamic.Interface, name string)
- func GetClusterClient(clusterName string) kubernetes.Interface
- func GetClusterDynamicClient(clusterName string) dynamic.Interface
- func GetClusterNamesFromClusters(clusters []*clusterv1alpha1.Cluster) []string
- func GetJob(client kubernetes.Interface, namespace, name string)
- func GetResourceNames(client dynamic.ResourceInterface) sets.Set[string]
- func GetWorkload(client dynamic.Interface, namespace, name string) *workloadv1alpha1.Workload
- func InitClusterInformation(karmadaClient karmada.Interface, controlPlaneClient client.Client)
- func LoadRESTClientConfig(kubeconfig string, context string) (*rest.Config, error)
- func PatchClusterPropagationPolicy(client karmada.Interface, name string, patch []map[string]interface{}, ...)
- func PatchPropagationPolicy(client karmada.Interface, namespace, name string, ...)
- func RemoveCRD(client dynamic.Interface, name string)
- func RemoveClusterOverridePolicy(client karmada.Interface, name string)
- func RemoveClusterPropagationPolicy(client karmada.Interface, name string)
- func RemoveClusterRole(client kubernetes.Interface, name string)
- func RemoveClusterRoleBinding(client kubernetes.Interface, name string)
- func RemoveConfigMap(client kubernetes.Interface, namespace, name string)
- func RemoveCronFederatedHPA(client karmada.Interface, namespace, name string)
- func RemoveDaemonSet(client kubernetes.Interface, namespace, name string)
- func RemoveDeployment(client kubernetes.Interface, namespace, name string)
- func RemoveFederatedHPA(client karmada.Interface, namespace, name string)
- func RemoveFederatedResourceQuota(client karmada.Interface, namespace, name string)
- func RemoveHPA(client kubernetes.Interface, namespace, name string)
- func RemoveIngress(client kubernetes.Interface, namespace, name string)
- func RemoveJob(client kubernetes.Interface, namespace, name string)
- func RemoveMultiClusterService(client karmada.Interface, namespace, name string)
- func RemoveNamespace(client kubernetes.Interface, name string)
- func RemoveOverridePolicy(client karmada.Interface, namespace, name string)
- func RemovePVC(client kubernetes.Interface, namespace, name string)
- func RemovePod(client kubernetes.Interface, namespace, name string)
- func RemovePodDisruptionBudget(client kubernetes.Interface, namespace, name string)
- func RemovePropagationPolicy(client karmada.Interface, namespace, name string)
- func RemovePropagationPolicyIfExist(client karmada.Interface, namespace, name string)
- func RemoveResourceRegistry(client karmada.Interface, name string)
- func RemoveRole(client kubernetes.Interface, namespace, name string)
- func RemoveRoleBinding(client kubernetes.Interface, namespace, name string)
- func RemoveSecret(client kubernetes.Interface, namespace, name string)
- func RemoveService(client kubernetes.Interface, namespace, name string)
- func RemoveServiceAccount(client kubernetes.Interface, namespace, name string)
- func RemoveStatefulSet(client kubernetes.Interface, namespace, name string)
- func RemoveWorkload(client dynamic.Interface, namespace, name string)
- func RemoveWorkloadRebalancer(client karmada.Interface, name string)
- func SerialContext(text string, args ...interface{}) bool
- func SerialDescribe(text string, args ...interface{}) bool
- func SerialWhen(text string, args ...interface{}) bool
- func SetClusterRegion(c client.Client, clusterName string, regionName string) error
- func UpdateClusterLabels(client karmada.Interface, clusterName string, labels map[string]string)
- func UpdateClusterPropagationPolicy(client karmada.Interface, name string, ...)
- func UpdateClusterPropagationPolicyWithSpec(client karmada.Interface, name string, ...)
- func UpdateClusterStatusCondition(client karmada.Interface, clusterName string, condition metav1.Condition)
- func UpdateConfigMapWithPatch(client kubernetes.Interface, namespace, name string, ...)
- func UpdateCronFederatedHPAWithRule(client karmada.Interface, namespace, name string, ...)
- func UpdateDeploymentAnnotations(client kubernetes.Interface, deployment *appsv1.Deployment, ...)
- func UpdateDeploymentLabels(client kubernetes.Interface, deployment *appsv1.Deployment, ...)
- func UpdateDeploymentPaused(client kubernetes.Interface, deployment *appsv1.Deployment, paused bool)
- func UpdateDeploymentReplicas(client kubernetes.Interface, deployment *appsv1.Deployment, replicas int32)
- func UpdateDeploymentServiceAccountName(client kubernetes.Interface, deployment *appsv1.Deployment, ...)
- func UpdateDeploymentVolumes(client kubernetes.Interface, deployment *appsv1.Deployment, ...)
- func UpdateFederatedResourceQuotaWithPatch(client karmada.Interface, namespace, name string, ...)
- func UpdateHPAWithMinReplicas(client kubernetes.Interface, namespace, name string, minReplicas int32)
- func UpdateJobWithPatchBytes(client kubernetes.Interface, namespace, name string, patchBytes []byte, ...)
- func UpdateMultiClusterService(client karmada.Interface, mcs *networkingv1alpha1.MultiClusterService)
- func UpdateNamespaceLabels(client kubernetes.Interface, namespace *corev1.Namespace, ...)
- func UpdatePodWithPatch(client kubernetes.Interface, namespace, name string, ...)
- func UpdatePropagationPolicyWithSpec(client karmada.Interface, namespace, name string, ...)
- func UpdateResourceRegistry(client karmada.Interface, rr *searchv1alpha1.ResourceRegistry)
- func UpdateServiceWithPatch(client kubernetes.Interface, namespace, name string, ...)
- func UpdateStatefulSetReplicas(client kubernetes.Interface, statefulSet *appsv1.StatefulSet, replicas int32)
- func UpdateWorkload(client dynamic.Interface, workload *workloadv1alpha1.Workload, ...)
- func UpdateWorkloadRebalancer(client karmada.Interface, name string, ...)
- func WaitCRDDisappearedOnClusters(clusters []string, crdName string)
- func WaitCRDFitWith(client dynamic.Interface, crdName string, ...)
- func WaitCRDPresentOnClusters(client karmada.Interface, clusters []string, crdAPIVersion, crdKind string)
- func WaitClusterFitWith(c client.Client, clusterName string, ...)
- func WaitClusterResourceBindingFitWith(client karmada.Interface, name string, ...)
- func WaitClusterRoleBindingDisappearOnCluster(cluster, name string)
- func WaitClusterRoleBindingDisappearOnClusters(clusters []string, name string)
- func WaitClusterRoleBindingPresentOnClusterFitWith(cluster, name string, ...)
- func WaitClusterRoleBindingPresentOnClustersFitWith(clusters []string, name string, ...)
- func WaitClusterRoleDisappearOnCluster(cluster, name string)
- func WaitClusterRoleDisappearOnClusters(clusters []string, name string)
- func WaitClusterRoleGetByClientFitWith(client kubernetes.Interface, name string, ...)
- func WaitClusterRolePresentOnClusterFitWith(cluster, name string, fit func(clusterRole *rbacv1.ClusterRole) bool)
- func WaitClusterRolePresentOnClustersFitWith(clusters []string, name string, fit func(clusterRole *rbacv1.ClusterRole) bool)
- func WaitConfigMapDisappearOnCluster(cluster, namespace, name string)
- func WaitConfigMapDisappearOnClusters(clusters []string, namespace, name string)
- func WaitConfigMapPresentOnClusterFitWith(cluster, namespace, name string, fit func(configmap *corev1.ConfigMap) bool)
- func WaitConfigMapPresentOnClustersFitWith(clusters []string, namespace, name string, ...)
- func WaitDeploymentDisappearOnCluster(cluster, namespace, name string)
- func WaitDeploymentDisappearOnClusters(clusters []string, namespace, name string)
- func WaitDeploymentFitWith(client kubernetes.Interface, namespace, name string, ...)
- func WaitDeploymentGetByClientFitWith(client kubernetes.Interface, namespace, name string, ...)
- func WaitDeploymentPresentOnClusterFitWith(cluster, namespace, name string, fit func(deployment *appsv1.Deployment) bool)
- func WaitDeploymentPresentOnClustersFitWith(clusters []string, namespace, name string, ...)
- func WaitDeploymentReplicasFitWith(clusters []string, namespace, name string, expectReplicas int)
- func WaitDeploymentStatus(client kubernetes.Interface, deployment *appsv1.Deployment, replicas int32)
- func WaitEventFitWith(kubeClient kubernetes.Interface, namespace string, involvedObj string, ...)
- func WaitFederatedResourceQuotaCollectStatus(client karmada.Interface, namespace, name string)
- func WaitForWorkToDisappear(client karmada.Interface, namespace, name string)
- func WaitGracefulEvictionTasksDone(client karmada.Interface, namespace, name string)
- func WaitJobDisappearOnCluster(cluster, namespace, name string)
- func WaitJobDisappearOnClusters(clusters []string, namespace, name string)
- func WaitJobPresentOnClusterFitWith(cluster, namespace, name string, fit func(job *batchv1.Job) bool)
- func WaitJobPresentOnClustersFitWith(clusters []string, namespace, name string, fit func(job *batchv1.Job) bool)
- func WaitMultiClusterServicePresentOnClustersFitWith(client karmada.Interface, namespace, name string, ...)
- func WaitNamespaceDisappearOnCluster(cluster, name string)
- func WaitNamespaceDisappearOnClusters(clusters []string, name string)
- func WaitNamespacePresentOnCluster(cluster, name string)
- func WaitNamespacePresentOnClusterByClient(client kubernetes.Interface, name string)
- func WaitNamespacePresentOnClusters(clusters []string, name string)
- func WaitPVCDisappearOnCluster(cluster, namespace, name string)
- func WaitPVCDisappearOnClusters(clusters []string, namespace, name string)
- func WaitPVCPresentOnClusterFitWith(cluster, namespace, name string, ...)
- func WaitPVCPresentOnClustersFitWith(clusters []string, namespace, name string, ...)
- func WaitPodDisappearOnCluster(cluster, namespace, name string)
- func WaitPodDisappearOnClusters(clusters []string, namespace, name string)
- func WaitPodMetricsReady(kubeClient kubernetes.Interface, karmadaClient karmada.Interface, ...)
- func WaitPodPresentOnClusterFitWith(cluster, namespace, name string, fit func(pod *corev1.Pod) bool)
- func WaitPodPresentOnClustersFitWith(clusters []string, namespace, name string, fit func(pod *corev1.Pod) bool)
- func WaitPropagationPolicyFitWith(client karmada.Interface, namespace, name string, ...)
- func WaitRebalancerDisappear(client karmada.Interface, name string)
- func WaitRebalancerObservedWorkloads(client karmada.Interface, name string, ...)
- func WaitResourceBindingFitWith(client karmada.Interface, namespace, name string, ...)
- func WaitResourceQuotaDisappearOnCluster(cluster, namespace, name string)
- func WaitResourceQuotaDisappearOnClusters(clusters []string, namespace, name string)
- func WaitResourceQuotaPresentOnCluster(cluster, namespace, name string)
- func WaitResourceQuotaPresentOnClusters(clusters []string, namespace, name string)
- func WaitRoleBindingDisappearOnCluster(cluster, namespace, name string)
- func WaitRoleBindingDisappearOnClusters(clusters []string, namespace, name string)
- func WaitRoleBindingPresentOnClusterFitWith(cluster, namespace, name string, ...)
- func WaitRoleBindingPresentOnClustersFitWith(clusters []string, namespace, name string, ...)
- func WaitRoleDisappearOnCluster(cluster, namespace, name string)
- func WaitRoleDisappearOnClusters(clusters []string, namespace, name string)
- func WaitRolePresentOnClusterFitWith(cluster, namespace, name string, fit func(role *rbacv1.Role) bool)
- func WaitRolePresentOnClustersFitWith(clusters []string, namespace, name string, fit func(role *rbacv1.Role) bool)
- func WaitSecretDisappearOnCluster(cluster, namespace, name string)
- func WaitSecretDisappearOnClusters(clusters []string, namespace, name string)
- func WaitSecretPresentOnClusterFitWith(cluster, namespace, name string, fit func(secret *corev1.Secret) bool)
- func WaitSecretPresentOnClustersFitWith(clusters []string, namespace, name string, ...)
- func WaitServiceAccountDisappearOnCluster(cluster, namespace, name string)
- func WaitServiceAccountDisappearOnClusters(clusters []string, namespace, name string)
- func WaitServiceAccountPresentOnClusterFitWith(cluster, namespace, name string, fit func(sa *corev1.ServiceAccount) bool)
- func WaitServiceAccountPresentOnClustersFitWith(clusters []string, namespace, name string, ...)
- func WaitServiceDisappearOnCluster(cluster, namespace, name string)
- func WaitServiceDisappearOnClusters(clusters []string, namespace, name string)
- func WaitServicePresentOnClusterFitWith(cluster, namespace, name string, fit func(service *corev1.Service) bool)
- func WaitServicePresentOnClustersFitWith(clusters []string, namespace, name string, ...)
- func WaitWorkloadDisappearOnCluster(cluster, namespace, name string)
- func WaitWorkloadDisappearOnClusters(clusters []string, namespace, name string)
- func WaitWorkloadPresentOnClusterFitWith(cluster, namespace, name string, ...)
- func WaitWorkloadPresentOnClustersFitWith(clusters []string, namespace, name string, ...)
- type KarmadactlBuilder
- type TestKubeconfig
Constants ¶
const (
// MinimumCluster represents the minimum number of member clusters to run E2E test.
MinimumCluster = 2
)
Variables ¶
This section is empty.
Functions ¶
func AppendDeploymentAnnotations ¶ added in v1.10.0
func AppendDeploymentAnnotations(client kubernetes.Interface, deployment *appsv1.Deployment, annotations map[string]string)
AppendDeploymentAnnotations append deployment's annotations.
func AssertBindingScheduledClusters ¶ added in v1.10.0
func AssertBindingScheduledClusters(client karmada.Interface, namespace, name string, expectedResults [][]string)
AssertBindingScheduledClusters wait deployment present on member clusters sync with fit func. @expectedResults contains multiple possible results about expected clusters.
func CheckDeploymentReadyStatus ¶ added in v1.2.0
func CheckDeploymentReadyStatus(deployment *appsv1.Deployment, wantedReplicas int32) bool
CheckDeploymentReadyStatus check the deployment status By checking the replicas
func ClusterNames ¶
func ClusterNames() []string
ClusterNames will return all member clusters' names we have.
func ClusterNamesWithSyncMode ¶ added in v1.3.0
func ClusterNamesWithSyncMode(mode clusterv1alpha1.ClusterSyncMode) []string
ClusterNamesWithSyncMode will return member clusters' names which matches the sync mode.
func Clusters ¶
func Clusters() []*clusterv1alpha1.Cluster
Clusters will return all member clusters we have.
func CreateCRD ¶
func CreateCRD(client dynamic.Interface, crd *apiextensionsv1.CustomResourceDefinition)
CreateCRD create CustomResourceDefinition with dynamic client.
func CreateClusterOverridePolicy ¶ added in v1.1.6
func CreateClusterOverridePolicy(client karmada.Interface, policy *policyv1alpha1.ClusterOverridePolicy)
CreateClusterOverridePolicy create ClusterOverridePolicy with karmada client.
func CreateClusterPropagationPolicy ¶
func CreateClusterPropagationPolicy(client karmada.Interface, policy *policyv1alpha1.ClusterPropagationPolicy)
CreateClusterPropagationPolicy create ClusterPropagationPolicy with karmada client.
func CreateClusterRole ¶ added in v1.2.0
func CreateClusterRole(client kubernetes.Interface, clusterRole *rbacv1.ClusterRole)
CreateClusterRole create clusterRole.
func CreateClusterRoleBinding ¶ added in v1.2.0
func CreateClusterRoleBinding(client kubernetes.Interface, clusterRoleBinding *rbacv1.ClusterRoleBinding)
CreateClusterRoleBinding create clusterRoleBinding.
func CreateConfigMap ¶ added in v1.2.0
func CreateConfigMap(client kubernetes.Interface, configMap *corev1.ConfigMap)
CreateConfigMap create ConfigMap.
func CreateCronFederatedHPA ¶ added in v1.7.0
func CreateCronFederatedHPA(client karmada.Interface, fhpa *autoscalingv1alpha1.CronFederatedHPA)
CreateCronFederatedHPA create CronFederatedHPA with karmada client.
func CreateDaemonSet ¶ added in v1.2.0
func CreateDaemonSet(client kubernetes.Interface, daemonSet *appsv1.DaemonSet)
CreateDaemonSet create DaemonSet.
func CreateDeployment ¶
func CreateDeployment(client kubernetes.Interface, deployment *appsv1.Deployment)
CreateDeployment create Deployment.
func CreateFederatedHPA ¶ added in v1.7.0
func CreateFederatedHPA(client karmada.Interface, fhpa *autoscalingv1alpha1.FederatedHPA)
CreateFederatedHPA create FederatedHPA with karmada client.
func CreateFederatedResourceQuota ¶ added in v1.2.0
func CreateFederatedResourceQuota(client karmada.Interface, federatedResourceQuota *policyv1alpha1.FederatedResourceQuota)
CreateFederatedResourceQuota create FederatedResourceQuota with karmada client.
func CreateHPA ¶ added in v1.8.0
func CreateHPA(client kubernetes.Interface, hpa *autoscalingv2.HorizontalPodAutoscaler)
CreateHPA create HPA.
func CreateIngress ¶ added in v1.2.0
func CreateIngress(client kubernetes.Interface, ingress *networkingv1.Ingress)
CreateIngress create Ingress.
func CreateJob ¶
func CreateJob(client kubernetes.Interface, job *batchv1.Job)
CreateJob create Job.
func CreateMultiClusterService ¶ added in v1.8.0
func CreateMultiClusterService(client karmada.Interface, mcs *networkingv1alpha1.MultiClusterService)
CreateMultiClusterService creates MultiClusterService with karmada client.
func CreateNamespace ¶ added in v1.0.0
func CreateNamespace(client kubernetes.Interface, namespace *corev1.Namespace)
CreateNamespace create Namespace.
func CreateOverridePolicy ¶ added in v1.0.0
func CreateOverridePolicy(client karmada.Interface, policy *policyv1alpha1.OverridePolicy)
CreateOverridePolicy create OverridePolicy with karmada client.
func CreatePVC ¶ added in v1.3.0
func CreatePVC(client kubernetes.Interface, pvc *corev1.PersistentVolumeClaim)
CreatePVC create PersistentVolumeClaim.
func CreatePod ¶ added in v1.0.0
func CreatePod(client kubernetes.Interface, pod *corev1.Pod)
CreatePod create Pod.
func CreatePodDisruptionBudget ¶ added in v1.5.0
func CreatePodDisruptionBudget(client kubernetes.Interface, pdb *policyv1.PodDisruptionBudget)
CreatePodDisruptionBudget creates PodDisruptionBudget.
func CreatePropagationPolicy ¶
func CreatePropagationPolicy(client karmada.Interface, policy *policyv1alpha1.PropagationPolicy)
CreatePropagationPolicy create PropagationPolicy with karmada client.
func CreateResourceInterpreterCustomization ¶ added in v1.4.0
func CreateResourceInterpreterCustomization(client karmada.Interface, customization *configv1alpha1.ResourceInterpreterCustomization)
CreateResourceInterpreterCustomization creates ResourceInterpreterCustomization with karmada client.
func CreateResourceRegistry ¶ added in v1.3.0
func CreateResourceRegistry(client karmada.Interface, rr *searchv1alpha1.ResourceRegistry)
CreateResourceRegistry create ResourceRegistry with karmada client.
func CreateRole ¶ added in v1.4.0
func CreateRole(client kubernetes.Interface, role *rbacv1.Role)
CreateRole create role.
func CreateRoleBinding ¶ added in v1.4.0
func CreateRoleBinding(client kubernetes.Interface, roleBinding *rbacv1.RoleBinding)
CreateRoleBinding create roleBinding.
func CreateSecret ¶ added in v1.2.0
func CreateSecret(client kubernetes.Interface, secret *corev1.Secret)
CreateSecret create Secret.
func CreateService ¶ added in v1.0.0
func CreateService(client kubernetes.Interface, service *corev1.Service)
CreateService create Service.
func CreateServiceAccount ¶ added in v1.2.0
func CreateServiceAccount(client kubernetes.Interface, serviceaccount *corev1.ServiceAccount)
CreateServiceAccount create serviceaccount.
func CreateStatefulSet ¶ added in v1.2.0
func CreateStatefulSet(client kubernetes.Interface, statefulSet *appsv1.StatefulSet)
CreateStatefulSet create StatefulSet.
func CreateWorkload ¶ added in v1.0.0
func CreateWorkload(client dynamic.Interface, workload *workloadv1alpha1.Workload)
CreateWorkload creates Workload with dynamic client
func CreateWorkloadRebalancer ¶ added in v1.10.0
func CreateWorkloadRebalancer(client karmada.Interface, rebalancer *appsv1alpha1.WorkloadRebalancer)
CreateWorkloadRebalancer create WorkloadRebalancer with karmada client.
func DeleteClusterLabels ¶ added in v1.3.3
DeleteClusterLabels deletes cluster labels if it exists.
func DeleteResourceInterpreterCustomization ¶ added in v1.4.0
DeleteResourceInterpreterCustomization deletes ResourceInterpreterCustomization with karmada client.
func ExtractTargetClustersFrom ¶ added in v1.0.0
func ExtractTargetClustersFrom(c client.Client, deployment *appsv1.Deployment) []string
ExtractTargetClustersFrom extract the target cluster names from deployment's related resourceBinding Information.
func FetchCluster ¶ added in v1.4.0
FetchCluster will fetch member cluster by name.
func GetAnyResourceOrFail ¶ added in v1.3.0
func GetAnyResourceOrFail(client dynamic.ResourceInterface) *unstructured.Unstructured
GetAnyResourceOrFail list resources and return anyone. Failed if listing empty.
func GetClusterClient ¶
func GetClusterClient(clusterName string) kubernetes.Interface
GetClusterClient get cluster client
func GetClusterDynamicClient ¶
GetClusterDynamicClient get cluster dynamicClient
func GetClusterNamesFromClusters ¶
func GetClusterNamesFromClusters(clusters []*clusterv1alpha1.Cluster) []string
GetClusterNamesFromClusters will get Clusters' names form Clusters Object.
func GetResourceNames ¶ added in v1.3.0
func GetResourceNames(client dynamic.ResourceInterface) sets.Set[string]
GetResourceNames list resources and return their names.
func GetWorkload ¶ added in v1.0.0
func GetWorkload(client dynamic.Interface, namespace, name string) *workloadv1alpha1.Workload
GetWorkload gets Workload with dynamic client.
func InitClusterInformation ¶
InitClusterInformation init the E2E test's cluster information.
func LoadRESTClientConfig ¶ added in v1.4.0
LoadRESTClientConfig creates a rest.Config using the passed kubeconfig. If context is empty, current context in kubeconfig will be used.
func PatchClusterPropagationPolicy ¶ added in v1.5.0
func PatchClusterPropagationPolicy(client karmada.Interface, name string, patch []map[string]interface{}, patchType types.PatchType)
PatchClusterPropagationPolicy patch ClusterPropagationPolicy with karmada client.
func PatchPropagationPolicy ¶ added in v1.2.0
func PatchPropagationPolicy(client karmada.Interface, namespace, name string, patch []map[string]interface{}, patchType types.PatchType)
PatchPropagationPolicy patch PropagationPolicy with karmada client.
func RemoveClusterOverridePolicy ¶ added in v1.1.6
RemoveClusterOverridePolicy delete ClusterOverridePolicy with karmada client.
func RemoveClusterPropagationPolicy ¶
RemoveClusterPropagationPolicy delete ClusterPropagationPolicy with karmada client.
func RemoveClusterRole ¶ added in v1.2.0
func RemoveClusterRole(client kubernetes.Interface, name string)
RemoveClusterRole delete clusterRole.
func RemoveClusterRoleBinding ¶ added in v1.2.0
func RemoveClusterRoleBinding(client kubernetes.Interface, name string)
RemoveClusterRoleBinding delete clusterRoleBinding.
func RemoveConfigMap ¶ added in v1.2.0
func RemoveConfigMap(client kubernetes.Interface, namespace, name string)
RemoveConfigMap delete ConfigMap.
func RemoveCronFederatedHPA ¶ added in v1.7.0
RemoveCronFederatedHPA delete CronFederatedHPA with karmada client.
func RemoveDaemonSet ¶ added in v1.2.0
func RemoveDaemonSet(client kubernetes.Interface, namespace, name string)
RemoveDaemonSet delete DaemonSet.
func RemoveDeployment ¶
func RemoveDeployment(client kubernetes.Interface, namespace, name string)
RemoveDeployment delete Deployment.
func RemoveFederatedHPA ¶ added in v1.7.0
RemoveFederatedHPA delete FederatedHPA with karmada client.
func RemoveFederatedResourceQuota ¶ added in v1.2.0
RemoveFederatedResourceQuota delete FederatedResourceQuota with karmada client.
func RemoveHPA ¶ added in v1.8.0
func RemoveHPA(client kubernetes.Interface, namespace, name string)
RemoveHPA delete HPA.
func RemoveIngress ¶ added in v1.2.0
func RemoveIngress(client kubernetes.Interface, namespace, name string)
RemoveIngress delete Ingress.
func RemoveJob ¶
func RemoveJob(client kubernetes.Interface, namespace, name string)
RemoveJob delete Job.
func RemoveMultiClusterService ¶ added in v1.8.0
RemoveMultiClusterService deletes MultiClusterService with karmada client.
func RemoveNamespace ¶ added in v1.0.0
func RemoveNamespace(client kubernetes.Interface, name string)
RemoveNamespace delete Namespace.
func RemoveOverridePolicy ¶ added in v1.0.0
RemoveOverridePolicy delete OverridePolicy with karmada client.
func RemovePVC ¶ added in v1.3.0
func RemovePVC(client kubernetes.Interface, namespace, name string)
RemovePVC delete PersistentVolumeClaim.
func RemovePod ¶ added in v1.0.0
func RemovePod(client kubernetes.Interface, namespace, name string)
RemovePod delete Pod.
func RemovePodDisruptionBudget ¶ added in v1.5.0
func RemovePodDisruptionBudget(client kubernetes.Interface, namespace, name string)
RemovePodDisruptionBudget deletes PodDisruptionBudget.
func RemovePropagationPolicy ¶
RemovePropagationPolicy delete PropagationPolicy with karmada client.
func RemovePropagationPolicyIfExist ¶ added in v1.10.0
RemovePropagationPolicyIfExist delete PropagationPolicy if it exists with karmada client.
func RemoveResourceRegistry ¶ added in v1.3.0
RemoveResourceRegistry delete ResourceRegistry with karmada client.
func RemoveRole ¶ added in v1.4.0
func RemoveRole(client kubernetes.Interface, namespace, name string)
RemoveRole delete role.
func RemoveRoleBinding ¶ added in v1.4.0
func RemoveRoleBinding(client kubernetes.Interface, namespace, name string)
RemoveRoleBinding delete roleBinding.
func RemoveSecret ¶ added in v1.2.0
func RemoveSecret(client kubernetes.Interface, namespace, name string)
RemoveSecret delete Secret.
func RemoveService ¶ added in v1.0.0
func RemoveService(client kubernetes.Interface, namespace, name string)
RemoveService delete Service.
func RemoveServiceAccount ¶ added in v1.2.0
func RemoveServiceAccount(client kubernetes.Interface, namespace, name string)
RemoveServiceAccount delete serviceaccount.
func RemoveStatefulSet ¶ added in v1.2.0
func RemoveStatefulSet(client kubernetes.Interface, namespace, name string)
RemoveStatefulSet delete StatefulSet.
func RemoveWorkload ¶ added in v1.0.0
RemoveWorkload deletes Workload with dynamic client.
func RemoveWorkloadRebalancer ¶ added in v1.10.0
RemoveWorkloadRebalancer delete WorkloadRebalancer.
func SerialContext ¶ added in v1.2.0
SerialContext is wrapper function for ginkgo.Context with ginkgo.Serial decorator.
func SerialDescribe ¶ added in v1.2.0
SerialDescribe is wrapper function for ginkgo.Describe with ginkgo.Serial decorator.
func SerialWhen ¶ added in v1.2.0
SerialWhen is wrapper function for ginkgo.When with ginkgo.Serial decorator.
func SetClusterRegion ¶ added in v1.5.0
SetClusterRegion sets .Spec.Region field for Cluster object.
func UpdateClusterLabels ¶ added in v1.3.3
UpdateClusterLabels updates cluster labels.
func UpdateClusterPropagationPolicy ¶ added in v1.4.0
func UpdateClusterPropagationPolicy(client karmada.Interface, name string, resourceSelectors []policyv1alpha1.ResourceSelector)
UpdateClusterPropagationPolicy update ClusterPropagationPolicy resourceSelectors with karmada client.
func UpdateClusterPropagationPolicyWithSpec ¶ added in v1.5.0
func UpdateClusterPropagationPolicyWithSpec(client karmada.Interface, name string, policySpec policyv1alpha1.PropagationSpec)
UpdateClusterPropagationPolicyWithSpec update PropagationSpec with karmada client.
func UpdateClusterStatusCondition ¶ added in v1.11.0
func UpdateClusterStatusCondition(client karmada.Interface, clusterName string, condition metav1.Condition)
UpdateClusterStatusCondition updates the target cluster status condition.
func UpdateConfigMapWithPatch ¶ added in v1.2.0
func UpdateConfigMapWithPatch(client kubernetes.Interface, namespace, name string, patch []map[string]interface{}, patchType types.PatchType)
UpdateConfigMapWithPatch update configmap with patch bytes.
func UpdateCronFederatedHPAWithRule ¶ added in v1.7.0
func UpdateCronFederatedHPAWithRule(client karmada.Interface, namespace, name string, rule []autoscalingv1alpha1.CronFederatedHPARule)
UpdateCronFederatedHPAWithRule update CronFederatedHPA with karmada client.
func UpdateDeploymentAnnotations ¶ added in v1.0.0
func UpdateDeploymentAnnotations(client kubernetes.Interface, deployment *appsv1.Deployment, annotations map[string]string)
UpdateDeploymentAnnotations update deployment's annotations.
func UpdateDeploymentLabels ¶ added in v1.8.0
func UpdateDeploymentLabels(client kubernetes.Interface, deployment *appsv1.Deployment, labels map[string]string)
UpdateDeploymentLabels update deployment's labels.
func UpdateDeploymentPaused ¶ added in v1.4.0
func UpdateDeploymentPaused(client kubernetes.Interface, deployment *appsv1.Deployment, paused bool)
UpdateDeploymentPaused update deployment's paused.
func UpdateDeploymentReplicas ¶
func UpdateDeploymentReplicas(client kubernetes.Interface, deployment *appsv1.Deployment, replicas int32)
UpdateDeploymentReplicas update deployment's replicas.
func UpdateDeploymentServiceAccountName ¶ added in v1.3.5
func UpdateDeploymentServiceAccountName(client kubernetes.Interface, deployment *appsv1.Deployment, serviceAccountName string)
UpdateDeploymentServiceAccountName update deployment's serviceAccountName.
func UpdateDeploymentVolumes ¶ added in v1.2.0
func UpdateDeploymentVolumes(client kubernetes.Interface, deployment *appsv1.Deployment, volumes []corev1.Volume)
UpdateDeploymentVolumes update deployment's volumes.
func UpdateFederatedResourceQuotaWithPatch ¶ added in v1.2.0
func UpdateFederatedResourceQuotaWithPatch(client karmada.Interface, namespace, name string, patch []map[string]interface{}, patchType types.PatchType)
UpdateFederatedResourceQuotaWithPatch update FederatedResourceQuota with patch bytes.
func UpdateHPAWithMinReplicas ¶ added in v1.10.0
func UpdateHPAWithMinReplicas(client kubernetes.Interface, namespace, name string, minReplicas int32)
UpdateHPAWithMinReplicas update HPA with replicas.
func UpdateJobWithPatchBytes ¶ added in v1.0.0
func UpdateJobWithPatchBytes(client kubernetes.Interface, namespace, name string, patchBytes []byte, patchType types.PatchType)
UpdateJobWithPatchBytes update job with patch bytes.
func UpdateMultiClusterService ¶ added in v1.8.0
func UpdateMultiClusterService(client karmada.Interface, mcs *networkingv1alpha1.MultiClusterService)
UpdateMultiClusterService updates MultiClusterService with karmada client.
func UpdateNamespaceLabels ¶ added in v1.8.0
func UpdateNamespaceLabels(client kubernetes.Interface, namespace *corev1.Namespace, labels map[string]string)
UpdateNamespaceLabels update namespace's labels.
func UpdatePodWithPatch ¶ added in v1.0.0
func UpdatePodWithPatch(client kubernetes.Interface, namespace, name string, patch []map[string]interface{}, patchType types.PatchType)
UpdatePodWithPatch update pod with patch bytes.
func UpdatePropagationPolicyWithSpec ¶ added in v1.5.0
func UpdatePropagationPolicyWithSpec(client karmada.Interface, namespace, name string, policySpec policyv1alpha1.PropagationSpec)
UpdatePropagationPolicyWithSpec update PropagationSpec with karmada client.
func UpdateResourceRegistry ¶ added in v1.3.0
func UpdateResourceRegistry(client karmada.Interface, rr *searchv1alpha1.ResourceRegistry)
UpdateResourceRegistry patch ResourceRegistry with karmada client.
func UpdateServiceWithPatch ¶ added in v1.0.0
func UpdateServiceWithPatch(client kubernetes.Interface, namespace, name string, patch []map[string]interface{}, patchType types.PatchType)
UpdateServiceWithPatch update service with patch bytes.
func UpdateStatefulSetReplicas ¶ added in v1.2.0
func UpdateStatefulSetReplicas(client kubernetes.Interface, statefulSet *appsv1.StatefulSet, replicas int32)
UpdateStatefulSetReplicas update statefulSet's replicas.
func UpdateWorkload ¶ added in v1.0.0
func UpdateWorkload(client dynamic.Interface, workload *workloadv1alpha1.Workload, clusterName string, subresources ...string)
UpdateWorkload updates Workload with dynamic client
func UpdateWorkloadRebalancer ¶ added in v1.10.0
func UpdateWorkloadRebalancer(client karmada.Interface, name string, workloads *[]appsv1alpha1.ObjectReference, ttl *int32)
UpdateWorkloadRebalancer updates WorkloadRebalancer with karmada client. if workloads/ttl is a nil pointer, keep previous value unchanged.
func WaitCRDDisappearedOnClusters ¶
WaitCRDDisappearedOnClusters wait CustomResourceDefinition disappear on clusters until timeout.
func WaitCRDFitWith ¶ added in v1.9.0
func WaitCRDFitWith(client dynamic.Interface, crdName string, fit func(crd *apiextensionsv1.CustomResourceDefinition) bool)
WaitCRDFitWith wait crd fit with util timeout
func WaitCRDPresentOnClusters ¶
func WaitCRDPresentOnClusters(client karmada.Interface, clusters []string, crdAPIVersion, crdKind string)
WaitCRDPresentOnClusters wait CustomResourceDefinition present on clusters until timeout.
func WaitClusterFitWith ¶ added in v1.0.0
func WaitClusterFitWith(c client.Client, clusterName string, fit func(cluster *clusterv1alpha1.Cluster) bool)
WaitClusterFitWith wait cluster fit with fit func.
func WaitClusterResourceBindingFitWith ¶ added in v1.9.0
func WaitClusterResourceBindingFitWith(client karmada.Interface, name string, fit func(clusterResourceBinding *workv1alpha2.ClusterResourceBinding) bool)
WaitClusterResourceBindingFitWith wait clusterResourceBinding fit with util timeout
func WaitClusterRoleBindingDisappearOnCluster ¶ added in v1.4.0
func WaitClusterRoleBindingDisappearOnCluster(cluster, name string)
WaitClusterRoleBindingDisappearOnCluster wait clusterRoleBinding disappear on cluster until timeout.
func WaitClusterRoleBindingDisappearOnClusters ¶ added in v1.4.0
WaitClusterRoleBindingDisappearOnClusters wait clusterRoleBinding disappear on member clusters until timeout.
func WaitClusterRoleBindingPresentOnClusterFitWith ¶ added in v1.4.0
func WaitClusterRoleBindingPresentOnClusterFitWith(cluster, name string, fit func(clusterRoleBinding *rbacv1.ClusterRoleBinding) bool)
WaitClusterRoleBindingPresentOnClusterFitWith wait clusterRoleBinding present on member cluster sync with fit func.
func WaitClusterRoleBindingPresentOnClustersFitWith ¶ added in v1.4.0
func WaitClusterRoleBindingPresentOnClustersFitWith(clusters []string, name string, fit func(clusterRoleBinding *rbacv1.ClusterRoleBinding) bool)
WaitClusterRoleBindingPresentOnClustersFitWith wait clusterRoleBinding present on clusters sync with fit func.
func WaitClusterRoleDisappearOnCluster ¶ added in v1.4.0
func WaitClusterRoleDisappearOnCluster(cluster, name string)
WaitClusterRoleDisappearOnCluster wait clusterRole disappear on cluster until timeout.
func WaitClusterRoleDisappearOnClusters ¶ added in v1.4.0
WaitClusterRoleDisappearOnClusters wait clusterRole disappear on member clusters until timeout.
func WaitClusterRoleGetByClientFitWith ¶ added in v1.4.0
func WaitClusterRoleGetByClientFitWith(client kubernetes.Interface, name string, fit func(clusterRole *rbacv1.ClusterRole) bool)
WaitClusterRoleGetByClientFitWith wait clusterRole get by client fit with func.
func WaitClusterRolePresentOnClusterFitWith ¶ added in v1.4.0
func WaitClusterRolePresentOnClusterFitWith(cluster, name string, fit func(clusterRole *rbacv1.ClusterRole) bool)
WaitClusterRolePresentOnClusterFitWith wait clusterRole present on member cluster sync with fit func.
func WaitClusterRolePresentOnClustersFitWith ¶ added in v1.4.0
func WaitClusterRolePresentOnClustersFitWith(clusters []string, name string, fit func(clusterRole *rbacv1.ClusterRole) bool)
WaitClusterRolePresentOnClustersFitWith wait clusterRole present on clusters sync with fit func.
func WaitConfigMapDisappearOnCluster ¶ added in v1.7.0
func WaitConfigMapDisappearOnCluster(cluster, namespace, name string)
WaitConfigMapDisappearOnCluster wait configmap disappear on cluster until timeout.
func WaitConfigMapDisappearOnClusters ¶ added in v1.7.0
WaitConfigMapDisappearOnClusters wait configmap disappear on member clusters until timeout.
func WaitConfigMapPresentOnClusterFitWith ¶ added in v1.2.0
func WaitConfigMapPresentOnClusterFitWith(cluster, namespace, name string, fit func(configmap *corev1.ConfigMap) bool)
WaitConfigMapPresentOnClusterFitWith wait configmap present on member cluster sync with fit func.
func WaitConfigMapPresentOnClustersFitWith ¶ added in v1.2.0
func WaitConfigMapPresentOnClustersFitWith(clusters []string, namespace, name string, fit func(configmap *corev1.ConfigMap) bool)
WaitConfigMapPresentOnClustersFitWith wait configmap present on clusters sync with fit func.
func WaitDeploymentDisappearOnCluster ¶ added in v1.0.0
func WaitDeploymentDisappearOnCluster(cluster, namespace, name string)
WaitDeploymentDisappearOnCluster wait deployment disappear on cluster until timeout.
func WaitDeploymentDisappearOnClusters ¶
WaitDeploymentDisappearOnClusters wait deployment disappear on member clusters until timeout.
func WaitDeploymentFitWith ¶ added in v1.9.0
func WaitDeploymentFitWith(client kubernetes.Interface, namespace, name string, fit func(deployment *appsv1.Deployment) bool)
WaitDeploymentFitWith wait deployment sync with fit func.
func WaitDeploymentGetByClientFitWith ¶ added in v1.4.0
func WaitDeploymentGetByClientFitWith(client kubernetes.Interface, namespace, name string, fit func(deployment *appsv1.Deployment) bool)
WaitDeploymentGetByClientFitWith wait deployment get by client fit with func.
func WaitDeploymentPresentOnClusterFitWith ¶
func WaitDeploymentPresentOnClusterFitWith(cluster, namespace, name string, fit func(deployment *appsv1.Deployment) bool)
WaitDeploymentPresentOnClusterFitWith wait deployment present on member clusters sync with fit func.
func WaitDeploymentPresentOnClustersFitWith ¶ added in v1.0.0
func WaitDeploymentPresentOnClustersFitWith(clusters []string, namespace, name string, fit func(deployment *appsv1.Deployment) bool)
WaitDeploymentPresentOnClustersFitWith wait deployment present on cluster sync with fit func.
func WaitDeploymentReplicasFitWith ¶ added in v1.7.0
WaitDeploymentReplicasFitWith wait deployment replicas get by client fit with expected replicas.
func WaitDeploymentStatus ¶ added in v1.7.0
func WaitDeploymentStatus(client kubernetes.Interface, deployment *appsv1.Deployment, replicas int32)
WaitDeploymentStatus wait the deployment on the cluster to have the specified replicas
func WaitEventFitWith ¶ added in v1.11.0
func WaitEventFitWith(kubeClient kubernetes.Interface, namespace string, involvedObj string, fit func(policy corev1.Event) bool)
WaitEventFitWith wait PropagationPolicy sync with fit func.
func WaitFederatedResourceQuotaCollectStatus ¶ added in v1.2.0
WaitFederatedResourceQuotaCollectStatus wait FederatedResourceQuota collect status successfully.
func WaitForWorkToDisappear ¶ added in v1.12.0
WaitForWorkToDisappear waiting for work to disappear util timeout
func WaitGracefulEvictionTasksDone ¶ added in v1.10.0
WaitGracefulEvictionTasksDone wait GracefulEvictionTasks of the binding done.
func WaitJobDisappearOnCluster ¶ added in v1.0.0
func WaitJobDisappearOnCluster(cluster, namespace, name string)
WaitJobDisappearOnCluster wait job disappear on cluster until timeout.
func WaitJobDisappearOnClusters ¶ added in v1.0.0
WaitJobDisappearOnClusters wait job disappear on member clusters until timeout.
func WaitJobPresentOnClusterFitWith ¶ added in v1.0.0
func WaitJobPresentOnClusterFitWith(cluster, namespace, name string, fit func(job *batchv1.Job) bool)
WaitJobPresentOnClusterFitWith wait job present on member clusters sync with fit func.
func WaitJobPresentOnClustersFitWith ¶ added in v1.0.0
func WaitJobPresentOnClustersFitWith(clusters []string, namespace, name string, fit func(job *batchv1.Job) bool)
WaitJobPresentOnClustersFitWith wait job present on cluster sync with fit func.
func WaitMultiClusterServicePresentOnClustersFitWith ¶ added in v1.8.0
func WaitMultiClusterServicePresentOnClustersFitWith(client karmada.Interface, namespace, name string, fit func(mcs *networkingv1alpha1.MultiClusterService) bool)
WaitMultiClusterServicePresentOnClustersFitWith waits MultiClusterService present on cluster sync with fit func.
func WaitNamespaceDisappearOnCluster ¶ added in v1.0.0
func WaitNamespaceDisappearOnCluster(cluster, name string)
WaitNamespaceDisappearOnCluster wait namespace disappear on cluster until timeout.
func WaitNamespaceDisappearOnClusters ¶ added in v1.0.0
WaitNamespaceDisappearOnClusters wait namespace disappear on clusters until timeout.
func WaitNamespacePresentOnCluster ¶ added in v1.0.0
func WaitNamespacePresentOnCluster(cluster, name string)
WaitNamespacePresentOnCluster wait namespace present on cluster until timeout.
func WaitNamespacePresentOnClusterByClient ¶ added in v1.2.0
func WaitNamespacePresentOnClusterByClient(client kubernetes.Interface, name string)
WaitNamespacePresentOnClusterByClient wait namespace present on cluster until timeout directly by kube client.
func WaitNamespacePresentOnClusters ¶ added in v1.0.0
WaitNamespacePresentOnClusters wait namespace present on clusters until timeout.
func WaitPVCDisappearOnCluster ¶ added in v1.3.0
func WaitPVCDisappearOnCluster(cluster, namespace, name string)
WaitPVCDisappearOnCluster wait PersistentVolumeClaim disappear on cluster until timeout.
func WaitPVCDisappearOnClusters ¶ added in v1.3.0
WaitPVCDisappearOnClusters Wait for the PersistentVolumeClaim to disappear on member clusters until timeout.
func WaitPVCPresentOnClusterFitWith ¶ added in v1.3.0
func WaitPVCPresentOnClusterFitWith(cluster, namespace, name string, fit func(pvc *corev1.PersistentVolumeClaim) bool)
WaitPVCPresentOnClusterFitWith wait PersistentVolumeClaim present on member cluster sync with fit func.
func WaitPVCPresentOnClustersFitWith ¶ added in v1.3.0
func WaitPVCPresentOnClustersFitWith(clusters []string, namespace, name string, fit func(pvc *corev1.PersistentVolumeClaim) bool)
WaitPVCPresentOnClustersFitWith wait PersistentVolumeClaim present on clusters sync with fit func.
func WaitPodDisappearOnCluster ¶ added in v1.0.0
func WaitPodDisappearOnCluster(cluster, namespace, name string)
WaitPodDisappearOnCluster wait pod disappear on cluster until timeout.
func WaitPodDisappearOnClusters ¶ added in v1.0.0
WaitPodDisappearOnClusters wait pod disappear on member clusters until timeout.
func WaitPodMetricsReady ¶ added in v1.9.0
func WaitPodMetricsReady(kubeClient kubernetes.Interface, karmadaClient karmada.Interface, cluster, namespace, name string)
WaitPodMetricsReady wait podMetrics to be ready.
func WaitPodPresentOnClusterFitWith ¶ added in v1.0.0
func WaitPodPresentOnClusterFitWith(cluster, namespace, name string, fit func(pod *corev1.Pod) bool)
WaitPodPresentOnClusterFitWith wait pod present on member clusters sync with fit func.
func WaitPodPresentOnClustersFitWith ¶ added in v1.0.0
func WaitPodPresentOnClustersFitWith(clusters []string, namespace, name string, fit func(pod *corev1.Pod) bool)
WaitPodPresentOnClustersFitWith wait pod present on cluster sync with fit func.
func WaitPropagationPolicyFitWith ¶ added in v1.10.0
func WaitPropagationPolicyFitWith(client karmada.Interface, namespace, name string, fit func(policy *policyv1alpha1.PropagationPolicy) bool)
WaitPropagationPolicyFitWith wait PropagationPolicy sync with fit func.
func WaitRebalancerDisappear ¶ added in v1.10.0
WaitRebalancerDisappear wait WorkloadRebalancer disappear until timeout.
func WaitRebalancerObservedWorkloads ¶ added in v1.10.0
func WaitRebalancerObservedWorkloads(client karmada.Interface, name string, expectedWorkloads []appsv1alpha1.ObservedWorkload)
WaitRebalancerObservedWorkloads wait observedWorkloads in WorkloadRebalancer fit with util timeout
func WaitResourceBindingFitWith ¶ added in v1.9.0
func WaitResourceBindingFitWith(client karmada.Interface, namespace, name string, fit func(resourceBinding *workv1alpha2.ResourceBinding) bool)
WaitResourceBindingFitWith wait resourceBinding fit with util timeout
func WaitResourceQuotaDisappearOnCluster ¶ added in v1.2.0
func WaitResourceQuotaDisappearOnCluster(cluster, namespace, name string)
WaitResourceQuotaDisappearOnCluster wait resourceQuota disappear on one cluster until timeout.
func WaitResourceQuotaDisappearOnClusters ¶ added in v1.2.0
WaitResourceQuotaDisappearOnClusters wait resourceQuota disappear on clusters until timeout.
func WaitResourceQuotaPresentOnCluster ¶ added in v1.2.0
func WaitResourceQuotaPresentOnCluster(cluster, namespace, name string)
WaitResourceQuotaPresentOnCluster wait resourceQuota present on one cluster until timeout.
func WaitResourceQuotaPresentOnClusters ¶ added in v1.2.0
WaitResourceQuotaPresentOnClusters wait resourceQuota present on clusters until timeout.
func WaitRoleBindingDisappearOnCluster ¶ added in v1.4.0
func WaitRoleBindingDisappearOnCluster(cluster, namespace, name string)
WaitRoleBindingDisappearOnCluster wait roleBinding disappear on cluster until timeout.
func WaitRoleBindingDisappearOnClusters ¶ added in v1.4.0
WaitRoleBindingDisappearOnClusters wait roleBinding disappear on member clusters until timeout.
func WaitRoleBindingPresentOnClusterFitWith ¶ added in v1.4.0
func WaitRoleBindingPresentOnClusterFitWith(cluster, namespace, name string, fit func(roleBinding *rbacv1.RoleBinding) bool)
WaitRoleBindingPresentOnClusterFitWith wait roleBinding present on member cluster sync with fit func.
func WaitRoleBindingPresentOnClustersFitWith ¶ added in v1.4.0
func WaitRoleBindingPresentOnClustersFitWith(clusters []string, namespace, name string, fit func(roleBinding *rbacv1.RoleBinding) bool)
WaitRoleBindingPresentOnClustersFitWith wait robeBinding present on clusters sync with fit func.
func WaitRoleDisappearOnCluster ¶ added in v1.4.0
func WaitRoleDisappearOnCluster(cluster, namespace, name string)
WaitRoleDisappearOnCluster wait role disappear on cluster until timeout.
func WaitRoleDisappearOnClusters ¶ added in v1.4.0
WaitRoleDisappearOnClusters wait role disappear on member clusters until timeout.
func WaitRolePresentOnClusterFitWith ¶ added in v1.4.0
func WaitRolePresentOnClusterFitWith(cluster, namespace, name string, fit func(role *rbacv1.Role) bool)
WaitRolePresentOnClusterFitWith wait role present on member cluster sync with fit func.
func WaitRolePresentOnClustersFitWith ¶ added in v1.4.0
func WaitRolePresentOnClustersFitWith(clusters []string, namespace, name string, fit func(role *rbacv1.Role) bool)
WaitRolePresentOnClustersFitWith wait role present on clusters sync with fit func.
func WaitSecretDisappearOnCluster ¶ added in v1.2.0
func WaitSecretDisappearOnCluster(cluster, namespace, name string)
WaitSecretDisappearOnCluster wait secret disappear on cluster until timeout.
func WaitSecretDisappearOnClusters ¶ added in v1.2.0
WaitSecretDisappearOnClusters wait service disappear on member clusters until timeout.
func WaitSecretPresentOnClusterFitWith ¶ added in v1.2.0
func WaitSecretPresentOnClusterFitWith(cluster, namespace, name string, fit func(secret *corev1.Secret) bool)
WaitSecretPresentOnClusterFitWith wait secret present on member cluster sync with fit func.
func WaitSecretPresentOnClustersFitWith ¶ added in v1.2.0
func WaitSecretPresentOnClustersFitWith(clusters []string, namespace, name string, fit func(secret *corev1.Secret) bool)
WaitSecretPresentOnClustersFitWith wait secret present on clusters sync with fit func.
func WaitServiceAccountDisappearOnCluster ¶ added in v1.3.5
func WaitServiceAccountDisappearOnCluster(cluster, namespace, name string)
WaitServiceAccountDisappearOnCluster wait sa disappear on cluster until timeout.
func WaitServiceAccountDisappearOnClusters ¶ added in v1.3.5
WaitServiceAccountDisappearOnClusters wait sa disappear on member clusters until timeout.
func WaitServiceAccountPresentOnClusterFitWith ¶ added in v1.3.5
func WaitServiceAccountPresentOnClusterFitWith(cluster, namespace, name string, fit func(sa *corev1.ServiceAccount) bool)
WaitServiceAccountPresentOnClusterFitWith wait sa present on member clusters sync with fit func.
func WaitServiceAccountPresentOnClustersFitWith ¶ added in v1.3.5
func WaitServiceAccountPresentOnClustersFitWith(clusters []string, namespace, name string, fit func(sa *corev1.ServiceAccount) bool)
WaitServiceAccountPresentOnClustersFitWith wait sa present on cluster sync with fit func.
func WaitServiceDisappearOnCluster ¶ added in v1.0.0
func WaitServiceDisappearOnCluster(cluster, namespace, name string)
WaitServiceDisappearOnCluster wait service disappear on cluster until timeout.
func WaitServiceDisappearOnClusters ¶ added in v1.0.0
WaitServiceDisappearOnClusters wait service disappear on member clusters until timeout.
func WaitServicePresentOnClusterFitWith ¶ added in v1.0.0
func WaitServicePresentOnClusterFitWith(cluster, namespace, name string, fit func(service *corev1.Service) bool)
WaitServicePresentOnClusterFitWith wait service present on member clusters sync with fit func.
func WaitServicePresentOnClustersFitWith ¶ added in v1.0.0
func WaitServicePresentOnClustersFitWith(clusters []string, namespace, name string, fit func(service *corev1.Service) bool)
WaitServicePresentOnClustersFitWith wait service present on cluster sync with fit func.
func WaitWorkloadDisappearOnCluster ¶ added in v1.0.0
func WaitWorkloadDisappearOnCluster(cluster, namespace, name string)
WaitWorkloadDisappearOnCluster waits workload disappear on cluster until timeout.
func WaitWorkloadDisappearOnClusters ¶ added in v1.0.0
WaitWorkloadDisappearOnClusters wait workload disappear on member clusters until timeout.
func WaitWorkloadPresentOnClusterFitWith ¶ added in v1.0.0
func WaitWorkloadPresentOnClusterFitWith(cluster, namespace, name string, fit func(workload *workloadv1alpha1.Workload) bool)
WaitWorkloadPresentOnClusterFitWith waits workload present on member cluster sync with fit func.
func WaitWorkloadPresentOnClustersFitWith ¶ added in v1.4.0
func WaitWorkloadPresentOnClustersFitWith(clusters []string, namespace, name string, fit func(workload *workloadv1alpha1.Workload) bool)
WaitWorkloadPresentOnClustersFitWith waits workload present on member clusters sync with fit func.
Types ¶
type KarmadactlBuilder ¶ added in v1.8.0
type KarmadactlBuilder struct {
// contains filtered or unexported fields
}
KarmadactlBuilder is a builder to run karmadactl.
func NewKarmadactlCommand ¶ added in v1.8.0
func NewKarmadactlCommand(kubeConfig, karmadaContext, karmadactlPath, namespace string, timeout time.Duration, args ...string) *KarmadactlBuilder
NewKarmadactlCommand creates a new KarmadactlBuilder.
func (*KarmadactlBuilder) ExecOrDie ¶ added in v1.8.0
func (k *KarmadactlBuilder) ExecOrDie() (string, error)
ExecOrDie executes the karmadactl executable and returns the stdout.
type TestKubeconfig ¶ added in v1.8.0
type TestKubeconfig struct { KubeConfig string KarmadaContext string KarmadactlPath string Namespace string }
TestKubeconfig contains the information of a test kubeconfig.
func NewTestKubeconfig ¶ added in v1.8.0
func NewTestKubeconfig(kubeConfig, karmadaContext, karmadactlpath, namespace string) *TestKubeconfig
NewTestKubeconfig creates a new TestKubeconfig.
func (*TestKubeconfig) KarmadactlCmd ¶ added in v1.8.0
func (tk *TestKubeconfig) KarmadactlCmd(args ...string) *exec.Cmd
KarmadactlCmd runs the karmadactl executable through the wrapper script.
Source Files ¶
- cluster.go
- clusteroverridepolicy.go
- clusterpropagationpolicy.go
- clusterresourcebinding.go
- configmap.go
- constant.go
- cronfederatedhpa.go
- customresourcedefine.go
- daemonSet.go
- deployment.go
- dynamic.go
- events.go
- federatedhpa.go
- federatedresourcequota.go
- ginkgo_decorator.go
- hpa.go
- ingress.go
- job.go
- karmadactl.go
- mcs.go
- namespace.go
- overridepolicy.go
- persistentvolumeclaim.go
- pod.go
- poddisruptionbudget.go
- propagationpolicy.go
- rbac.go
- resourcebinding.go
- resourceinterpretercustomization.go
- resourcequota.go
- resourceregistry.go
- secret.go
- service.go
- statefulSet.go
- work.go
- workload.go
- workloadrebalancer.go