controllers

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DestinationReconciler added in v0.0.5

type DestinationReconciler struct {
	Client    client.Client
	Log       logr.Logger
	Scheduler *Scheduler
}

DestinationReconciler reconciles a Destination object

func (*DestinationReconciler) Reconcile added in v0.0.5

func (r *DestinationReconciler) 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 destination closer to the desired state. For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.11.0/pkg/reconcile

func (*DestinationReconciler) SetupWithManager added in v0.0.5

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

SetupWithManager sets up the controller with the Manager.

type PromiseFetcher added in v0.1.0

type PromiseFetcher interface {
	FromURL(string) (*v1alpha1.Promise, error)
}

type PromiseReconciler

type PromiseReconciler struct {
	Client                    client.Client
	ApiextensionsClient       *clientset.Clientset
	Log                       logr.Logger
	Manager                   ctrl.Manager
	StartedDynamicControllers map[string]*dynamicResourceRequestController
	RestartManager            func()
}

PromiseReconciler reconciles a Promise object

func (*PromiseReconciler) Reconcile

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

func (*PromiseReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type PromiseReleaseReconciler added in v0.1.0

type PromiseReleaseReconciler struct {
	client.Client
	Scheme         *runtime.Scheme
	Log            logr.Logger
	PromiseFetcher PromiseFetcher
}

PromiseReleaseReconciler reconciles a PromiseRelease object

func (*PromiseReleaseReconciler) Reconcile added in v0.1.0

func (*PromiseReleaseReconciler) SetupWithManager added in v0.1.0

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

SetupWithManager sets up the controller with the Manager.

type Scheduler

type Scheduler struct {
	Client client.Client
	Log    logr.Logger
}

func (*Scheduler) ReconcileDestination added in v0.0.5

func (s *Scheduler) ReconcileDestination() error

Only reconciles Works that are from a Promise Dependency

func (*Scheduler) ReconcileWork

func (s *Scheduler) ReconcileWork(work *platformv1alpha1.Work) ([]string, error)

func (*Scheduler) UpdateWorkPlacement added in v0.0.5

func (s *Scheduler) UpdateWorkPlacement(workloadGroup platformv1alpha1.WorkloadGroup, work *platformv1alpha1.Work, workPlacement *platformv1alpha1.WorkPlacement) (bool, error)

type StateStore added in v0.0.5

type StateStore interface {
	client.Object
	GetSecretRef() *v1.SecretReference
}

type WorkPlacementReconciler

type WorkPlacementReconciler struct {
	Client client.Client
	Log    logr.Logger
}

WorkPlacementReconciler reconciles a WorkPlacement object

func (*WorkPlacementReconciler) Reconcile

func (r *WorkPlacementReconciler) 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 destination closer to the desired state. For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.11.0/pkg/reconcile

func (*WorkPlacementReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type WorkReconciler

type WorkReconciler struct {
	Client    client.Client
	Log       logr.Logger
	Scheduler *Scheduler
	Disabled  bool
}

WorkReconciler reconciles a Work object

func (*WorkReconciler) Reconcile

func (r *WorkReconciler) 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 Work 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.7.2/pkg/reconcile

func (*WorkReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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