controller

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ControlPlaneName  = "cl-controlplane"
	DataPlaneName     = "cl-dataplane"
	GoDataPlaneName   = "cl-go-dataplane"
	IngressName       = "clusterlink"
	OperatorNamespace = "clusterlink-operator"
	InstanceNamespace = "clusterlink-system"
	FinalizerName     = "instance.clusterlink.net/finalizer"

	StatusModeNotExist    = "NotExist"
	StatusModeProgressing = "ProgressingMode"
	StatusModeReady       = "Ready"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type InstanceReconciler

type InstanceReconciler struct {
	client.Client
	Scheme    *runtime.Scheme
	Logger    *logrus.Entry
	Instances map[string]string
}

InstanceReconciler reconciles a ClusterLink instance object.

func (*InstanceReconciler) Reconcile

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

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. The reconcile get instance YAML and creates the ClusterLink components.

func (*InstanceReconciler) SetupWithManager

func (r *InstanceReconciler) 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