controlplane

package
v0.0.0-...-d2b1218 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2021 License: Apache-2.0 Imports: 56 Imported by: 0

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 ControlPlaneInstanceReconciler

type ControlPlaneInstanceReconciler interface {
	Reconcile(ctx context.Context) (reconcile.Result, error)
	UpdateReadiness(ctx context.Context) error
	PatchAddons(ctx context.Context) 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