internalmembercluster

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2023 License: MIT Imports: 14 Imported by: 0

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

func (r *Reconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

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.

Jump to

Keyboard shortcuts

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