Documentation
¶
Index ¶
- Constants
- func BuildImageReference(imageName, imageVersion string) string
- func EnqueueServerBootConfigsReferencingSecret(ctx context.Context, c client.Client, secret client.Object) []reconcile.Request
- func ExtractServerNetworkIDs(server *metalv1alpha1.Server, includeMACAddresses bool) []string
- func ParseImageReference(image string) (imageName, imageVersion string, err error)
- func PatchServerBootConfigWithError(ctx context.Context, c client.Client, namespacedName types.NamespacedName, ...) error
- type HTTPBootConfigReconciler
- type IPXEBootConfigReconciler
- type ServerBootConfigurationHTTPReconciler
- type ServerBootConfigurationPXEReconciler
Constants ¶
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" )
const (
MediaTypeUKI = "application/vnd.ironcore.image.uki"
)
Variables ¶
This section is empty.
Functions ¶
func BuildImageReference ¶ added in v0.3.0
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
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 ¶
HTTPBootConfigReconciler reconciles a HTTPBootConfig object
func (*HTTPBootConfigReconciler) SetupWithManager ¶
func (r *HTTPBootConfigReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type IPXEBootConfigReconciler ¶
IPXEBootConfigReconciler reconciles a IPXEBootConfig object
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) 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 ¶
func (r *ServerBootConfigurationPXEReconciler) Reconcile(ctx context.Context, req 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.
func (*ServerBootConfigurationPXEReconciler) SetupWithManager ¶
func (r *ServerBootConfigurationPXEReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.