controller

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2026 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MediaTypeKernel      = "application/vnd.ironcore.image.kernel"
	MediaTypeInitrd      = "application/vnd.ironcore.image.initramfs"
	MediaTypeSquashFS    = "application/vnd.ironcore.image.squashfs"
	MediaTypeKernelOld   = "application/io.gardenlinux.kernel"
	MediaTypeInitrdOld   = "application/io.gardenlinux.initrd"
	MediaTypeSquashFSOld = "application/io.gardenlinux.squashfs"
	CNAMEPrefixMetalPXE  = "metal_pxe"
)
View Source
const (
	MediaTypeUKI = "application/vnd.ironcore.image.uki"
)

Variables

This section is empty.

Functions

func BuildImageReference added in v0.3.0

func BuildImageReference(imageName, imageVersion string) string

BuildImageReference constructs a properly formatted OCI image reference from name and version. Uses @ separator for digest-based references (sha256:..., sha512:...) and : for tags.

func EnqueueServerBootConfigsReferencingSecret added in v0.3.0

func EnqueueServerBootConfigsReferencingSecret(ctx context.Context, c client.Client, secret client.Object) []reconcile.Request

EnqueueServerBootConfigsReferencingSecret finds all ServerBootConfigurations in the same namespace that reference the given Secret via IgnitionSecretRef and returns reconcile requests for them.

func ExtractServerNetworkIDs added in v0.3.0

func ExtractServerNetworkIDs(server *metalv1alpha1.Server, includeMACAddresses bool) []string

ExtractServerNetworkIDs extracts IP addresses (and optionally MAC addresses) from a Server's network interfaces. Returns a slice of IP addresses as strings. If includeMACAddresses is true, MAC addresses are also included.

func ParseImageReference added in v0.3.0

func ParseImageReference(image string) (imageName, imageVersion string, err error)

ParseImageReference parses an OCI image reference and returns the image name and version. It handles tagged references, digest references, and untagged references (defaulting to "latest").

func PatchServerBootConfigWithError added in v0.3.0

func PatchServerBootConfigWithError(
	ctx context.Context,
	c client.Client,
	namespacedName types.NamespacedName,
	err error,
) error

PatchServerBootConfigWithError updates the ServerBootConfiguration state to Error and sets an ImageValidation condition with the error details.

Types

type HTTPBootConfigReconciler

type HTTPBootConfigReconciler struct {
	client.Client
	Scheme *runtime.Scheme
}

HTTPBootConfigReconciler reconciles a HTTPBootConfig object

func (*HTTPBootConfigReconciler) Reconcile

func (*HTTPBootConfigReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type IPXEBootConfigReconciler

type IPXEBootConfigReconciler struct {
	client.Client
	Scheme *runtime.Scheme
}

IPXEBootConfigReconciler reconciles a IPXEBootConfig object

func (*IPXEBootConfigReconciler) Reconcile

func (*IPXEBootConfigReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type ServerBootConfigurationHTTPReconciler

type ServerBootConfigurationHTTPReconciler struct {
	client.Client
	Scheme            *runtime.Scheme
	ImageServerURL    string
	Architecture      string
	RegistryValidator *registry.Validator
}

func (*ServerBootConfigurationHTTPReconciler) Reconcile

func (*ServerBootConfigurationHTTPReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type ServerBootConfigurationPXEReconciler

type ServerBootConfigurationPXEReconciler struct {
	client.Client
	Scheme            *runtime.Scheme
	IPXEServiceURL    string
	Architecture      string
	RegistryValidator *registry.Validator
}

func (*ServerBootConfigurationPXEReconciler) Reconcile

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

func (*ServerBootConfigurationPXEReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

Jump to

Keyboard shortcuts

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