controlplane

package
v0.0.0-...-81d30be Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: Apache-2.0 Imports: 58 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(mgr manager.Manager) error

Add creates a new ControlPlane Controller and adds it to the Manager. The Manager will set fields on the Controller and Start it when the Manager is Started.

Types

type CNIPruner

type CNIPruner struct {
	Client            client.Client
	OperatorNamespace string
}

func (*CNIPruner) Prune

type ControlPlaneInstanceReconciler

type ControlPlaneInstanceReconciler interface {
	Reconcile(ctx context.Context) (reconcile.Result, error)
	UpdateReadiness(ctx context.Context) error
	PatchAddons(ctx context.Context, spec *v2.ControlPlaneSpec) (reconcile.Result, error)
	Delete(ctx context.Context) error
	SetInstance(instance *v2.ServiceMeshControlPlane)
	IsFinished() bool
}

ControlPlaneInstanceReconciler reconciles a specific instance of a ServiceMeshControlPlane

func NewControlPlaneInstanceReconciler

func NewControlPlaneInstanceReconciler(controllerResources common.ControllerResources,
	newInstance *v2.ServiceMeshControlPlane, cniConfig cni.Config,
) ControlPlaneInstanceReconciler

type ControlPlaneReconciler

type ControlPlaneReconciler struct {
	// This client, initialized using mgr.Client() above, is a split client
	// that reads objects from the cache and writes to the apiserver
	common.ControllerResources
	// contains filtered or unexported fields
}

ControlPlaneReconciler handles reconciliation of ServiceMeshControlPlane objects. It creates a ControlPlaneInstanceReconciler for each instance.

func (*ControlPlaneReconciler) Reconcile

func (r *ControlPlaneReconciler) Reconcile(request reconcile.Request) (reconcile.Result, error)

Reconcile reads that state of the cluster for a ServiceMeshControlPlane object and makes changes based on the state read and what is in the ServiceMeshControlPlane.Spec

Jump to

Keyboard shortcuts

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