mcagent

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: UPL-1.0 Imports: 41 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reconciler added in v1.6.0

type Reconciler struct {
	client.Client
	Log          *zap.SugaredLogger
	Scheme       *runtime.Scheme
	AgentChannel chan clusters.StatusUpdateMessage
}

Reconciler reconciles one iteration of the Managed cluster agent

func (*Reconciler) Reconcile added in v1.6.0

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

func (*Reconciler) SetupWithManager added in v1.6.0

func (r *Reconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager registers our controller with the manager

type Syncer

type Syncer struct {
	AdminClient          client.Client
	LocalClient          client.Client
	LocalDiscoveryClient discovery.DiscoveryInterface
	Log                  *zap.SugaredLogger
	ManagedClusterName   string
	Context              context.Context

	// List of namespaces to watch for multi-cluster objects.
	ProjectNamespaces   []string
	StatusUpdateChannel chan clusters.StatusUpdateMessage
}

Syncer contains context for synchronize operations

func (*Syncer) SyncMultiClusterResources

func (s *Syncer) SyncMultiClusterResources()

SyncMultiClusterResources - sync multi-cluster objects

Jump to

Keyboard shortcuts

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