Documentation ¶
Overview ¶
Package internalmembercluster features internalmembercluster controller to report its heartbeat to the hub by updating internalMemberCluster and cleanup the resources before leave. For example, MCS agent needs to report the heartbeat after join and cleanup the created MCSes before leave. For now, there are two kinds of agents exist in the member cluster: MCS agent and ServiceExportImport agent.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Reconciler ¶
type Reconciler struct { MemberClient client.Client HubClient client.Client AgentType fleetv1alpha1.AgentType }
Reconciler reconciles a InternalMemberCluster object.
func (*Reconciler) Reconcile ¶
Reconcile handles join/leave for the member cluster controllers and updates its heartbeats. For the MCS controller, it needs to delete created MCS related in the member clusters. For the ServiceExportImport controllers, it needs to delete created serviceExported related in the member clusters.
func (*Reconciler) SetupWithManager ¶
func (r *Reconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.