foreignclusteroperator

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: Apache-2.0 Imports: 46 Imported by: 0

Documentation

Overview

Package foreignclusteroperator implements the logic of the ForeignCluster Operator

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIServerCheckers added in v0.8.0

type APIServerCheckers struct {
	// contains filtered or unexported fields
}

APIServerCheckers manage the foreign API server checker functions.

func NewAPIServerCheckers added in v0.8.0

func NewAPIServerCheckers(pingInterval, pingTimeout time.Duration) APIServerCheckers

NewAPIServerCheckers returns a new APIServerCheckers struct.

type ForeignClusterReconciler

type ForeignClusterReconciler struct {
	client.Client
	Scheme *runtime.Scheme

	LiqoNamespace string

	ResyncPeriod           time.Duration
	HomeCluster            discoveryv1alpha1.ClusterIdentity
	AutoJoin               bool
	DisableInternalNetwork bool

	NamespaceManager tenantnamespace.Manager
	IdentityManager  identitymanager.IdentityManager

	PeeringPermission peeringRoles.PeeringPermission

	InsecureTransport *http.Transport
	SecureTransport   *http.Transport

	// The map associates the local tenant namespaces (keys) to the related foreignclusters (values).
	ForeignClusters sync.Map

	// Handle concurrent access to the map containing the cancel context functions of the API server checkers.
	APIServerCheckers
}

ForeignClusterReconciler reconciles a ForeignCluster object.

func (*ForeignClusterReconciler) Reconcile

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

Reconcile reconciles ForeignCluster resources.

func (*ForeignClusterReconciler) SetupWithManager

func (r *ForeignClusterReconciler) SetupWithManager(mgr ctrl.Manager, workers int) error

SetupWithManager assigns the operator to a manager.

Jump to

Keyboard shortcuts

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