controllers

package
v0.0.0-...-5d8ad60 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ModuleReconciler

type ModuleReconciler struct {
	client.Client
	// contains filtered or unexported fields
}

ModuleReconciler reconciles a Module object

func NewModuleReconciler

func NewModuleReconciler(
	client client.Client,
	buildAPI build.Manager,
	daemonAPI daemonset.DaemonSetCreator,
	kernelAPI module.KernelMapper,
	metricsAPI metrics.Metrics,
	filter *filter.Filter,
	statusUpdaterAPI statusupdater.ModuleStatusUpdater) *ModuleReconciler

func (*ModuleReconciler) Reconcile

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

Reconcile lists all nodes and looks for kernels that match its mappings. For each mapping that matches at least one node in the cluster, it creates a DaemonSet running the container image on the nodes with a compatible kernel.

func (*ModuleReconciler) SetupWithManager

func (r *ModuleReconciler) SetupWithManager(mgr ctrl.Manager, kernelLabel string) error

SetupWithManager sets up the controller with the Manager.

type NodeKernelReconciler

type NodeKernelReconciler struct {
	// contains filtered or unexported fields
}

func NewNodeKernelReconciler

func NewNodeKernelReconciler(client client.Client, labelName string, filter *filter.Filter) *NodeKernelReconciler

func (*NodeKernelReconciler) Reconcile

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

func (*NodeKernelReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type PodNodeModuleReconciler

type PodNodeModuleReconciler struct {
	// contains filtered or unexported fields
}

func NewPodNodeModuleReconciler

func NewPodNodeModuleReconciler(client client.Client, daemonAPI daemonset.DaemonSetCreator) *PodNodeModuleReconciler

func (*PodNodeModuleReconciler) Reconcile

func (pnmr *PodNodeModuleReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

func (*PodNodeModuleReconciler) SetupWithManager

func (pnmr *PodNodeModuleReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type PreflightValidationReconciler

type PreflightValidationReconciler struct {
	// contains filtered or unexported fields
}

ClusterPreflightReconciler reconciles a PreflightValidation object

func NewPreflightValidationReconciler

func NewPreflightValidationReconciler(
	client client.Client,
	filter *filter.Filter,
	statusUpdater statusupdater.PreflightStatusUpdater,
	preflight preflight.PreflightAPI) *PreflightValidationReconciler

func (*PreflightValidationReconciler) Reconcile

Reconcile Reconiliation entry point

func (*PreflightValidationReconciler) SetupWithManager

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

Jump to

Keyboard shortcuts

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