controllers

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InstaScaleParams

type InstaScaleParams struct {
	Name               string
	Namespace          string
	Owner              mf.Owner
	EnableMonitoring   bool
	MaxScaleoutAllowed int
}

func (*InstaScaleParams) ExtractParams

func (p *InstaScaleParams) ExtractParams(instascale *instascalev1alpha1.InstaScale) error

type InstaScaleReconciler

type InstaScaleReconciler struct {
	client.Client
	Scheme        *runtime.Scheme
	Log           logr.Logger
	TemplatesPath string
}

InstaScaleReconciler reconciles a InstaScale object

func (*InstaScaleReconciler) Apply

func (r *InstaScaleReconciler) Apply(owner mf.Owner, params *InstaScaleParams, template string, fns ...mf.Transformer) error

func (*InstaScaleReconciler) DeleteResource

func (r *InstaScaleReconciler) DeleteResource(params *InstaScaleParams, template string, fns ...mf.Transformer) error

func (*InstaScaleReconciler) Reconcile

func (r *InstaScaleReconciler) 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. TODO(user): Modify the Reconcile function to compare the state specified by the InstaScale object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.13.0/pkg/reconcile

func (*InstaScaleReconciler) ReconcileInstaScale

func (r *InstaScaleReconciler) ReconcileInstaScale(ctx context.Context, instascale *codeflarev1alpha1.InstaScale, req ctrl.Request, params *InstaScaleParams) error

func (*InstaScaleReconciler) SetupWithManager

func (r *InstaScaleReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type MCADParams

type MCADParams struct {
	Name               string
	Namespace          string
	Owner              mf.Owner
	EnableMonitoring   bool
	MultiCluster       bool
	DispatcherMode     bool
	PreemptionEnabled  bool
	AgentConfigs       string
	QuotaRestURL       string
	PodCreationTimeout int
}

func (*MCADParams) ExtractParams

func (p *MCADParams) ExtractParams(mcad *mcadv1alpha1.MCAD) error

ExtractParams is currently a straight-up copy. We can add in more complex validation at a later date

type MCADReconciler

type MCADReconciler struct {
	client.Client
	Scheme        *runtime.Scheme
	Log           logr.Logger
	TemplatesPath string
}

MCADReconciler reconciles a MCAD object

func (*MCADReconciler) Apply

func (r *MCADReconciler) Apply(owner mf.Owner, params *MCADParams, template string, fns ...mf.Transformer) error

func (*MCADReconciler) ApplyWithoutOwner

func (r *MCADReconciler) ApplyWithoutOwner(params *MCADParams, template string, fns ...mf.Transformer) error

func (*MCADReconciler) DeleteResource

func (r *MCADReconciler) DeleteResource(params *MCADParams, template string, fns ...mf.Transformer) error

func (*MCADReconciler) Reconcile

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

func (*MCADReconciler) ReconcileMCAD

func (r *MCADReconciler) ReconcileMCAD(ctx context.Context, mcad *codeflarev1alpha1.MCAD, req ctrl.Request, params *MCADParams) error

func (*MCADReconciler) SetupWithManager

func (r *MCADReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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