controllers

package
v0.6.6 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2024 License: MPL-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReconcileEnvironmentDefault

func ReconcileEnvironmentDefault(ctx context.Context, c client.Client, talosRelease, apiEndpoint string, apiPort uint16) error

ReconcileEnvironmentDefault ensures that Environment "default" exist.

func ReconcileServerClassAny

func ReconcileServerClassAny(ctx context.Context, c client.Client) error

ReconcileServerClassAny ensures that ServerClass "any" exist and is in desired state.

Types

type EnvironmentReconciler

type EnvironmentReconciler struct {
	client.Client
	Log          logr.Logger
	Scheme       *runtime.Scheme
	TalosRelease string
	APIEndpoint  string
	APIPort      uint16
}

EnvironmentReconciler reconciles a Environment object.

func (*EnvironmentReconciler) Reconcile

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

func (*EnvironmentReconciler) SetupWithManager

func (r *EnvironmentReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager, options controller.Options) error

type ServerClassReconciler

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

ServerClassReconciler reconciles a ServerClass object.

func (*ServerClassReconciler) Reconcile

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

func (*ServerClassReconciler) SetupWithManager

func (r *ServerClassReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager, options controller.Options) error

type ServerReconciler

type ServerReconciler struct {
	client.Client
	Log       logr.Logger
	Scheme    *runtime.Scheme
	APIReader client.Reader
	Recorder  record.EventRecorder

	RebootTimeout time.Duration
	PXEMode       siderotypes.PXEMode
}

ServerReconciler reconciles a Server object.

func (*ServerReconciler) Reconcile

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

func (*ServerReconciler) SetupWithManager

func (r *ServerReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager, options controller.Options) error

Jump to

Keyboard shortcuts

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