nodes

package
v0.0.3-alpha Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PocketSetReconciler

type PocketSetReconciler struct {
	client.Client
	Name         string
	Log          logr.Logger
	Controller   controller.Controller
	Events       record.EventRecorder
	FieldManager string
	Watches      []client.Object
	Phases       *phases.Registry
}

PocketSetReconciler reconciles a PocketSet object.

func NewPocketSetReconciler

func NewPocketSetReconciler(mgr ctrl.Manager) *PocketSetReconciler

func (*PocketSetReconciler) CheckReady

func (r *PocketSetReconciler) CheckReady(req *workload.Request) (bool, error)

CheckReady will return whether a component is ready.

func (*PocketSetReconciler) GetController

func (r *PocketSetReconciler) GetController() controller.Controller

GetController returns the controller object associated with the reconciler.

func (*PocketSetReconciler) GetEventRecorder

func (r *PocketSetReconciler) GetEventRecorder() record.EventRecorder

GetEventRecorder returns the event recorder for writing kubernetes events.

func (*PocketSetReconciler) GetFieldManager

func (r *PocketSetReconciler) GetFieldManager() string

GetFieldManager returns the name of the field manager for the controller.

func (*PocketSetReconciler) GetLogger

func (r *PocketSetReconciler) GetLogger() logr.Logger

GetLogger returns the logger from the reconciler.

func (*PocketSetReconciler) GetName

func (r *PocketSetReconciler) GetName() string

GetName returns the name of the reconciler.

func (*PocketSetReconciler) GetResources

func (r *PocketSetReconciler) GetResources(req *workload.Request) ([]client.Object, error)

GetResources resources runs the methods to properly construct the resources in memory.

func (*PocketSetReconciler) GetWatches

func (r *PocketSetReconciler) GetWatches() []client.Object

GetWatches returns the objects which are current being watched by the reconciler.

func (*PocketSetReconciler) InitializePhases

func (r *PocketSetReconciler) InitializePhases()

InitializePhases defines what phases should be run for each event loop. phases are executed in the order they are listed.

func (*PocketSetReconciler) Mutate

func (r *PocketSetReconciler) Mutate(
	req *workload.Request,
	object client.Object,
) ([]client.Object, bool, error)

Mutate will run the mutate function for the workload. WARN: this will be deprecated in the future. See apis/group/version/kind/mutate*

func (*PocketSetReconciler) NewRequest

func (r *PocketSetReconciler) NewRequest(ctx context.Context, request ctrl.Request) (*workload.Request, error)

func (*PocketSetReconciler) Reconcile

func (r *PocketSetReconciler) Reconcile(ctx context.Context, request 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.

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

func (*PocketSetReconciler) SetWatch

func (r *PocketSetReconciler) SetWatch(watch client.Object)

SetWatch appends a watch to the list of currently watched objects.

func (*PocketSetReconciler) SetupWithManager

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

type PocketValidatorReconciler

type PocketValidatorReconciler struct {
	client.Client
	Name         string
	Log          logr.Logger
	Controller   controller.Controller
	Events       record.EventRecorder
	FieldManager string
	Watches      []client.Object
	Phases       *phases.Registry
}

PocketValidatorReconciler reconciles a PocketValidator object.

func NewPocketValidatorReconciler

func NewPocketValidatorReconciler(mgr ctrl.Manager) *PocketValidatorReconciler

func (*PocketValidatorReconciler) CheckReady

func (r *PocketValidatorReconciler) CheckReady(req *workload.Request) (bool, error)

CheckReady will return whether a component is ready.

func (*PocketValidatorReconciler) EnqueueRequestOnCollectionChange

func (r *PocketValidatorReconciler) EnqueueRequestOnCollectionChange(req *workload.Request) error

EnqueueRequestOnCollectionChange enqueues a reconcile request when an associated collection object changes.

func (*PocketValidatorReconciler) GetCollection

GetCollection gets a collection for a component given a list.

func (*PocketValidatorReconciler) GetController

func (r *PocketValidatorReconciler) GetController() controller.Controller

GetController returns the controller object associated with the reconciler.

func (*PocketValidatorReconciler) GetEventRecorder

func (r *PocketValidatorReconciler) GetEventRecorder() record.EventRecorder

GetEventRecorder returns the event recorder for writing kubernetes events.

func (*PocketValidatorReconciler) GetFieldManager

func (r *PocketValidatorReconciler) GetFieldManager() string

GetFieldManager returns the name of the field manager for the controller.

func (*PocketValidatorReconciler) GetLogger

func (r *PocketValidatorReconciler) GetLogger() logr.Logger

GetLogger returns the logger from the reconciler.

func (*PocketValidatorReconciler) GetName

func (r *PocketValidatorReconciler) GetName() string

GetName returns the name of the reconciler.

func (*PocketValidatorReconciler) GetResources

func (r *PocketValidatorReconciler) GetResources(req *workload.Request) ([]client.Object, error)

GetResources resources runs the methods to properly construct the resources in memory.

func (*PocketValidatorReconciler) GetWatches

func (r *PocketValidatorReconciler) GetWatches() []client.Object

GetWatches returns the objects which are current being watched by the reconciler.

func (*PocketValidatorReconciler) InitializePhases

func (r *PocketValidatorReconciler) InitializePhases()

InitializePhases defines what phases should be run for each event loop. phases are executed in the order they are listed.

func (*PocketValidatorReconciler) Mutate

func (r *PocketValidatorReconciler) Mutate(
	req *workload.Request,
	object client.Object,
) ([]client.Object, bool, error)

Mutate will run the mutate function for the workload. WARN: this will be deprecated in the future. See apis/group/version/kind/mutate*

func (*PocketValidatorReconciler) NewRequest

func (r *PocketValidatorReconciler) NewRequest(ctx context.Context, request ctrl.Request) (*workload.Request, error)

func (*PocketValidatorReconciler) Reconcile

func (r *PocketValidatorReconciler) Reconcile(ctx context.Context, request 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.

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

func (*PocketValidatorReconciler) SetCollection

func (r *PocketValidatorReconciler) SetCollection(component *nodesv1alpha1.PocketValidator, req *workload.Request) error

SetCollection sets the collection for a particular workload request.

func (*PocketValidatorReconciler) SetWatch

func (r *PocketValidatorReconciler) SetWatch(watch client.Object)

SetWatch appends a watch to the list of currently watched objects.

func (*PocketValidatorReconciler) SetupWithManager

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

Jump to

Keyboard shortcuts

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