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 ¶
func (r *ThreeportWorkloadReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
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.