Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckAddonPodFunc ¶
func CheckAddonPodFunc(podGetter corev1client.PodsGetter, namespace, labelSelector string) func() bool
CheckAddonPodFunc checks whether the agent pod is running
Types ¶
type LeaseUpdater ¶
type LeaseUpdater interface { // Start starts a goroutine to update lease Start(ctx context.Context) // WithHubLeaseConfig sets the lease config on hub cluster. It allows LeaseUpdater to create/update // addon lease on hub cluster when resource 'Lease' is not available on managed cluster. WithHubLeaseConfig(config *rest.Config, clusterName string) LeaseUpdater }
LeaseUpdater is to update lease with certain period
func NewLeaseUpdater ¶
func NewLeaseUpdater( kubeClient kubernetes.Interface, leaseName, leaseNamespace string, healthCheckFuncs ...func() bool, ) LeaseUpdater
Click to show internal directories.
Click to hide internal directories.