controller

package
v0.5.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InformerStopChannels

type InformerStopChannels struct {
	WorkloadInstanceID uint
	StopChannels       []chan struct{}
}

type ThreeportWorkloadReconciler

type ThreeportWorkloadReconciler struct {
	client.Client
	Scheme            *runtime.Scheme
	ManagerContext    context.Context
	RESTMapper        meta.RESTMapper
	KubeClient        *kubernetes.Clientset
	DynamicClient     *dynamic.DynamicClient
	RESTConfig        *rest.Config
	NotifChan         *chan notify.ThreeportNotif
	InformerStopChans []InformerStopChannels
}

ThreeportWorkloadReconciler reconciles a ThreeportWorkload object

func (*ThreeportWorkloadReconciler) Reconcile

Reconcile reconciles state for ThreeportWorkload resources. The configuration of a ThreeportWorkload resource provides a set of resources that constitute a threeport workload instance. This triggers the reconciler to start watches on all those resources and to watch events related to those resources. These watches are used to send information back to the threeport API so the control plane can provide data to threeport users and allow threeport controllers to act upon changes in state within the Kubernetes cluster where the workload instance resources live.

func (*ThreeportWorkloadReconciler) SetupWithManager

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