schedulingNodeOperator

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SchedulingNodeReconciler

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

SchedulingNodeReconciler reconciles a SchedulingNode object

func (*SchedulingNodeReconciler) CreateOrUpdateFromNode

func (r *SchedulingNodeReconciler) CreateOrUpdateFromNode(ctx context.Context, node corev1.Node) error

CreateOrUpdateFromNode takes a node and creates a new scheduling Node if the corresponding SchedulingNode doesn't exist yet, otherwise, it updates the corresponding SchedulingNode CR

func (*SchedulingNodeReconciler) Reconcile

func (r *SchedulingNodeReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error)

func (*SchedulingNodeReconciler) SetupWithManager

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

SetupWithManager registers the event handler for + node update,create,delete,patch

Jump to

Keyboard shortcuts

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