controllers

package
v0.11.2 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MachineFinalizer                  = "metal-api.onmetal.de/machine-finalizer"
	MachinePoolOOBNameAnnotation      = "metal-api.onmetal.de/oob-name"
	MachinePoolOOBNamespaceAnnotation = "metal-api.onmetal.de/oob-namespace"
)
View Source
const (
	IpxeTemplate string = "    #!ipxe\n\n    kernel https://ghcr.io/layer/{{.KernelDigest}}\n    " +
		"initrd={{.InitRAMFsDigest}}\n    " +
		"gl.url=https://ghcr.io/layer/{{.RootFSDigest}} ignition.config.url=http://2a10:afc0:e013:d000::5b4f/ignition\n    " +
		"{{.CommandLine}}\n\n    " +
		"initrd https://ghcr.io/layer/{{.InitRAMFsDigest}}\n    " +
		"boot"
)

Variables

View Source
var (
	ErrMetalMachineNotMatchedWithComputeMachines = errors.New("metal metalv1alpha4 not matched with compute machines")
	ErrMetalMachineListEmpty                     = errors.New("metal metalv1alpha4 list is empty")
	ErrMetalMachineListNotFound                  = errors.New("metal metalv1alpha4 list not found")
)
View Source
var OOBServiceAddr = poolv1alpha1.MachinePoolAddress{
	Type:    poolv1alpha1.MachinePoolInternalDNS,
	Address: "oob-console.oob.svc.cluster.local",
}

Functions

This section is empty.

Types

type ImageDescription

type ImageDescription struct {
	KernelDigest    string
	InitRAMFsDigest string
	RootFSDigest    string
	CommandLine     string
}

type ImageParser

type ImageParser interface {
	GetDescription(url string) (ImageDescription, error)
}

type IpxeReconciler

type IpxeReconciler struct {
	client.Client

	Log         logr.Logger
	Scheme      *runtime.Scheme
	ImageParser ImageParser
	Templater   Templater
}

IpxeReconciler reconciles an Ignition object.

func (*IpxeReconciler) Reconcile

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

func (*IpxeReconciler) SetupWithManager

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

type IpxeTemplater

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

func (*IpxeTemplater) GetTemplate

func (t *IpxeTemplater) GetTemplate(templateData string) (*template.Template, error)

type IroncoreImageParser added in v0.11.2

type IroncoreImageParser struct {
	Log      logr.Logger
	Registry *remote.Registry
}

func (*IroncoreImageParser) GetDescription added in v0.11.2

func (p *IroncoreImageParser) GetDescription(url string) (ImageDescription, error)

type MachinePoolReconciler

type MachinePoolReconciler struct {
	client.Client

	Log    logr.Logger
	Scheme *runtime.Scheme
}

MachinePoolReconciler reconciles a MachinePool object.

func (*MachinePoolReconciler) Reconcile

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

func (*MachinePoolReconciler) SetupWithManager

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

type MachinePowerReconciler

type MachinePowerReconciler struct {
	client.Client

	Log    logr.Logger
	Scheme *runtime.Scheme
}

MachinePowerReconciler reconciles a MachineReservation object.

func (*MachinePowerReconciler) Reconcile

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

func (*MachinePowerReconciler) SetupWithManager

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

type MachineReservationReconciler

type MachineReservationReconciler struct {
	client.Client

	Log    logr.Logger
	Scheme *runtime.Scheme
}

MachineReservationReconciler reconciles a MachineReservation object.

func (*MachineReservationReconciler) Reconcile

func (*MachineReservationReconciler) SetupWithManager

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

type Templater

type Templater interface {
	GetTemplate(templateData string) (*template.Template, error)
}

Jump to

Keyboard shortcuts

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