resourceoffercontroller

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2022 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Overview

Package resourceoffercontroller implements the logic of the ResourceOffer Operator

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ResourceOfferReconciler

type ResourceOfferReconciler struct {
	client.Client
	Scheme *runtime.Scheme
	// contains filtered or unexported fields
}

ResourceOfferReconciler reconciles a ResourceOffer object.

func NewResourceOfferController

func NewResourceOfferController(
	mgr manager.Manager, cluster discoveryv1alpha1.ClusterIdentity,
	resyncPeriod time.Duration, liqoNamespace string,
	virtualKubeletOpts *forge.VirtualKubeletOpts,
	disableAutoAccept bool) *ResourceOfferReconciler

NewResourceOfferController creates and returns a new reconciler for the ResourceOffers.

func (*ResourceOfferReconciler) Reconcile

func (r *ResourceOfferReconciler) Reconcile(ctx context.Context, req ctrl.Request) (result ctrl.Result, err 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.

func (*ResourceOfferReconciler) SetupWithManager

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