v1alpha1

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2026 License: Apache-2.0 Imports: 9 Imported by: 7 modules, 14 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the metal.ironcore.dev API group +groupName=metal.ironcore.dev +kubebuilder:object:generate=true

Package v1alpha1 contains API Schema definitions for the metal v1alpha1 API group. +kubebuilder:object:generate=true +groupName=metal.ironcore.dev +kubebuilder:ac:generate=true

Index

Constants

View Source
const (
	// BMCType is the type of the BMC resource.
	BMCType = "bmc"

	// ProtocolRedfish is the Redfish protocol.
	ProtocolRedfish = "Redfish"
	// ProtocolRedfishLocal is the RedfishLocal protocol.
	ProtocolRedfishLocal = "RedfishLocal"
	// ProtocolRedfishWithRegistryPatch is the RedfishWithRegistryPatch protocol.
	ProtocolRedfishWithRegistryPatch = "RedfishWithRegistryPatch"
)
View Source
const (
	// BMCSecretUsernameKeyName is the secret key name for the username.
	BMCSecretUsernameKeyName = "username"
	// BMCSecretPasswordKeyName is the secret key name for the password.
	BMCSecretPasswordKeyName = "password"
)
View Source
const (
	// OperationAnnotation indicates operation should be performed outside the current spec definition flow.
	// This annotation performs Operation on the Server.
	OperationAnnotation = "metal.ironcore.dev/operation"

	// OperationAnnotationIgnore skips the reconciliation of a resource if OperationAnnotation is set to this.
	OperationAnnotationIgnore = "ignore-reconciliation"

	// OperationAnnotationIgnorePropagated skips the reconciliation of a resource's Child if OperationAnnotation is set to this.
	OperationAnnotationIgnorePropagated = "ignore-reconciliation-propagated"

	// OperationAnnotationIgnoreChild skips the reconciliation of a resource's Child if OperationAnnotation is set to this.
	OperationAnnotationIgnoreChild = "ignore-child-reconciliation"
	// OperationAnnotationIgnoreChildAndSelf skips the reconciliation of a resource's Child ans self if OperationAnnotation is set to this.
	OperationAnnotationIgnoreChildAndSelf = "ignore-child-and-self-reconciliation"
	// OperationAnnotationRetryChild restarts the reconciliation of a resource's Child if OperationAnnotation is set to this, from failed state -> initial state.
	OperationAnnotationRetryChild = "retry-child-reconciliation"
	// OperationAnnotationRetryChildAndSelf restarts the reconciliation of a resource's Child ans self if OperationAnnotation is set to this, from failed state -> initial state..
	OperationAnnotationRetryChildAndSelf = "retry-child-and-self-reconciliation"

	// AnnotationInstanceType is used to specify the type of Server.
	AnnotationInstanceType = "metal.ironcore.dev/instance-type"

	// OperationAnnotationForceUpdateOrDeleteInProgress allows update/Delete of a resource even if it is in progress.
	OperationAnnotationForceUpdateOrDeleteInProgress = "allow-in-progress-delete"
	// OperationAnnotationForceUpdateInProgress allows update of a resource even if it is in progress.
	OperationAnnotationForceUpdateInProgress = "allow-in-progress-update"

	// OperationAnnotationRetryFailed restarts the reconciliation of a resource from failed state -> initial state.
	OperationAnnotationRetryFailed = "retry-failed-state-resource"

	// OperationAnnotationRetryFailedPropagated restarts the reconciliation of a resource's child from failed state -> initial state.
	OperationAnnotationRetryFailedPropagated = "retry-failed-state-resource-propagated"

	// OperationAnnotationRotateCredentials is used to indicate that credentials should be rotated.
	OperationAnnotationRotateCredentials = "rotate-credentials"
)
View Source
const (
	// GracefulShutdownServerPower indicates to gracefully restart the baremetal server power.
	GracefulRestartServerPower = "graceful-restart-server"
	// HardRestartServerPower indicates to hard restart the baremetal server power.
	HardRestartServerPower = "hard-restart-server"
	// PowerOffServerPower indicates to power cycle the baremetal server.
	PowerCycleServerPower = "power-cycle-server"
	// ForceOffServerPower indicates to force powerOff the baremetal server power.
	ForceOffServerPower = "force-off-server"
	// ForceOnServerPower indicates to force powerOn the baremetal server power.
	ForceOnServerPower = "force-on-server"

	// GracefulShutdownBMC indicates to gracefully restart the baremetal server's BMC's power.
	GracefulRestartBMC = "graceful-restart-bmc"
)
View Source
const (
	// PowerOn indicates that the device is powered on.
	PowerOn Power = "On"

	// PowerOff indicates that the device is powered off.
	PowerOff Power = "Off"

	// LabelLocation is the label key for the user-defined location identifier (e.g. FRA-DC5-3F).
	LabelLocation = "metadata.metal.ironcore.dev/location"

	// LabelRack is the label key for the opaque rack identifier within a location.
	LabelRack = "metadata.metal.ironcore.dev/rack"

	// LabelShelf is the label key for the position within the rack (bottom-up U number).
	LabelShelf = "metadata.metal.ironcore.dev/shelf"

	// LabelHeight is the label key for the device height in rack units (U).
	LabelHeight = "metadata.metal.ironcore.dev/height"
)
View Source
const (
	// ServerMaintenanceNeededLabelKey is a label key that is used to indicate that a server requires maintenance.
	ServerMaintenanceNeededLabelKey = "metal.ironcore.dev/maintenance-needed"
	// ServerMaintenanceReasonAnnotationKey is an annotation key that is used to store the reason for a server maintenance.
	ServerMaintenanceReasonAnnotationKey = "metal.ironcore.dev/maintenance-reason"
	// ServerMaintenanceApprovedLabelKey is a label key that is used to store the approved status for a server maintenance.
	ServerMaintenanceApprovedLabelKey = "metal.ironcore.dev/maintenance-approved"
	// ServerMaintenanceRequestedLabelKey is a label key that is used to request server maintenance.
	ServerMaintenanceRequestedLabelKey = "metal.ironcore.dev/maintenance-requested"
)

Variables

View Source
var (
	// SchemeGroupVersion is group version used to register these objects.
	// This name is used by applyconfiguration generators (e.g. controller-gen).
	SchemeGroupVersion = schema.GroupVersion{Group: "metal.ironcore.dev", Version: "v1alpha1"}

	// GroupVersion is an alias for SchemeGroupVersion, for backward compatibility.
	GroupVersion = SchemeGroupVersion

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme.
	SchemeBuilder = runtime.NewSchemeBuilder(func(scheme *runtime.Scheme) error {
		metav1.AddToGroupVersion(scheme, SchemeGroupVersion)
		return nil
	})

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

func EqualIPPrefixes

func EqualIPPrefixes(a, b IPPrefix) bool

Types

type BIOSSettings

type BIOSSettings struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   BIOSSettingsSpec   `json:"spec,omitempty"`
	Status BIOSSettingsStatus `json:"status,omitempty"`
}

BIOSSettings is the Schema for the biossettings API.

func (*BIOSSettings) DeepCopy

func (in *BIOSSettings) DeepCopy() *BIOSSettings

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BIOSSettings.

func (*BIOSSettings) DeepCopyInto

func (in *BIOSSettings) DeepCopyInto(out *BIOSSettings)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*BIOSSettings) DeepCopyObject

func (in *BIOSSettings) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type BIOSSettingsFlowState

type BIOSSettingsFlowState string
const (
	// BIOSSettingsFlowStatePending specifies that the BIOS settings update for the current priority is pending.
	BIOSSettingsFlowStatePending BIOSSettingsFlowState = "Pending"
	// BIOSSettingsFlowStateInProgress specifies that the BIOS settings update for the current priority is in progress.
	BIOSSettingsFlowStateInProgress BIOSSettingsFlowState = "InProgress"
	// BIOSSettingsFlowStateApplied specifies that the BIOS settings for the current priority have been applied.
	BIOSSettingsFlowStateApplied BIOSSettingsFlowState = "Applied"
	// BIOSSettingsFlowStateFailed specifies that the BIOS settings update has failed.
	BIOSSettingsFlowStateFailed BIOSSettingsFlowState = "Failed"
)

type BIOSSettingsFlowStatus

type BIOSSettingsFlowStatus struct {
	// State represents the current state of the BIOS settings update for the current priority.
	// +optional
	State BIOSSettingsFlowState `json:"flowState,omitempty"`

	// Name identifies the current priority settings from the spec.
	// +optional
	Name string `json:"name,omitempty"`

	// Priority identifies the settings priority from the spec.
	// +optional
	Priority int32 `json:"priority"`

	// Conditions represents the latest available observations of the BIOSSettings's current Flowstate.
	// +patchStrategy=merge
	// +patchMergeKey=type
	// +optional
	Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,1,rep,name=conditions"`

	// LastAppliedTime represents the timestamp when the last setting was successfully applied.
	// +optional
	LastAppliedTime *metav1.Time `json:"lastAppliedTime,omitempty"`
}

func (*BIOSSettingsFlowStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BIOSSettingsFlowStatus.

func (*BIOSSettingsFlowStatus) DeepCopyInto

func (in *BIOSSettingsFlowStatus) DeepCopyInto(out *BIOSSettingsFlowStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type BIOSSettingsList

type BIOSSettingsList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []BIOSSettings `json:"items"`
}

BIOSSettingsList contains a list of BIOSSettings.

func (*BIOSSettingsList) DeepCopy

func (in *BIOSSettingsList) DeepCopy() *BIOSSettingsList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BIOSSettingsList.

func (*BIOSSettingsList) DeepCopyInto

func (in *BIOSSettingsList) DeepCopyInto(out *BIOSSettingsList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*BIOSSettingsList) DeepCopyObject

func (in *BIOSSettingsList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type BIOSSettingsSet

type BIOSSettingsSet struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   BIOSSettingsSetSpec   `json:"spec,omitempty"`
	Status BIOSSettingsSetStatus `json:"status,omitempty"`
}

BIOSSettingsSet is the Schema for the biossettingssets API.

func (*BIOSSettingsSet) DeepCopy

func (in *BIOSSettingsSet) DeepCopy() *BIOSSettingsSet

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BIOSSettingsSet.

func (*BIOSSettingsSet) DeepCopyInto

func (in *BIOSSettingsSet) DeepCopyInto(out *BIOSSettingsSet)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*BIOSSettingsSet) DeepCopyObject

func (in *BIOSSettingsSet) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type BIOSSettingsSetList

type BIOSSettingsSetList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []BIOSSettingsSet `json:"items"`
}

BIOSSettingsSetList contains a list of BIOSSettingsSet.

func (*BIOSSettingsSetList) DeepCopy

func (in *BIOSSettingsSetList) DeepCopy() *BIOSSettingsSetList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BIOSSettingsSetList.

func (*BIOSSettingsSetList) DeepCopyInto

func (in *BIOSSettingsSetList) DeepCopyInto(out *BIOSSettingsSetList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*BIOSSettingsSetList) DeepCopyObject

func (in *BIOSSettingsSetList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type BIOSSettingsSetSpec

type BIOSSettingsSetSpec struct {
	// BIOSSettingsTemplate defines the template for the BIOSSettings resource to be applied to the servers.
	BIOSSettingsTemplate BIOSSettingsTemplate `json:"biosSettingsTemplate,omitempty"`

	// ServerSelector specifies a label selector to identify the servers that are to be selected.
	// +required
	ServerSelector metav1.LabelSelector `json:"serverSelector"`
}

BIOSSettingsSetSpec defines the desired state of BIOSSettingsSet.

func (*BIOSSettingsSetSpec) DeepCopy

func (in *BIOSSettingsSetSpec) DeepCopy() *BIOSSettingsSetSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BIOSSettingsSetSpec.

func (*BIOSSettingsSetSpec) DeepCopyInto

func (in *BIOSSettingsSetSpec) DeepCopyInto(out *BIOSSettingsSetSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type BIOSSettingsSetStatus

type BIOSSettingsSetStatus struct {
	// FullyLabeledServers is the number of servers in the set.
	FullyLabeledServers int32 `json:"fullyLabeledServers,omitempty"`
	// AvailableBIOSSettings is the number of BIOSSettings currently created by the set.
	AvailableBIOSSettings int32 `json:"availableBIOSSettings,omitempty"`
	// PendingBIOSSettings is the total number of pending BIOSSettings in the set.
	PendingBIOSSettings int32 `json:"pendingBIOSSettings,omitempty"`
	// InProgressBIOSSettings is the total number of BIOSSettings in the set that are currently in progress.
	InProgressBIOSSettings int32 `json:"inProgressBIOSSettings,omitempty"`
	// CompletedBIOSSettings is the total number of completed BIOSSettings in the set.
	CompletedBIOSSettings int32 `json:"completedBIOSSettings,omitempty"`
	// FailedBIOSSettings is the total number of failed BIOSSettings in the set.
	FailedBIOSSettings int32 `json:"failedBIOSSettings,omitempty"`
}

BIOSSettingsSetStatus defines the observed state of BIOSSettingsSet.

func (*BIOSSettingsSetStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BIOSSettingsSetStatus.

func (*BIOSSettingsSetStatus) DeepCopyInto

func (in *BIOSSettingsSetStatus) DeepCopyInto(out *BIOSSettingsSetStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type BIOSSettingsSpec

type BIOSSettingsSpec struct {
	// BIOSSettingsTemplate defines the template for BIOS Settings to be applied on the servers.
	BIOSSettingsTemplate `json:",inline"`

	// ServerMaintenanceRef is a reference to a ServerMaintenance object that BIOSSettings has requested for the referred server.
	// +optional
	ServerMaintenanceRef *ObjectReference `json:"serverMaintenanceRef,omitempty"`

	// ServerRef is a reference to a specific server to apply the BIOS settings on.
	// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="serverRef is immutable"
	ServerRef *corev1.LocalObjectReference `json:"serverRef,omitempty"`
}

BIOSSettingsSpec defines the desired state of BIOSSettings.

func (*BIOSSettingsSpec) DeepCopy

func (in *BIOSSettingsSpec) DeepCopy() *BIOSSettingsSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BIOSSettingsSpec.

func (*BIOSSettingsSpec) DeepCopyInto

func (in *BIOSSettingsSpec) DeepCopyInto(out *BIOSSettingsSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type BIOSSettingsState

type BIOSSettingsState string

BIOSSettingsState specifies the current state of the BIOS Settings update.

const (
	// BIOSSettingsStatePending specifies that the BIOS settings update is waiting.
	BIOSSettingsStatePending BIOSSettingsState = "Pending"
	// BIOSSettingsStateInProgress specifies that the BIOS settings update is in progress.
	BIOSSettingsStateInProgress BIOSSettingsState = "InProgress"
	// BIOSSettingsStateApplied specifies that the BIOS settings have been applied.
	BIOSSettingsStateApplied BIOSSettingsState = "Applied"
	// BIOSSettingsStateFailed specifies that the BIOS settings update has failed.
	BIOSSettingsStateFailed BIOSSettingsState = "Failed"
)

type BIOSSettingsStatus

type BIOSSettingsStatus struct {
	// State represents the current state of the BIOS settings update.
	// +optional
	State BIOSSettingsState `json:"state,omitempty"`

	// FlowState is a list of individual BIOSSettings operation flows.
	FlowState []BIOSSettingsFlowStatus `json:"flowState,omitempty"`

	// LastAppliedTime represents the timestamp when the last setting was successfully applied.
	// +optional
	LastAppliedTime *metav1.Time `json:"lastAppliedTime,omitempty"`

	// FailedAttempts is the number of automatic retry attempts made after failure.
	// +optional
	FailedAttempts int32 `json:"failedAttempts,omitempty"`

	// ObservedGeneration is the most recent generation observed by the controller.
	// +optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`

	// Conditions represents the latest available observations of the BIOSSettings's current state.
	// +patchStrategy=merge
	// +patchMergeKey=type
	// +optional
	Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,1,rep,name=conditions"`
}

BIOSSettingsStatus defines the observed state of BIOSSettings.

func (*BIOSSettingsStatus) DeepCopy

func (in *BIOSSettingsStatus) DeepCopy() *BIOSSettingsStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BIOSSettingsStatus.

func (*BIOSSettingsStatus) DeepCopyInto

func (in *BIOSSettingsStatus) DeepCopyInto(out *BIOSSettingsStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type BIOSSettingsTemplate

type BIOSSettingsTemplate struct {
	// Version specifies the software version (e.g. BIOS, BMC) these settings apply to.
	// +required
	Version string `json:"version"`

	// SettingsFlow contains the BIOS settings sequence to apply in the given order.
	// +optional
	SettingsFlow []SettingsFlowItem `json:"settingsFlow,omitempty"`

	// RetryPolicy defines the retry behavior for automatic retries on transient failures.
	// +optional
	RetryPolicy *RetryPolicy `json:"retryPolicy,omitempty"`

	// ServerMaintenancePolicy is a maintenance policy to be enforced on the server.
	// +optional
	ServerMaintenancePolicy ServerMaintenancePolicy `json:"serverMaintenancePolicy,omitempty"`
}

func (*BIOSSettingsTemplate) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BIOSSettingsTemplate.

func (*BIOSSettingsTemplate) DeepCopyInto

func (in *BIOSSettingsTemplate) DeepCopyInto(out *BIOSSettingsTemplate)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type BIOSVersion

type BIOSVersion struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   BIOSVersionSpec   `json:"spec,omitempty"`
	Status BIOSVersionStatus `json:"status,omitempty"`
}

BIOSVersion is the Schema for the biosversions API.

func (*BIOSVersion) DeepCopy

func (in *BIOSVersion) DeepCopy() *BIOSVersion

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BIOSVersion.

func (*BIOSVersion) DeepCopyInto

func (in *BIOSVersion) DeepCopyInto(out *BIOSVersion)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*BIOSVersion) DeepCopyObject

func (in *BIOSVersion) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type BIOSVersionList

type BIOSVersionList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []BIOSVersion `json:"items"`
}

BIOSVersionList contains a list of BIOSVersion.

func (*BIOSVersionList) DeepCopy

func (in *BIOSVersionList) DeepCopy() *BIOSVersionList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BIOSVersionList.

func (*BIOSVersionList) DeepCopyInto

func (in *BIOSVersionList) DeepCopyInto(out *BIOSVersionList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*BIOSVersionList) DeepCopyObject

func (in *BIOSVersionList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type BIOSVersionSet

type BIOSVersionSet struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   BIOSVersionSetSpec   `json:"spec,omitempty"`
	Status BIOSVersionSetStatus `json:"status,omitempty"`
}

BIOSVersionSet is the Schema for the biosversionsets API.

func (*BIOSVersionSet) DeepCopy

func (in *BIOSVersionSet) DeepCopy() *BIOSVersionSet

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BIOSVersionSet.

func (*BIOSVersionSet) DeepCopyInto

func (in *BIOSVersionSet) DeepCopyInto(out *BIOSVersionSet)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*BIOSVersionSet) DeepCopyObject

func (in *BIOSVersionSet) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type BIOSVersionSetList

type BIOSVersionSetList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []BIOSVersionSet `json:"items"`
}

BIOSVersionSetList contains a list of BIOSVersionSet.

func (*BIOSVersionSetList) DeepCopy

func (in *BIOSVersionSetList) DeepCopy() *BIOSVersionSetList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BIOSVersionSetList.

func (*BIOSVersionSetList) DeepCopyInto

func (in *BIOSVersionSetList) DeepCopyInto(out *BIOSVersionSetList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*BIOSVersionSetList) DeepCopyObject

func (in *BIOSVersionSetList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type BIOSVersionSetSpec

type BIOSVersionSetSpec struct {
	// ServerSelector specifies a label selector to identify the servers that are to be selected.
	// +required
	ServerSelector metav1.LabelSelector `json:"serverSelector"`

	// BIOSVersionTemplate defines the template for the BIOSVersion resource to be applied to the servers.
	BIOSVersionTemplate BIOSVersionTemplate `json:"biosVersionTemplate,omitempty"`
}

BIOSVersionSetSpec defines the desired state of BIOSVersionSet.

func (*BIOSVersionSetSpec) DeepCopy

func (in *BIOSVersionSetSpec) DeepCopy() *BIOSVersionSetSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BIOSVersionSetSpec.

func (*BIOSVersionSetSpec) DeepCopyInto

func (in *BIOSVersionSetSpec) DeepCopyInto(out *BIOSVersionSetSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type BIOSVersionSetStatus

type BIOSVersionSetStatus struct {
	// FullyLabeledServers is the number of servers in the set.
	FullyLabeledServers int32 `json:"fullyLabeledServers,omitempty"`
	// AvailableBIOSVersion is the number of BIOSVersion created by the set.
	AvailableBIOSVersion int32 `json:"availableBIOSVersion,omitempty"`
	// PendingBIOSVersion is the total number of pending BIOSVersion in the set.
	PendingBIOSVersion int32 `json:"pendingBIOSVersion,omitempty"`
	// InProgressBIOSVersion is the total number of BIOSVersion resources in the set that are currently in progress.
	InProgressBIOSVersion int32 `json:"inProgressBIOSVersion,omitempty"`
	// CompletedBIOSVersion is the total number of completed BIOSVersion in the set.
	CompletedBIOSVersion int32 `json:"completedBIOSVersion,omitempty"`
	// FailedBIOSVersion is the total number of failed BIOSVersion in the set.
	FailedBIOSVersion int32 `json:"failedBIOSVersion,omitempty"`
}

BIOSVersionSetStatus defines the observed state of BIOSVersionSet.

func (*BIOSVersionSetStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BIOSVersionSetStatus.

func (*BIOSVersionSetStatus) DeepCopyInto

func (in *BIOSVersionSetStatus) DeepCopyInto(out *BIOSVersionSetStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type BIOSVersionSpec

type BIOSVersionSpec struct {
	// BIOSVersionTemplate defines the template for Version to be applied on the servers.
	BIOSVersionTemplate `json:",inline"`

	// ServerMaintenanceRef is a reference to a ServerMaintenance object that the controller has requested for the referred server.
	// +optional
	ServerMaintenanceRef *ObjectReference `json:"serverMaintenanceRef,omitempty"`

	// ServerRef is a reference to a specific server to apply the BIOS upgrade on.
	// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="serverRef is immutable"
	// +optional
	ServerRef *corev1.LocalObjectReference `json:"serverRef,omitempty"`
}

BIOSVersionSpec defines the desired state of BIOSVersion.

func (*BIOSVersionSpec) DeepCopy

func (in *BIOSVersionSpec) DeepCopy() *BIOSVersionSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BIOSVersionSpec.

func (*BIOSVersionSpec) DeepCopyInto

func (in *BIOSVersionSpec) DeepCopyInto(out *BIOSVersionSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type BIOSVersionState

type BIOSVersionState string
const (
	// BIOSVersionStatePending specifies that the BIOS upgrade is waiting.
	BIOSVersionStatePending BIOSVersionState = "Pending"
	// BIOSVersionStateInProgress specifies that upgrading BIOS is in progress.
	BIOSVersionStateInProgress BIOSVersionState = "InProgress"
	// BIOSVersionStateCompleted specifies that the BIOS upgrade has been completed.
	BIOSVersionStateCompleted BIOSVersionState = "Completed"
	// BIOSVersionStateFailed specifies that the BIOS upgrade has failed.
	BIOSVersionStateFailed BIOSVersionState = "Failed"
)

type BIOSVersionStatus

type BIOSVersionStatus struct {
	// State represents the current state of the BIOS upgrade task.
	// +optional
	State BIOSVersionState `json:"state,omitempty"`

	// UpgradeTask contains the state of the Upgrade Task created by the BMC
	// +optional
	UpgradeTask *Task `json:"upgradeTask,omitempty"`

	// FailedAttempts is the number of automatic retry attempts made after failure.
	// +optional
	FailedAttempts int32 `json:"failedAttempts,omitempty"`

	// ObservedGeneration is the most recent generation observed by the controller.
	// +optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`

	// Conditions represents the latest available observations of the BIOS version upgrade state.
	// +patchStrategy=merge
	// +patchMergeKey=type
	// +optional
	Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,1,rep,name=conditions"`
}

BIOSVersionStatus defines the observed state of BIOSVersion.

func (*BIOSVersionStatus) DeepCopy

func (in *BIOSVersionStatus) DeepCopy() *BIOSVersionStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BIOSVersionStatus.

func (*BIOSVersionStatus) DeepCopyInto

func (in *BIOSVersionStatus) DeepCopyInto(out *BIOSVersionStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type BIOSVersionTemplate

type BIOSVersionTemplate struct {
	// Version specifies the BIOS version to upgrade to.
	// +required
	Version string `json:"version"`

	// UpdatePolicy indicates whether the server's upgrade service should bypass vendor update policies.
	// +optional
	UpdatePolicy *UpdatePolicy `json:"updatePolicy,omitempty"`

	// Image specifies the image to use to upgrade to the given BIOS version.
	// +required
	Image ImageSpec `json:"image"`

	// ServerMaintenancePolicy is a maintenance policy to be enforced on the server.
	// +optional
	ServerMaintenancePolicy ServerMaintenancePolicy `json:"serverMaintenancePolicy,omitempty"`

	// RetryPolicy defines the retry behavior for automatic retries on transient failures.
	// +optional
	RetryPolicy *RetryPolicy `json:"retryPolicy,omitempty"`
}

func (*BIOSVersionTemplate) DeepCopy

func (in *BIOSVersionTemplate) DeepCopy() *BIOSVersionTemplate

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BIOSVersionTemplate.

func (*BIOSVersionTemplate) DeepCopyInto

func (in *BIOSVersionTemplate) DeepCopyInto(out *BIOSVersionTemplate)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type BMC

type BMC struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   BMCSpec   `json:"spec,omitempty"`
	Status BMCStatus `json:"status,omitempty"`
}

BMC is the Schema for the bmcs API

func (*BMC) DeepCopy

func (in *BMC) DeepCopy() *BMC

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BMC.

func (*BMC) DeepCopyInto

func (in *BMC) DeepCopyInto(out *BMC)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*BMC) DeepCopyObject

func (in *BMC) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type BMCAccess

type BMCAccess struct {
	// Protocol specifies the protocol to be used for communicating with the BMC.
	// +required
	Protocol Protocol `json:"protocol"`

	// Address is the address of the BMC.
	// +required
	Address string `json:"address"`

	// BMCSecretRef is a reference to the BMCSecret object that contains the credentials
	// required to access the BMC.
	// +required
	BMCSecretRef v1.LocalObjectReference `json:"bmcSecretRef"`
}

BMCAccess defines the access details for the BMC.

func (*BMCAccess) DeepCopy

func (in *BMCAccess) DeepCopy() *BMCAccess

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BMCAccess.

func (*BMCAccess) DeepCopyInto

func (in *BMCAccess) DeepCopyInto(out *BMCAccess)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type BMCList

type BMCList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []BMC `json:"items"`
}

BMCList contains a list of BMC

func (*BMCList) DeepCopy

func (in *BMCList) DeepCopy() *BMCList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BMCList.

func (*BMCList) DeepCopyInto

func (in *BMCList) DeepCopyInto(out *BMCList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*BMCList) DeepCopyObject

func (in *BMCList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type BMCPowerState

type BMCPowerState string

BMCPowerState defines the possible power states for a BMC.

const (
	// OnPowerState the system is powered on.
	OnPowerState BMCPowerState = "On"
	// OffPowerState the system is powered off, although some components may
	// continue to have AUX power such as management controller.
	OffPowerState BMCPowerState = "Off"
	// PausedPowerState the system is paused.
	PausedPowerState BMCPowerState = "Paused"
	// PoweringOnPowerState A temporary state between Off and On. This
	// temporary state can be very short.
	PoweringOnPowerState BMCPowerState = "PoweringOn"
	// PoweringOffPowerState A temporary state between On and Off. The power
	// off action can take time while the OS is in the shutdown process.
	PoweringOffPowerState BMCPowerState = "PoweringOff"
	// UnknownPowerState indicates that power state is unknown for this BMC.
	UnknownPowerState BMCPowerState = "Unknown"
)

type BMCSecret

type BMCSecret struct {
	metav1.TypeMeta `json:",inline"`
	// Standard object's metadata.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`

	// Immutable, if set to true, ensures that data stored in the Secret cannot
	// be updated (only object metadata can be modified).
	// If not set to true, the field can be modified at any time.
	// Defaulted to nil.
	// +optional
	Immutable *bool `json:"immutable,omitempty" protobuf:"varint,5,opt,name=immutable"`

	// Data contains the secret data. Each key must consist of alphanumeric
	// characters, '-', '_' or '.'. The serialized form of the secret data is a
	// base64 encoded string, representing the arbitrary (possibly non-string)
	// data value here. Described in https://tools.ietf.org/html/rfc4648#section-4
	// +optional
	Data map[string][]byte `json:"data,omitempty" protobuf:"bytes,2,rep,name=data"`

	// stringData allows specifying non-binary secret data in string form.
	// It is provided as a write-only input field for convenience.
	// All keys and values are merged into the data field on write, overwriting any existing values.
	// The stringData field is never output when reading from the API.
	// +k8s:conversion-gen=false
	// +optional
	StringData map[string]string `json:"stringData,omitempty" protobuf:"bytes,4,rep,name=stringData"`

	// Used to facilitate programmatic handling of secret data.
	// More info: https://kubernetes.io/docs/concepts/configuration/secret/#secret-types
	// +optional
	Type corev1.SecretType `json:"type,omitempty" protobuf:"bytes,3,opt,name=type,casttype=SecretType"`
}

BMCSecret is the Schema for the bmcsecrets API

func (*BMCSecret) DeepCopy

func (in *BMCSecret) DeepCopy() *BMCSecret

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BMCSecret.

func (*BMCSecret) DeepCopyInto

func (in *BMCSecret) DeepCopyInto(out *BMCSecret)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*BMCSecret) DeepCopyObject

func (in *BMCSecret) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type BMCSecretList

type BMCSecretList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []BMCSecret `json:"items"`
}

BMCSecretList contains a list of BMCSecret

func (*BMCSecretList) DeepCopy

func (in *BMCSecretList) DeepCopy() *BMCSecretList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BMCSecretList.

func (*BMCSecretList) DeepCopyInto

func (in *BMCSecretList) DeepCopyInto(out *BMCSecretList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*BMCSecretList) DeepCopyObject

func (in *BMCSecretList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type BMCSettings

type BMCSettings struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   BMCSettingsSpec   `json:"spec,omitempty"`
	Status BMCSettingsStatus `json:"status,omitempty"`
}

BMCSettings is the Schema for the BMCSettings API.

func (*BMCSettings) DeepCopy

func (in *BMCSettings) DeepCopy() *BMCSettings

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BMCSettings.

func (*BMCSettings) DeepCopyInto

func (in *BMCSettings) DeepCopyInto(out *BMCSettings)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*BMCSettings) DeepCopyObject

func (in *BMCSettings) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type BMCSettingsList

type BMCSettingsList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []BMCSettings `json:"items"`
}

BMCSettingsList contains a list of BMCSettings.

func (*BMCSettingsList) DeepCopy

func (in *BMCSettingsList) DeepCopy() *BMCSettingsList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BMCSettingsList.

func (*BMCSettingsList) DeepCopyInto

func (in *BMCSettingsList) DeepCopyInto(out *BMCSettingsList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*BMCSettingsList) DeepCopyObject

func (in *BMCSettingsList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type BMCSettingsSet added in v0.2.0

type BMCSettingsSet struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   BMCSettingsSetSpec   `json:"spec,omitempty"`
	Status BMCSettingsSetStatus `json:"status,omitempty"`
}

BMCSettingsSet is the Schema for the bmcsettingssets API.

func (*BMCSettingsSet) DeepCopy added in v0.2.0

func (in *BMCSettingsSet) DeepCopy() *BMCSettingsSet

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BMCSettingsSet.

func (*BMCSettingsSet) DeepCopyInto added in v0.2.0

func (in *BMCSettingsSet) DeepCopyInto(out *BMCSettingsSet)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*BMCSettingsSet) DeepCopyObject added in v0.2.0

func (in *BMCSettingsSet) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type BMCSettingsSetList added in v0.2.0

type BMCSettingsSetList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []BMCSettingsSet `json:"items"`
}

BMCSettingsSetList contains a list of BMCSettingsSet.

func (*BMCSettingsSetList) DeepCopy added in v0.2.0

func (in *BMCSettingsSetList) DeepCopy() *BMCSettingsSetList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BMCSettingsSetList.

func (*BMCSettingsSetList) DeepCopyInto added in v0.2.0

func (in *BMCSettingsSetList) DeepCopyInto(out *BMCSettingsSetList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*BMCSettingsSetList) DeepCopyObject added in v0.2.0

func (in *BMCSettingsSetList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type BMCSettingsSetSpec added in v0.2.0

type BMCSettingsSetSpec struct {
	// BMCSettingsTemplate defines the template for the BMCSettings resource to be applied to the BMCs.
	// +required
	BMCSettingsTemplate BMCSettingsTemplate `json:"bmcSettingsTemplate"`
	// BMCSelector specifies a label selector to identify the BMCs to be selected.
	// +required
	BMCSelector metav1.LabelSelector `json:"bmcSelector"`
}

BMCSettingsSetSpec defines the desired state of BMCSettingsSet.

func (*BMCSettingsSetSpec) DeepCopy added in v0.2.0

func (in *BMCSettingsSetSpec) DeepCopy() *BMCSettingsSetSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BMCSettingsSetSpec.

func (*BMCSettingsSetSpec) DeepCopyInto added in v0.2.0

func (in *BMCSettingsSetSpec) DeepCopyInto(out *BMCSettingsSetSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type BMCSettingsSetStatus added in v0.2.0

type BMCSettingsSetStatus struct {
	// FullyLabeledBMCs is the number of BMCs in the set.
	FullyLabeledBMCs int32 `json:"fullyLabeledBMCs,omitempty"`
	// AvailableBMCSettings is the number of BMCSettings currently created by the set.
	AvailableBMCSettings int32 `json:"availableBMCSettings,omitempty"`
	// PendingBMCSettings is the total number of pending BMCSettings in the set.
	PendingBMCSettings int32 `json:"pendingBMCSettings,omitempty"`
	// InProgressBMCSettings is the total number of BMCSettings in the set that are currently in progress.
	InProgressBMCSettings int32 `json:"inProgressBMCSettings,omitempty"`
	// CompletedBMCSettings is the total number of completed BMCSettings in the set.
	CompletedBMCSettings int32 `json:"completedBMCSettings,omitempty"`
	// FailedBMCSettings is the total number of failed BMCSettings in the set.
	FailedBMCSettings int32 `json:"failedBMCSettings,omitempty"`
}

BMCSettingsSetStatus defines the observed state of BMCSettingsSet.

func (*BMCSettingsSetStatus) DeepCopy added in v0.2.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BMCSettingsSetStatus.

func (*BMCSettingsSetStatus) DeepCopyInto added in v0.2.0

func (in *BMCSettingsSetStatus) DeepCopyInto(out *BMCSettingsSetStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type BMCSettingsSpec

type BMCSettingsSpec struct {
	BMCSettingsTemplate `json:",inline"`

	// ServerMaintenanceRefs are references to ServerMaintenance objects which are created by the controller for each
	// server that needs to be updated with the BMC settings.
	// +optional
	ServerMaintenanceRefs []ServerMaintenanceRefItem `json:"serverMaintenanceRefs,omitempty"`

	// BMCRef is a reference to a specific BMC to apply settings to.
	// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="BMCRef is immutable"
	// +required
	BMCRef *corev1.LocalObjectReference `json:"BMCRef,omitempty"`
}

BMCSettingsSpec defines the desired state of BMCSettings.

func (*BMCSettingsSpec) DeepCopy

func (in *BMCSettingsSpec) DeepCopy() *BMCSettingsSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BMCSettingsSpec.

func (*BMCSettingsSpec) DeepCopyInto

func (in *BMCSettingsSpec) DeepCopyInto(out *BMCSettingsSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type BMCSettingsState

type BMCSettingsState string

BMCSettingsState specifies the current state of the server maintenance.

const (
	// BMCSettingsStatePending specifies that the BMC settings update is waiting.
	BMCSettingsStatePending BMCSettingsState = "Pending"
	// BMCSettingsStateInProgress specifies that the BMC settings changes are in progress.
	BMCSettingsStateInProgress BMCSettingsState = "InProgress"
	// BMCSettingsStateApplied specifies that the BMC settings have been applied.
	BMCSettingsStateApplied BMCSettingsState = "Applied"
	// BMCSettingsStateFailed specifies that the BMC settings update has failed.
	BMCSettingsStateFailed BMCSettingsState = "Failed"
)

type BMCSettingsStatus

type BMCSettingsStatus struct {
	// State represents the current state of the BMC configuration task.
	// +optional
	State BMCSettingsState `json:"state,omitempty"`

	// FailedAttempts is the number of automatic retry attempts made after failure.
	// +optional
	FailedAttempts int32 `json:"failedAttempts,omitempty"`

	// ObservedGeneration is the most recent generation observed by the controller.
	// +optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`

	// Conditions represents the latest available observations of the BMC Settings Resource state.
	// +patchStrategy=merge
	// +patchMergeKey=type
	// +optional
	Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,1,rep,name=conditions"`
}

BMCSettingsStatus defines the observed state of BMCSettings.

func (*BMCSettingsStatus) DeepCopy

func (in *BMCSettingsStatus) DeepCopy() *BMCSettingsStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BMCSettingsStatus.

func (*BMCSettingsStatus) DeepCopyInto

func (in *BMCSettingsStatus) DeepCopyInto(out *BMCSettingsStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type BMCSettingsTemplate added in v0.2.0

type BMCSettingsTemplate struct {
	// Version specifies the BMC firmware version for which the settings should be applied.
	// +required
	Version string `json:"version"`

	// SettingsMap contains BMC settings as a map.
	// +optional
	SettingsMap map[string]string `json:"settings,omitempty"`

	// Variables is a list of variables that can be used in the settings for templating.
	// +kubebuilder:validation:MaxItems=64
	// +optional
	Variables []Variable `json:"variables,omitempty"`

	// RetryPolicy defines the retry behavior for automatic retries on transient failures.
	// +optional
	RetryPolicy *RetryPolicy `json:"retryPolicy,omitempty"`

	// ServerMaintenancePolicy is a maintenance policy to be applied on the server.
	// +optional
	ServerMaintenancePolicy ServerMaintenancePolicy `json:"serverMaintenancePolicy,omitempty"`
}

BMCSettingsTemplate defines the template for BMC settings to be applied. +kubebuilder:validation:XValidation:rule="!has(self.variables) || self.variables.all(v, self.variables.filter(w, w.key == v.key).size() == 1)",message="variable keys must be unique"

func (*BMCSettingsTemplate) DeepCopy added in v0.2.0

func (in *BMCSettingsTemplate) DeepCopy() *BMCSettingsTemplate

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BMCSettingsTemplate.

func (*BMCSettingsTemplate) DeepCopyInto added in v0.2.0

func (in *BMCSettingsTemplate) DeepCopyInto(out *BMCSettingsTemplate)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type BMCSpec

type BMCSpec struct {
	// BMCUUID is the unique identifier for the BMC as defined in Redfish API.
	// +kubebuilder:validation:Optional
	// +optional
	BMCUUID string `json:"bmcUUID,omitempty"`

	// EndpointRef is a reference to the Endpoint object that contains the network access information for the BMC.
	// +optional
	// +kubebuilder:validation:Optional
	// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="endpointRef is immutable"
	EndpointRef *v1.LocalObjectReference `json:"endpointRef"`

	// Endpoint specifies inline network access details for the BMC.
	// +optional
	// +kubebuilder:validation:Optional
	// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="access is immutable"
	Endpoint *InlineEndpoint `json:"access,omitempty"`

	// BMCSecretRef is a reference to the BMCSecret object that contains the credentials
	// required to access the BMC.
	// +required
	BMCSecretRef v1.LocalObjectReference `json:"bmcSecretRef"`

	// Protocol specifies the protocol to be used for communicating with the BMC.
	// +required
	Protocol Protocol `json:"protocol"`

	// ConsoleProtocol specifies the protocol to be used for console access to the BMC.
	// +optional
	ConsoleProtocol *ConsoleProtocol `json:"consoleProtocol,omitempty"`

	// BMCSettingRef is a reference to a BMCSettings object that specifies
	// the BMC configuration for this BMC.
	// +optional
	BMCSettingRef *v1.LocalObjectReference `json:"bmcSettingsRef,omitempty"`

	// Hostname is the hostname of the BMC.
	// +optional
	Hostname *string `json:"hostname,omitempty"`
}

BMCSpec defines the desired state of BMC +kubebuilder:validation:XValidation:rule="has(self.access) != has(self.endpointRef)",message="exactly one of access or endpointRef needs to be set"

func (*BMCSpec) DeepCopy

func (in *BMCSpec) DeepCopy() *BMCSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BMCSpec.

func (*BMCSpec) DeepCopyInto

func (in *BMCSpec) DeepCopyInto(out *BMCSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type BMCState

type BMCState string

BMCState defines the possible states of a BMC.

const (
	// BMCStateEnabled indicates that the BMC is enabled and functioning correctly.
	BMCStateEnabled BMCState = "Enabled"

	// BMCStateError indicates that there is an error with the BMC.
	BMCStateError BMCState = "Error"

	// BMCStatePending indicates that there is an error connecting with the BMC.
	BMCStatePending BMCState = "Pending"
)

type BMCStatus

type BMCStatus struct {
	// MACAddress is the MAC address of the BMC.
	// +kubebuilder:validation:Pattern=`^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$`
	// +optional
	MACAddress string `json:"macAddress,omitempty"`

	// IP is the IP address of the BMC.
	// +kubebuilder:validation:Type=string
	// +kubebuilder:validation:Schemaless
	// +optional
	IP IP `json:"ip,omitempty"`

	// Manufacturer is the name of the BMC manufacturer.
	// +optional
	Manufacturer string `json:"manufacturer,omitempty"`

	// Model is the model number or name of the BMC.
	// +optional
	Model string `json:"model,omitempty"`

	// SKU is the stock keeping unit identifier for the BMC.
	// +optional
	SKU string `json:"sku,omitempty"`

	// SerialNumber is the serial number of the BMC.
	// +optional
	SerialNumber string `json:"serialNumber,omitempty"`

	// FirmwareVersion is the version of the firmware currently running on the BMC.
	// +optional
	FirmwareVersion string `json:"firmwareVersion,omitempty"`

	// State represents the current state of the BMC.
	// kubebuilder:validation:Enum=Enabled;Error;Pending
	// +kubebuilder:default=Pending
	// +optional
	State BMCState `json:"state,omitempty"`

	// PowerState represents the current power state of the BMC.
	// +optional
	PowerState BMCPowerState `json:"powerState,omitempty"`

	// LastResetTime is the timestamp of the last reset operation performed on the BMC.
	// +optional
	LastResetTime *metav1.Time `json:"lastResetTime,omitempty"`

	// MetricsReportSubscriptionLink is the link to the metrics report subscription of the bmc.
	// +optional
	MetricsReportSubscriptionLink string `json:"metricsReportSubscriptionLink,omitempty"`

	// EventsSubscriptionLink is the link to the events subscription of the bmc.
	// +optional
	EventsSubscriptionLink string `json:"eventsSubscriptionLink,omitempty"`

	// Conditions represents the latest available observations of the BMC's current state.
	// +patchStrategy=merge
	// +patchMergeKey=type
	// +optional
	Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,1,rep,name=conditions"`
}

BMCStatus defines the observed state of BMC.

func (*BMCStatus) DeepCopy

func (in *BMCStatus) DeepCopy() *BMCStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BMCStatus.

func (*BMCStatus) DeepCopyInto

func (in *BMCStatus) DeepCopyInto(out *BMCStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type BMCUser added in v0.3.0

type BMCUser struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   BMCUserSpec   `json:"spec,omitempty"`
	Status BMCUserStatus `json:"status,omitempty"`
}

BMCUser is the Schema for the bmcusers API.

func (*BMCUser) DeepCopy added in v0.3.0

func (in *BMCUser) DeepCopy() *BMCUser

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BMCUser.

func (*BMCUser) DeepCopyInto added in v0.3.0

func (in *BMCUser) DeepCopyInto(out *BMCUser)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*BMCUser) DeepCopyObject added in v0.3.0

func (in *BMCUser) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type BMCUserList added in v0.3.0

type BMCUserList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []BMCUser `json:"items"`
}

BMCUserList contains a list of BMCUser.

func (*BMCUserList) DeepCopy added in v0.3.0

func (in *BMCUserList) DeepCopy() *BMCUserList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BMCUserList.

func (*BMCUserList) DeepCopyInto added in v0.3.0

func (in *BMCUserList) DeepCopyInto(out *BMCUserList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*BMCUserList) DeepCopyObject added in v0.3.0

func (in *BMCUserList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type BMCUserSpec added in v0.3.0

type BMCUserSpec struct {
	// UserName is the username of the BMC user.
	UserName string `json:"userName"`

	// RoleID is the ID of the role to assign to the user.
	RoleID string `json:"roleID"`

	// Description is a description for the BMC user.
	Description string `json:"description,omitempty"`

	// RotationPeriod defines how often the password should be rotated.
	// If not set, the password will not be rotated.
	RotationPeriod *metav1.Duration `json:"rotationPeriod,omitempty"`

	// BMCSecretRef references the BMCSecret containing the credentials for this user.
	// If not set, the operator will generate a secure password based on BMC manufacturer requirements.
	BMCSecretRef *v1.LocalObjectReference `json:"bmcSecretRef,omitempty"`

	// BMCRef references the BMC this user should be created on.
	BMCRef *v1.LocalObjectReference `json:"bmcRef,omitempty"`
}

BMCUserSpec defines the desired state of BMCUser.

func (*BMCUserSpec) DeepCopy added in v0.3.0

func (in *BMCUserSpec) DeepCopy() *BMCUserSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BMCUserSpec.

func (*BMCUserSpec) DeepCopyInto added in v0.3.0

func (in *BMCUserSpec) DeepCopyInto(out *BMCUserSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type BMCUserStatus added in v0.3.0

type BMCUserStatus struct {
	// EffectiveBMCSecretRef references the BMCSecret currently used for this user.
	// This may differ from Spec.BMCSecretRef if the operator generated a password.
	EffectiveBMCSecretRef *v1.LocalObjectReference `json:"effectiveBMCSecretRef,omitempty"`

	// LastRotation is the timestamp of the last password rotation.
	LastRotation *metav1.Time `json:"lastRotation,omitempty"`

	// PasswordExpiration is the timestamp when the password will expire.
	PasswordExpiration *metav1.Time `json:"passwordExpiration,omitempty"`

	// ID is the identifier of the user in the BMC system.
	ID string `json:"id,omitempty"`
}

BMCUserStatus defines the observed state of BMCUser.

func (*BMCUserStatus) DeepCopy added in v0.3.0

func (in *BMCUserStatus) DeepCopy() *BMCUserStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BMCUserStatus.

func (*BMCUserStatus) DeepCopyInto added in v0.3.0

func (in *BMCUserStatus) DeepCopyInto(out *BMCUserStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type BMCVersion

type BMCVersion struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   BMCVersionSpec   `json:"spec,omitempty"`
	Status BMCVersionStatus `json:"status,omitempty"`
}

BMCVersion is the Schema for the bmcversions API.

func (*BMCVersion) DeepCopy

func (in *BMCVersion) DeepCopy() *BMCVersion

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BMCVersion.

func (*BMCVersion) DeepCopyInto

func (in *BMCVersion) DeepCopyInto(out *BMCVersion)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*BMCVersion) DeepCopyObject

func (in *BMCVersion) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type BMCVersionList

type BMCVersionList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []BMCVersion `json:"items"`
}

BMCVersionList contains a list of BMCVersion.

func (*BMCVersionList) DeepCopy

func (in *BMCVersionList) DeepCopy() *BMCVersionList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BMCVersionList.

func (*BMCVersionList) DeepCopyInto

func (in *BMCVersionList) DeepCopyInto(out *BMCVersionList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*BMCVersionList) DeepCopyObject

func (in *BMCVersionList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type BMCVersionSet

type BMCVersionSet struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   BMCVersionSetSpec   `json:"spec,omitempty"`
	Status BMCVersionSetStatus `json:"status,omitempty"`
}

BMCVersionSet is the Schema for the bmcversionsets API.

func (*BMCVersionSet) DeepCopy

func (in *BMCVersionSet) DeepCopy() *BMCVersionSet

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BMCVersionSet.

func (*BMCVersionSet) DeepCopyInto

func (in *BMCVersionSet) DeepCopyInto(out *BMCVersionSet)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*BMCVersionSet) DeepCopyObject

func (in *BMCVersionSet) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type BMCVersionSetList

type BMCVersionSetList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []BMCVersionSet `json:"items"`
}

BMCVersionSetList contains a list of BMCVersionSet.

func (*BMCVersionSetList) DeepCopy

func (in *BMCVersionSetList) DeepCopy() *BMCVersionSetList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BMCVersionSetList.

func (*BMCVersionSetList) DeepCopyInto

func (in *BMCVersionSetList) DeepCopyInto(out *BMCVersionSetList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*BMCVersionSetList) DeepCopyObject

func (in *BMCVersionSetList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type BMCVersionSetSpec

type BMCVersionSetSpec struct {
	// BMCSelector specifies a label selector to identify the BMCs to be selected.
	// +required
	BMCSelector metav1.LabelSelector `json:"bmcSelector"`

	// BMCVersionTemplate defines the template for the BMCVersion resource to be applied to the BMCs.
	BMCVersionTemplate BMCVersionTemplate `json:"bmcVersionTemplate,omitempty"`
}

BMCVersionSetSpec defines the desired state of BMCVersionSet.

func (*BMCVersionSetSpec) DeepCopy

func (in *BMCVersionSetSpec) DeepCopy() *BMCVersionSetSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BMCVersionSetSpec.

func (*BMCVersionSetSpec) DeepCopyInto

func (in *BMCVersionSetSpec) DeepCopyInto(out *BMCVersionSetSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type BMCVersionSetStatus

type BMCVersionSetStatus struct {
	// FullyLabeledBMCs is the number of BMCs in the set.
	FullyLabeledBMCs int32 `json:"fullyLabeledBMCs,omitempty"`
	// AvailableBMCVersion is the number of BMCVersion resources currently created by the set.
	AvailableBMCVersion int32 `json:"availableBMCVersion,omitempty"`
	// PendingBMCVersion is the total number of pending BMCVersion resources in the set.
	PendingBMCVersion int32 `json:"pendingBMCVersion,omitempty"`
	// InProgressBMCVersion is the total number of BMCVersion resources in the set that are currently in progress.
	InProgressBMCVersion int32 `json:"inProgressBMCVersion,omitempty"`
	// CompletedBMCVersion is the total number of completed BMCVersion resources in the set.
	CompletedBMCVersion int32 `json:"completedBMCVersion,omitempty"`
	// FailedBMCVersion is the total number of failed BMCVersion resources in the set.
	FailedBMCVersion int32 `json:"failedBMCVersion,omitempty"`
}

BMCVersionSetStatus defines the observed state of BMCVersionSet.

func (*BMCVersionSetStatus) DeepCopy

func (in *BMCVersionSetStatus) DeepCopy() *BMCVersionSetStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BMCVersionSetStatus.

func (*BMCVersionSetStatus) DeepCopyInto

func (in *BMCVersionSetStatus) DeepCopyInto(out *BMCVersionSetStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type BMCVersionSpec

type BMCVersionSpec struct {
	// BMCVersionTemplate defines the template for BMC version to be applied on the server's BMC.
	BMCVersionTemplate `json:",inline"`

	// ServerMaintenanceRefs are references to ServerMaintenance objects that the controller has requested for the related servers.
	// +optional
	ServerMaintenanceRefs []ObjectReference `json:"serverMaintenanceRefs,omitempty"`

	// BMCRef is a reference to a specific BMC to apply BMC upgrade on.
	// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="bmcRef is immutable"
	BMCRef *corev1.LocalObjectReference `json:"bmcRef,omitempty"`
}

BMCVersionSpec defines the desired state of BMCVersion.

func (*BMCVersionSpec) DeepCopy

func (in *BMCVersionSpec) DeepCopy() *BMCVersionSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BMCVersionSpec.

func (*BMCVersionSpec) DeepCopyInto

func (in *BMCVersionSpec) DeepCopyInto(out *BMCVersionSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type BMCVersionState

type BMCVersionState string
const (
	// BMCVersionStatePending specifies that the BMC upgrade is waiting.
	BMCVersionStatePending BMCVersionState = "Pending"
	// BMCVersionStateInProgress specifies that upgrading BMC is in progress.
	BMCVersionStateInProgress BMCVersionState = "InProgress"
	// BMCVersionStateCompleted specifies that the BMC upgrade maintenance has been completed.
	BMCVersionStateCompleted BMCVersionState = "Completed"
	// BMCVersionStateFailed specifies that the BMC upgrade maintenance has failed.
	BMCVersionStateFailed BMCVersionState = "Failed"
)

type BMCVersionStatus

type BMCVersionStatus struct {
	// State represents the current state of the BMC configuration task.
	State BMCVersionState `json:"state,omitempty"`

	// UpgradeTask contains the state of the upgrade task created by the BMC.
	UpgradeTask *Task `json:"upgradeTask,omitempty"`

	// FailedAttempts is the number of automatic retry attempts made after failure.
	// +optional
	FailedAttempts int32 `json:"failedAttempts,omitempty"`

	// ObservedGeneration is the most recent generation observed by the controller.
	// +optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`

	// Conditions represents the latest available observations of the BMC version upgrade state.
	// +patchStrategy=merge
	// +patchMergeKey=type
	// +optional
	Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,1,rep,name=conditions"`
}

BMCVersionStatus defines the observed state of BMCVersion.

func (*BMCVersionStatus) DeepCopy

func (in *BMCVersionStatus) DeepCopy() *BMCVersionStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BMCVersionStatus.

func (*BMCVersionStatus) DeepCopyInto

func (in *BMCVersionStatus) DeepCopyInto(out *BMCVersionStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type BMCVersionTemplate

type BMCVersionTemplate struct {
	// Version specifies the BMC version to upgrade to.
	// +required
	Version string `json:"version"`

	// UpdatePolicy indicates whether the server's upgrade service should bypass vendor update policies.
	// +optional
	UpdatePolicy *UpdatePolicy `json:"updatePolicy,omitempty"`

	// Image specifies the image to use to upgrade to the given BMC version.
	// +required
	Image ImageSpec `json:"image"`

	// RetryPolicy defines the retry behavior for automatic retries on transient failures.
	// +optional
	RetryPolicy *RetryPolicy `json:"retryPolicy,omitempty"`

	// ServerMaintenancePolicy is a maintenance policy to be enforced on the server managed by referred BMC.
	// +optional
	ServerMaintenancePolicy ServerMaintenancePolicy `json:"serverMaintenancePolicy,omitempty"`
}

func (*BMCVersionTemplate) DeepCopy

func (in *BMCVersionTemplate) DeepCopy() *BMCVersionTemplate

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BMCVersionTemplate.

func (*BMCVersionTemplate) DeepCopyInto

func (in *BMCVersionTemplate) DeepCopyInto(out *BMCVersionTemplate)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type BootOrder

type BootOrder struct {
	// Name is the name of the boot device.
	Name string `json:"name"`
	// Priority is the priority of the boot device.
	Priority int `json:"priority"`
	// Device is the device to boot from.
	Device string `json:"device"`
}

BootOrder represents the boot order of the server.

func (*BootOrder) DeepCopy

func (in *BootOrder) DeepCopy() *BootOrder

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BootOrder.

func (*BootOrder) DeepCopyInto

func (in *BootOrder) DeepCopyInto(out *BootOrder)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ConditionRequirement added in v0.6.0

type ConditionRequirement struct {
	// Type of server condition
	//
	// Following kubebuilder validation is referred from https://pkg.go.dev/k8s.io/apimachinery/pkg/apis/meta/v1#Condition
	//
	// +required
	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:validation:MaxLength=316
	Type string `json:"type,omitempty"`

	// RequiredStatus is status of the condition, one of True, False, Unknown.
	//
	// +required
	// +kubebuilder:validation:Enum=True;False;Unknown
	RequiredStatus metav1.ConditionStatus `json:"requiredStatus,omitempty"`
}

ConditionRequirement defines a specific Server condition and the status value required to trigger the controller's action.

func (*ConditionRequirement) DeepCopy added in v0.6.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConditionRequirement.

func (*ConditionRequirement) DeepCopyInto added in v0.6.0

func (in *ConditionRequirement) DeepCopyInto(out *ConditionRequirement)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ConsoleProtocol

type ConsoleProtocol struct {
	// Name specifies the name of the console protocol.
	// +kubebuilder:validation:Enum=IPMI;SSH;SSHLenovo
	// +required
	Name ConsoleProtocolName `json:"name"`

	// Port specifies the port number used for console access.
	// +required
	Port int32 `json:"port"`
}

ConsoleProtocol defines the protocol and port used for console access to the BMC.

func (*ConsoleProtocol) DeepCopy

func (in *ConsoleProtocol) DeepCopy() *ConsoleProtocol

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConsoleProtocol.

func (*ConsoleProtocol) DeepCopyInto

func (in *ConsoleProtocol) DeepCopyInto(out *ConsoleProtocol)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ConsoleProtocolName

type ConsoleProtocolName string

ConsoleProtocolName defines the possible names for console protocols.

const (
	// ConsoleProtocolNameIPMI represents the IPMI console protocol.
	ConsoleProtocolNameIPMI ConsoleProtocolName = "IPMI"

	// ConsoleProtocolNameSSH represents the SSH console protocol.
	ConsoleProtocolNameSSH ConsoleProtocolName = "SSH"

	// ConsoleProtocolNameSSHLenovo represents the SSH console protocol specific to Lenovo hardware.
	ConsoleProtocolNameSSHLenovo ConsoleProtocolName = "SSHLenovo"
)

type Endpoint

type Endpoint struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   EndpointSpec   `json:"spec,omitempty"`
	Status EndpointStatus `json:"status,omitempty"`
}

Endpoint is the Schema for the endpoints API

func (*Endpoint) DeepCopy

func (in *Endpoint) DeepCopy() *Endpoint

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Endpoint.

func (*Endpoint) DeepCopyInto

func (in *Endpoint) DeepCopyInto(out *Endpoint)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Endpoint) DeepCopyObject

func (in *Endpoint) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type EndpointList

type EndpointList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Endpoint `json:"items"`
}

EndpointList contains a list of Endpoint

func (*EndpointList) DeepCopy

func (in *EndpointList) DeepCopy() *EndpointList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EndpointList.

func (*EndpointList) DeepCopyInto

func (in *EndpointList) DeepCopyInto(out *EndpointList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*EndpointList) DeepCopyObject

func (in *EndpointList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type EndpointSpec

type EndpointSpec struct {
	// MACAddress is the MAC address of the endpoint.
	// +optional
	MACAddress string `json:"macAddress"`

	// IP is the IP address of the endpoint.
	// +kubebuilder:validation:Type=string
	// +kubebuilder:validation:Schemaless
	// +optional
	IP IP `json:"ip"`
}

EndpointSpec defines the desired state of Endpoint

func (*EndpointSpec) DeepCopy

func (in *EndpointSpec) DeepCopy() *EndpointSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EndpointSpec.

func (*EndpointSpec) DeepCopyInto

func (in *EndpointSpec) DeepCopyInto(out *EndpointSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type EndpointStatus

type EndpointStatus struct {
}

EndpointStatus defines the observed state of Endpoint

func (*EndpointStatus) DeepCopy

func (in *EndpointStatus) DeepCopy() *EndpointStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EndpointStatus.

func (*EndpointStatus) DeepCopyInto

func (in *EndpointStatus) DeepCopyInto(out *EndpointStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type EnforcementMode added in v0.6.0

type EnforcementMode string

EnforcementMode specifies how the controller maintains the desired state. +kubebuilder:validation:Enum=BootstrapOnly;Continuous

const (
	// EnforcementModeBootstrapOnly applies configuration only during the first reconcile.
	EnforcementModeBootstrapOnly EnforcementMode = "BootstrapOnly"

	// EnforcementModeContinuous continuously monitors and enforces the configuration.
	EnforcementModeContinuous EnforcementMode = "Continuous"
)

type FieldRefSelector added in v0.5.0

type FieldRefSelector struct {
	// FieldPath is the path of the field on the BMCSettings object to select (e.g. spec.BMCRef.name).
	// Only string-typed fields are supported; integer, bool, or map fields will cause a resolution error.
	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:validation:MaxLength=256
	// +required
	FieldPath string `json:"fieldPath"`
}

func (*FieldRefSelector) DeepCopy added in v0.5.0

func (in *FieldRefSelector) DeepCopy() *FieldRefSelector

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FieldRefSelector.

func (*FieldRefSelector) DeepCopyInto added in v0.5.0

func (in *FieldRefSelector) DeepCopyInto(out *FieldRefSelector)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type IP

type IP struct {
	netip.Addr `json:"-"`
}

IP is an IP address. +kubebuilder:validation:Type=string +kubebuilder:validation:Format=ip

func MustParseIP

func MustParseIP(s string) IP

func MustParseNewIP

func MustParseNewIP(s string) *IP

func NewIP

func NewIP(ip netip.Addr) IP

func ParseIP

func ParseIP(s string) (IP, error)

func ParseNewIP

func ParseNewIP(s string) (*IP, error)

func (*IP) DeepCopy

func (in *IP) DeepCopy() *IP

func (*IP) DeepCopyInto

func (in *IP) DeepCopyInto(out *IP)

func (IP) Family

func (i IP) Family() v1.IPFamily

func (IP) GomegaString

func (i IP) GomegaString() string

func (*IP) IsValid

func (i *IP) IsValid() bool

func (*IP) IsZero

func (i *IP) IsZero() bool

func (IP) MarshalJSON

func (i IP) MarshalJSON() ([]byte, error)

func (IP) OpenAPISchemaFormat

func (i IP) OpenAPISchemaFormat() string

func (IP) OpenAPISchemaType

func (i IP) OpenAPISchemaType() []string

func (IP) ToUnstructured

func (i IP) ToUnstructured() any

func (*IP) UnmarshalJSON

func (i *IP) UnmarshalJSON(b []byte) error

type IPPrefix

type IPPrefix struct {
	netip.Prefix `json:"-"`
}

IPPrefix represents a network prefix. +nullable

func MustParseIPPrefix

func MustParseIPPrefix(s string) IPPrefix

func MustParseNewIPPrefix

func MustParseNewIPPrefix(s string) *IPPrefix

func NewIPPrefix

func NewIPPrefix(prefix netip.Prefix) *IPPrefix

func ParseIPPrefix

func ParseIPPrefix(s string) (IPPrefix, error)

func ParseNewIPPrefix

func ParseNewIPPrefix(s string) (*IPPrefix, error)

func (*IPPrefix) DeepCopy

func (in *IPPrefix) DeepCopy() *IPPrefix

func (*IPPrefix) DeepCopyInto

func (in *IPPrefix) DeepCopyInto(out *IPPrefix)

func (IPPrefix) GomegaString

func (i IPPrefix) GomegaString() string

func (IPPrefix) IP

func (i IPPrefix) IP() IP

func (*IPPrefix) IsValid

func (in *IPPrefix) IsValid() bool

func (*IPPrefix) IsZero

func (in *IPPrefix) IsZero() bool

func (IPPrefix) MarshalJSON

func (i IPPrefix) MarshalJSON() ([]byte, error)

func (IPPrefix) OpenAPISchemaFormat

func (in IPPrefix) OpenAPISchemaFormat() string

func (IPPrefix) OpenAPISchemaType

func (in IPPrefix) OpenAPISchemaType() []string

func (IPPrefix) ToUnstructured

func (i IPPrefix) ToUnstructured() any

func (*IPPrefix) UnmarshalJSON

func (i *IPPrefix) UnmarshalJSON(b []byte) error

type ImageSpec

type ImageSpec struct {
	// SecretRef is a reference to the Secret containing the credentials to access the image URI.
	// +optional
	SecretRef *corev1.SecretReference `json:"secretRef,omitempty"`

	// TransferProtocol is the network protocol used to retrieve the image URI.
	// +optional
	TransferProtocol string `json:"transferProtocol,omitempty"`

	// URI is the URI of the software image to install.
	// +required
	URI string `json:"URI"`
}

func (*ImageSpec) DeepCopy

func (in *ImageSpec) DeepCopy() *ImageSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageSpec.

func (*ImageSpec) DeepCopyInto

func (in *ImageSpec) DeepCopyInto(out *ImageSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ImmutableObjectReference added in v0.5.0

type ImmutableObjectReference struct {
	// Namespace is the namespace of the referenced object.
	// +required
	// +kubebuilder:validation:MaxLength=63
	// +kubebuilder:validation:XValidation:rule="self == oldSelf"
	Namespace string `json:"namespace"`
	// Name is the name of the referenced object.
	// +required
	// +kubebuilder:validation:MaxLength=253
	// +kubebuilder:validation:XValidation:rule="self == oldSelf"
	Name string `json:"name"`
}

ImmutableObjectReference is a namespaced name reference whose name and namespace cannot be changed once set (the entire reference can still be set or cleared).

func (*ImmutableObjectReference) DeepCopy added in v0.5.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImmutableObjectReference.

func (*ImmutableObjectReference) DeepCopyInto added in v0.5.0

func (in *ImmutableObjectReference) DeepCopyInto(out *ImmutableObjectReference)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type IndicatorLED

type IndicatorLED string

IndicatorLED represents LED indicator states

const (
	// UnknownIndicatorLED indicates the state of the Indicator LED cannot be
	// determined.
	UnknownIndicatorLED IndicatorLED = "Unknown"
	// LitIndicatorLED indicates the Indicator LED is lit.
	LitIndicatorLED IndicatorLED = "Lit"
	// BlinkingIndicatorLED indicates the Indicator LED is blinking.
	BlinkingIndicatorLED IndicatorLED = "Blinking"
	// OffIndicatorLED indicates the Indicator LED is off.
	OffIndicatorLED IndicatorLED = "Off"
)

type InlineEndpoint

type InlineEndpoint struct {
	// MACAddress is the MAC address of the endpoint.
	// +optional
	MACAddress string `json:"macAddress,omitempty"`

	// IP is the IP address of the BMC.
	// +kubebuilder:validation:Type=string
	// +kubebuilder:validation:Schemaless
	// +optional
	IP IP `json:"ip"`
}

InlineEndpoint defines inline network access configuration for the BMC.

func (*InlineEndpoint) DeepCopy

func (in *InlineEndpoint) DeepCopy() *InlineEndpoint

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InlineEndpoint.

func (*InlineEndpoint) DeepCopyInto

func (in *InlineEndpoint) DeepCopyInto(out *InlineEndpoint)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type LLDPNeighbor added in v0.2.0

type LLDPNeighbor struct {
	// MACAddress is the MAC address of the LLDP neighbor.
	// +optional
	MACAddress string `json:"macAddress,omitempty"`

	// PortID is the port identifier of the LLDP neighbor.
	// +optional
	PortID string `json:"portID,omitempty"`

	// PortDescription is the port description of the LLDP neighbor.
	// +optional
	PortDescription string `json:"portDescription,omitempty"`

	// SystemName is the system name of the LLDP neighbor.
	// +optional
	SystemName string `json:"systemName,omitempty"`

	// SystemDescription is the system description of the LLDP neighbor.
	// +optional
	SystemDescription string `json:"systemDescription,omitempty"`
}

LLDPNeighbor defines the details of an LLDP neighbor.

func (*LLDPNeighbor) DeepCopy added in v0.2.0

func (in *LLDPNeighbor) DeepCopy() *LLDPNeighbor

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LLDPNeighbor.

func (*LLDPNeighbor) DeepCopyInto added in v0.2.0

func (in *LLDPNeighbor) DeepCopyInto(out *LLDPNeighbor)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type NamespacedKeySelector added in v0.5.0

type NamespacedKeySelector struct {
	// Name is the referenced object name.
	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:validation:MaxLength=253
	// +required
	Name string `json:"name"`

	// Namespace is the referenced object namespace.
	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:validation:MaxLength=63
	// +required
	Namespace string `json:"namespace"`

	// Key is the key within the referenced object.
	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:validation:MaxLength=253
	// +required
	Key string `json:"key"`
}

func (*NamespacedKeySelector) DeepCopy added in v0.5.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamespacedKeySelector.

func (*NamespacedKeySelector) DeepCopyInto added in v0.5.0

func (in *NamespacedKeySelector) DeepCopyInto(out *NamespacedKeySelector)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type NetworkInterface

type NetworkInterface struct {
	// Name is the name of the network interface.
	// +required
	Name string `json:"name"`

	// IP is the IP address assigned to the network interface.
	// Deprecated: Use IPs instead. Kept for backward compatibility, always nil.
	// +kubebuilder:validation:Type=string
	// +kubebuilder:validation:Schemaless
	// +optional
	IP *IP `json:"ip,omitempty"`

	// IPs is a list of IP addresses (both IPv4 and IPv6) assigned to the network interface.
	// +optional
	IPs []IP `json:"ips,omitempty"`

	// MACAddress is the MAC address of the network interface.
	// +required
	MACAddress string `json:"macAddress"`

	// CarrierStatus is the operational carrier status of the network interface.
	// +optional
	CarrierStatus string `json:"carrierStatus,omitempty"`

	// Neighbors contains the LLDP neighbors discovered on this interface.
	// +optional
	Neighbors []LLDPNeighbor `json:"neighbors,omitempty"`
}

NetworkInterface defines the details of a network interface.

func (*NetworkInterface) DeepCopy

func (in *NetworkInterface) DeepCopy() *NetworkInterface

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkInterface.

func (*NetworkInterface) DeepCopyInto

func (in *NetworkInterface) DeepCopyInto(out *NetworkInterface)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ObjectFieldRefSelector added in v0.6.0

type ObjectFieldRefSelector struct {
	// Kind is the API kind of the object to read the field from (e.g. "BMC").
	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:validation:MaxLength=63
	// +required
	Kind string `json:"kind"`

	// Name is the name of the object to read the field from.
	// Supports $(VAR) substitution using previously resolved variables in declaration order.
	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:validation:MaxLength=253
	// +required
	Name string `json:"name"`

	// FieldPath is the path of the field to select on the target object.
	// Supports dot-path navigation (e.g. metadata.name) and bracket notation for map
	// keys containing dots or slashes (e.g. metadata.labels[topology.kubernetes.io/region]).
	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:validation:MaxLength=256
	// +required
	FieldPath string `json:"fieldPath"`
}

ObjectFieldRefSelector selects a field from a named cluster-scoped object. It is intentionally generic; the allowed kinds are constrained at the usage site via kubebuilder CEL rules on the parent type.

func (*ObjectFieldRefSelector) DeepCopy added in v0.6.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObjectFieldRefSelector.

func (*ObjectFieldRefSelector) DeepCopyInto added in v0.6.0

func (in *ObjectFieldRefSelector) DeepCopyInto(out *ObjectFieldRefSelector)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ObjectReference added in v0.2.0

type ObjectReference struct {
	// Namespace is the namespace of the referenced object.
	// +required
	Namespace string `json:"namespace"`
	// Name is the name of the referenced object.
	// +required
	Name string `json:"name"`
}

ObjectReference is the namespaced name reference to an object.

func (*ObjectReference) DeepCopy added in v0.2.0

func (in *ObjectReference) DeepCopy() *ObjectReference

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObjectReference.

func (*ObjectReference) DeepCopyInto added in v0.2.0

func (in *ObjectReference) DeepCopyInto(out *ObjectReference)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Phase

type Phase string

Phase defines the possible phases of a ServerClaim.

const (
	// PhaseBound indicates that the server claim is bound to a server.
	PhaseBound Phase = "Bound"
	// PhaseUnbound indicates that the server claim is not bound to any server.
	PhaseUnbound Phase = "Unbound"
)

type Power

type Power string

Power defines the possible power states for a device.

type Processor

type Processor struct {
	// ID is the name of the Processor.
	// +required
	ID string `json:"id"`

	// Type is the type of the Processor.
	// +optional
	Type string `json:"type,omitempty"`

	// Architecture is the architecture of the Processor.
	// +optional
	Architecture string `json:"architecture,omitempty"`

	// InstructionSet is the instruction set of the Processor.
	// +optional
	InstructionSet string `json:"instructionSet,omitempty"`

	// Manufacturer is the manufacturer of the Processor.
	// +optional
	Manufacturer string `json:"manufacturer,omitempty"`

	// Model is the model of the Processor.
	// +optional
	Model string `json:"model,omitempty"`

	// MaxSpeedMHz is the maximum speed of the Processor in MHz.
	// +optional
	MaxSpeedMHz int32 `json:"maxSpeedMHz,omitempty"`

	// TotalCores is the total number of cores in the Processor.
	// +optional
	TotalCores int32 `json:"totalCores,omitempty"`

	// TotalThreads is the total number of threads in the Processor.
	// +optional
	TotalThreads int32 `json:"totalThreads,omitempty"`
}

Processor defines the details of a Processor.

func (*Processor) DeepCopy

func (in *Processor) DeepCopy() *Processor

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Processor.

func (*Processor) DeepCopyInto

func (in *Processor) DeepCopyInto(out *Processor)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Protocol

type Protocol struct {
	// Name specifies the name of the protocol.
	Name ProtocolName `json:"name"`

	// Port specifies the port number used for communication.
	Port int32 `json:"port"`

	// Scheme specifies the scheme used for communication.
	Scheme ProtocolScheme `json:"scheme,omitempty"`
}

Protocol defines the protocol and port used for communicating with the BMC.

func (*Protocol) DeepCopy

func (in *Protocol) DeepCopy() *Protocol

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Protocol.

func (*Protocol) DeepCopyInto

func (in *Protocol) DeepCopyInto(out *Protocol)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ProtocolName

type ProtocolName string

ProtocolName defines the possible names for protocols used for communicating with the BMC.

const (
	// ProtocolNameRedfish represents the Redfish protocol.
	ProtocolNameRedfish ProtocolName = "Redfish"

	// ProtocolNameIPMI represents the IPMI protocol.
	ProtocolNameIPMI ProtocolName = "IPMI"

	// ProtocolNameSSH represents the SSH protocol.
	ProtocolNameSSH ProtocolName = "SSH"
)

type ProtocolScheme

type ProtocolScheme string

ProtocolScheme is a string that contains the protocol scheme

const (
	// HTTPProtocolScheme is the http protocol scheme
	HTTPProtocolScheme ProtocolScheme = "http"
	// HTTPSProtocolScheme is the https protocol scheme
	HTTPSProtocolScheme ProtocolScheme = "https"
)

type RetryPolicy added in v0.5.0

type RetryPolicy struct {
	// MaxAttempts is the maximum number of automatic retry attempts after failure.
	// 0 means no automatic retries. Must be between 0 and 10 inclusive.
	// If not set, the operator-level default is used.
	// +kubebuilder:validation:Minimum=0
	// +kubebuilder:validation:Maximum=10
	// +optional
	MaxAttempts *int32 `json:"maxAttempts,omitempty"`
}

RetryPolicy defines the retry behavior on transient failures.

func (*RetryPolicy) DeepCopy added in v0.5.0

func (in *RetryPolicy) DeepCopy() *RetryPolicy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RetryPolicy.

func (*RetryPolicy) DeepCopyInto added in v0.5.0

func (in *RetryPolicy) DeepCopyInto(out *RetryPolicy)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Server

type Server struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   ServerSpec   `json:"spec,omitempty"`
	Status ServerStatus `json:"status,omitempty"`
}

Server is the Schema for the servers API

func (*Server) DeepCopy

func (in *Server) DeepCopy() *Server

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Server.

func (*Server) DeepCopyInto

func (in *Server) DeepCopyInto(out *Server)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Server) DeepCopyObject

func (in *Server) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ServerBootConfiguration

type ServerBootConfiguration struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   ServerBootConfigurationSpec   `json:"spec,omitempty"`
	Status ServerBootConfigurationStatus `json:"status,omitempty"`
}

ServerBootConfiguration is the Schema for the serverbootconfigurations API

func (*ServerBootConfiguration) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServerBootConfiguration.

func (*ServerBootConfiguration) DeepCopyInto

func (in *ServerBootConfiguration) DeepCopyInto(out *ServerBootConfiguration)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ServerBootConfiguration) DeepCopyObject

func (in *ServerBootConfiguration) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ServerBootConfigurationList

type ServerBootConfigurationList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []ServerBootConfiguration `json:"items"`
}

ServerBootConfigurationList contains a list of ServerBootConfiguration

func (*ServerBootConfigurationList) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServerBootConfigurationList.

func (*ServerBootConfigurationList) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ServerBootConfigurationList) DeepCopyObject

func (in *ServerBootConfigurationList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ServerBootConfigurationSpec

type ServerBootConfigurationSpec struct {
	// ServerRef is a reference to the server for which this boot configuration is intended.
	// +required
	ServerRef v1.LocalObjectReference `json:"serverRef"`

	// Image specifies the boot image to be used for the server.
	// +optional
	Image string `json:"image,omitempty"`

	// IgnitionSecretRef is a reference to the Secret object that contains
	// the ignition configuration for the server.
	// +optional
	IgnitionSecretRef *v1.LocalObjectReference `json:"ignitionSecretRef,omitempty"`
}

ServerBootConfigurationSpec defines the desired state of ServerBootConfiguration.

func (*ServerBootConfigurationSpec) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServerBootConfigurationSpec.

func (*ServerBootConfigurationSpec) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ServerBootConfigurationState

type ServerBootConfigurationState string

ServerBootConfigurationState defines the possible states of a ServerBootConfiguration.

const (
	// ServerBootConfigurationStatePending indicates that the boot configuration is pending and not yet ready.
	ServerBootConfigurationStatePending ServerBootConfigurationState = "Pending"
	// ServerBootConfigurationStateReady indicates that the boot configuration is ready for use.
	ServerBootConfigurationStateReady ServerBootConfigurationState = "Ready"
	// ServerBootConfigurationStateError indicates that there is an error with the boot configuration.
	ServerBootConfigurationStateError ServerBootConfigurationState = "Error"
)

type ServerBootConfigurationStatus

type ServerBootConfigurationStatus struct {
	// State represents the current state of the boot configuration.
	// +optional
	State ServerBootConfigurationState `json:"state,omitempty"`

	// Conditions represents the latest available observations of the ServerBootConfig's current state.
	// +patchStrategy=merge
	// +patchMergeKey=type
	// +optional
	Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,1,rep,name=conditions"`
}

ServerBootConfigurationStatus defines the observed state of ServerBootConfiguration.

func (*ServerBootConfigurationStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServerBootConfigurationStatus.

func (*ServerBootConfigurationStatus) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ServerBootConfigurationTemplate

type ServerBootConfigurationTemplate struct {
	// Name specifies the name of the boot configuration.
	// +required
	Name string `json:"name"`

	// Spec specifies the boot configuration to be rendered.
	// +required
	Spec ServerBootConfigurationSpec `json:"spec"`
}

ServerBootConfigurationTemplate defines the parameters to be used for rendering a boot configuration.

func (*ServerBootConfigurationTemplate) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServerBootConfigurationTemplate.

func (*ServerBootConfigurationTemplate) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ServerClaim

type ServerClaim struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   ServerClaimSpec   `json:"spec,omitempty"`
	Status ServerClaimStatus `json:"status,omitempty"`
}

ServerClaim is the Schema for the serverclaims API

func (*ServerClaim) DeepCopy

func (in *ServerClaim) DeepCopy() *ServerClaim

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServerClaim.

func (*ServerClaim) DeepCopyInto

func (in *ServerClaim) DeepCopyInto(out *ServerClaim)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ServerClaim) DeepCopyObject

func (in *ServerClaim) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ServerClaimList

type ServerClaimList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []ServerClaim `json:"items"`
}

ServerClaimList contains a list of ServerClaim

func (*ServerClaimList) DeepCopy

func (in *ServerClaimList) DeepCopy() *ServerClaimList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServerClaimList.

func (*ServerClaimList) DeepCopyInto

func (in *ServerClaimList) DeepCopyInto(out *ServerClaimList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ServerClaimList) DeepCopyObject

func (in *ServerClaimList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ServerClaimSpec

type ServerClaimSpec struct {
	// Power specifies the desired power state of the server.
	// +required
	Power Power `json:"power"`

	// ServerRef is a reference to a specific server to be claimed.
	// +kubebuilder:validation:Optional
	// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="serverRef is immutable"
	// +optional
	ServerRef *v1.LocalObjectReference `json:"serverRef,omitempty"`

	// ServerSelector specifies a label selector to identify the server to be claimed.
	// +kubebuilder:validation:Optional
	// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="serverSelector is immutable"
	// +optional
	ServerSelector *metav1.LabelSelector `json:"serverSelector,omitempty"`

	// IgnitionSecretRef is a reference to the Secret object that contains
	// the ignition configuration for the server.
	// +optional
	IgnitionSecretRef *v1.LocalObjectReference `json:"ignitionSecretRef,omitempty"`

	// Image specifies the boot image to be used for the server.
	// +required
	Image string `json:"image"`

	// Tolerations allow a ServerClaim to bind to a Server with matching taints.
	// +optional
	Tolerations []Toleration `json:"tolerations,omitempty"`
}

ServerClaimSpec defines the desired state of ServerClaim. +kubebuilder:validation:XValidation:rule="!has(oldSelf.serverRef) || has(self.serverRef)", message="serverRef is required once set" +kubebuilder:validation:XValidation:rule="!has(oldSelf.serverSelector) || has(self.serverSelector)", message="serverSelector is required once set"

func (*ServerClaimSpec) DeepCopy

func (in *ServerClaimSpec) DeepCopy() *ServerClaimSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServerClaimSpec.

func (*ServerClaimSpec) DeepCopyInto

func (in *ServerClaimSpec) DeepCopyInto(out *ServerClaimSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ServerClaimStatus

type ServerClaimStatus struct {
	// Phase represents the current phase of the server claim.
	// +optional
	Phase Phase `json:"phase,omitempty"`
}

ServerClaimStatus defines the observed state of ServerClaim.

func (*ServerClaimStatus) DeepCopy

func (in *ServerClaimStatus) DeepCopy() *ServerClaimStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServerClaimStatus.

func (*ServerClaimStatus) DeepCopyInto

func (in *ServerClaimStatus) DeepCopyInto(out *ServerClaimStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ServerList

type ServerList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Server `json:"items"`
}

ServerList contains a list of Server

func (*ServerList) DeepCopy

func (in *ServerList) DeepCopy() *ServerList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServerList.

func (*ServerList) DeepCopyInto

func (in *ServerList) DeepCopyInto(out *ServerList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ServerList) DeepCopyObject

func (in *ServerList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ServerMaintenance

type ServerMaintenance struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   ServerMaintenanceSpec   `json:"spec,omitempty"`
	Status ServerMaintenanceStatus `json:"status,omitempty"`
}

ServerMaintenance is the Schema for the ServerMaintenance API

func (*ServerMaintenance) DeepCopy

func (in *ServerMaintenance) DeepCopy() *ServerMaintenance

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServerMaintenance.

func (*ServerMaintenance) DeepCopyInto

func (in *ServerMaintenance) DeepCopyInto(out *ServerMaintenance)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ServerMaintenance) DeepCopyObject

func (in *ServerMaintenance) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ServerMaintenanceList

type ServerMaintenanceList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []ServerMaintenance `json:"items"`
}

ServerMaintenanceList contains a list of ServerMaintenances

func (*ServerMaintenanceList) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServerMaintenanceList.

func (*ServerMaintenanceList) DeepCopyInto

func (in *ServerMaintenanceList) DeepCopyInto(out *ServerMaintenanceList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ServerMaintenanceList) DeepCopyObject

func (in *ServerMaintenanceList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ServerMaintenancePolicy

type ServerMaintenancePolicy string

ServerMaintenancePolicy specifies the maintenance policy to be enforced on the server.

const (
	// ServerMaintenancePolicyOwnerApproval specifies that the maintenance policy requires owner approval.
	ServerMaintenancePolicyOwnerApproval ServerMaintenancePolicy = "OwnerApproval"
	// ServerMaintenancePolicyEnforced specifies that the maintenance policy is enforced.
	ServerMaintenancePolicyEnforced ServerMaintenancePolicy = "Enforced"
)

type ServerMaintenanceRefItem

type ServerMaintenanceRefItem struct {
	// ServerMaintenanceRef is a reference to a ServerMaintenance object that the BMCSettings has requested for the referred server.
	// +optional
	ServerMaintenanceRef *ObjectReference `json:"serverMaintenanceRef,omitempty"`
}

ServerMaintenanceRefItem is a reference to a ServerMaintenance object.

func (*ServerMaintenanceRefItem) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServerMaintenanceRefItem.

func (*ServerMaintenanceRefItem) DeepCopyInto

func (in *ServerMaintenanceRefItem) DeepCopyInto(out *ServerMaintenanceRefItem)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ServerMaintenanceSpec

type ServerMaintenanceSpec struct {
	// Policy specifies the maintenance policy to be enforced on the server.
	// +optional
	Policy ServerMaintenancePolicy `json:"policy,omitempty"`

	// ServerRef is a reference to the server that is to be maintained.
	// +required
	ServerRef *corev1.LocalObjectReference `json:"serverRef"`

	// ServerPower specifies the power state of the server during maintenance.
	// +optional
	ServerPower Power `json:"serverPower,omitempty"`

	// LocatorLED specifies the desired state of the server's locator LED during maintenance.
	// When maintenance ends, the locator LED is turned off.
	// +optional
	LocatorLED IndicatorLED `json:"locatorLED,omitempty"`

	// Priority determines ordering when multiple ServerMaintenance resources target the same server.
	// Higher values are processed first. If priorities are equal, older resources are processed first.
	// If omitted, priority is treated as 0.
	// +kubebuilder:default=0
	// +optional
	Priority int32 `json:"priority,omitempty"`

	// ServerBootConfigurationTemplate specifies the boot configuration to be applied to the server during maintenance.
	// +optional
	ServerBootConfigurationTemplate *ServerBootConfigurationTemplate `json:"serverBootConfigurationTemplate,omitempty"`
}

ServerMaintenanceSpec defines the desired state of a ServerMaintenance

func (*ServerMaintenanceSpec) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServerMaintenanceSpec.

func (*ServerMaintenanceSpec) DeepCopyInto

func (in *ServerMaintenanceSpec) DeepCopyInto(out *ServerMaintenanceSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ServerMaintenanceState

type ServerMaintenanceState string

ServerMaintenanceState specifies the current state of the server maintenance.

const (
	// ServerMaintenanceStatePending specifies that the server maintenance is pending.
	ServerMaintenanceStatePending ServerMaintenanceState = "Pending"
	// ServerMaintenanceStateInMaintenance specifies that the server is in maintenance.
	ServerMaintenanceStateInMaintenance ServerMaintenanceState = "InMaintenance"
	// ServerMaintenanceStateFailed specifies that the server maintenance has failed.
	ServerMaintenanceStateFailed ServerMaintenanceState = "Failed"
)

type ServerMaintenanceStatus

type ServerMaintenanceStatus struct {
	// State specifies the current state of the server maintenance.
	State ServerMaintenanceState `json:"state,omitempty"`
}

ServerMaintenanceStatus defines the observed state of a ServerMaintenance

func (*ServerMaintenanceStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServerMaintenanceStatus.

func (*ServerMaintenanceStatus) DeepCopyInto

func (in *ServerMaintenanceStatus) DeepCopyInto(out *ServerMaintenanceStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ServerPowerState

type ServerPowerState string

ServerPowerState defines the possible power states for a server.

const (
	// ServerOnPowerState indicates that the system is powered on.
	ServerOnPowerState ServerPowerState = "On"

	// ServerOffPowerState indicates that the system is powered off, although some components may
	// continue to have auxiliary power such as the management controller.
	ServerOffPowerState ServerPowerState = "Off"

	// ServerPausedPowerState indicates that the system is paused.
	ServerPausedPowerState ServerPowerState = "Paused"

	// ServerPoweringOnPowerState indicates a temporary state between Off and On.
	// This temporary state can be very short.
	ServerPoweringOnPowerState ServerPowerState = "PoweringOn"

	// ServerPoweringOffPowerState indicates a temporary state between On and Off.
	// The power off action can take time while the OS is in the shutdown process.
	ServerPoweringOffPowerState ServerPowerState = "PoweringOff"
)

type ServerReadinessRule added in v0.6.0

type ServerReadinessRule struct {
	metav1.TypeMeta `json:",inline"`

	// metadata is a standard object metadata
	// +optional
	metav1.ObjectMeta `json:"metadata,omitzero"`

	// spec defines the desired state of ServerReadinessRule
	// +required
	Spec ServerReadinessRuleSpec `json:"spec"`

	// status defines the observed state of ServerReadinessRule
	// +optional
	Status ServerReadinessRuleStatus `json:"status,omitzero"`
}

ServerReadinessRule is the Schema for the serverreadinessrules API

func (*ServerReadinessRule) DeepCopy added in v0.6.0

func (in *ServerReadinessRule) DeepCopy() *ServerReadinessRule

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServerReadinessRule.

func (*ServerReadinessRule) DeepCopyInto added in v0.6.0

func (in *ServerReadinessRule) DeepCopyInto(out *ServerReadinessRule)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ServerReadinessRule) DeepCopyObject added in v0.6.0

func (in *ServerReadinessRule) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ServerReadinessRuleList added in v0.6.0

type ServerReadinessRuleList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitzero"`
	Items           []ServerReadinessRule `json:"items"`
}

ServerReadinessRuleList contains a list of ServerReadinessRule

func (*ServerReadinessRuleList) DeepCopy added in v0.6.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServerReadinessRuleList.

func (*ServerReadinessRuleList) DeepCopyInto added in v0.6.0

func (in *ServerReadinessRuleList) DeepCopyInto(out *ServerReadinessRuleList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ServerReadinessRuleList) DeepCopyObject added in v0.6.0

func (in *ServerReadinessRuleList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ServerReadinessRuleSpec added in v0.6.0

type ServerReadinessRuleSpec struct {
	// Conditions contains a list of the Server conditions that defines the specific
	// criteria that must be met for taints to be managed on the target Server.
	// The presence or status of these conditions directly triggers the application or removal of Server taints.
	//
	// +required
	// +listType=map
	// +listMapKey=type
	// +kubebuilder:validation:MinItems=1
	// +kubebuilder:validation:MaxItems=32
	// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="conditions is immutable"
	Conditions []ConditionRequirement `json:"conditions"` //nolint:kubeapilinter

	// EnforcementMode specifies how the controller maintains the desired state.
	// enforcementMode is one of BootstrapOnly, Continuous.
	// "BootstrapOnly" applies the configuration once during initial setup.
	// "Continuous" ensures the state is monitored and corrected throughout the resource lifecycle.
	//
	// +required
	// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="enforcementMode is immutable"
	EnforcementMode EnforcementMode `json:"enforcementMode,omitempty"`

	// Taint defines the specific Taint (Key, Value, and Effect) to be managed
	// on Servers that meet the defined condition criteria.
	//
	// +required
	// +kubebuilder:validation:XValidation:rule="self.key.size() <= 253",message="taint key length must be at most 253 characters"
	// +kubebuilder:validation:XValidation:rule="!has(oldSelf.key) || self.key == oldSelf.key",message="taint key is immutable"
	// +kubebuilder:validation:XValidation:rule="!has(oldSelf.effect) || self.effect == oldSelf.effect",message="taint effect is immutable"
	// +kubebuilder:validation:XValidation:rule="!has(oldSelf.value) || self.value == oldSelf.value",message="taint value is immutable"
	Taint Taint `json:"taint,omitempty,omitzero"`

	// ServerSelector limits the scope of this rule to a specific subset of Servers.
	//
	// +required
	// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="serverSelector is immutable"
	ServerSelector metav1.LabelSelector `json:"serverSelector,omitempty,omitzero"`
}

ServerReadinessRuleSpec defines the desired state of ServerReadinessRule

func (*ServerReadinessRuleSpec) DeepCopy added in v0.6.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServerReadinessRuleSpec.

func (*ServerReadinessRuleSpec) DeepCopyInto added in v0.6.0

func (in *ServerReadinessRuleSpec) DeepCopyInto(out *ServerReadinessRuleSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ServerReadinessRuleStatus added in v0.6.0

type ServerReadinessRuleStatus struct {

	// conditions represent the current state of the ServerReadinessRule resource.
	// Each condition has a unique type and reflects the status of a specific aspect of the resource.
	//
	// Standard condition types include:
	// - "Available": the resource is fully functional
	// - "Progressing": the resource is being created or updated
	// - "Degraded": the resource failed to reach or maintain its desired state
	//
	// The status of each condition is one of True, False, or Unknown.
	// +listType=map
	// +listMapKey=type
	// +optional
	Conditions []metav1.Condition `json:"conditions,omitempty"`
}

ServerReadinessRuleStatus defines the observed state of ServerReadinessRule.

func (*ServerReadinessRuleStatus) DeepCopy added in v0.6.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServerReadinessRuleStatus.

func (*ServerReadinessRuleStatus) DeepCopyInto added in v0.6.0

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ServerReclaimPolicy added in v0.6.0

type ServerReclaimPolicy string
const (
	ServerReclaimPolicyRecycle ServerReclaimPolicy = "Recycle"
	ServerReclaimPolicyRetain  ServerReclaimPolicy = "Retain"
)

type ServerSpec

type ServerSpec struct {
	// SystemUUID is the unique identifier for the server.
	// +required
	SystemUUID string `json:"systemUUID"`

	// SystemURI is the unique URI for the server resource in REDFISH API.
	SystemURI string `json:"systemURI,omitempty"`

	// Power specifies the desired power state of the server.
	// +optional
	Power Power `json:"power,omitempty"`

	// IndicatorLED specifies the desired state of the server's indicator LED.
	// +optional
	IndicatorLED IndicatorLED `json:"indicatorLED,omitempty"`

	// ReclaimPolicy specifies how the server is reclaimed after use.
	// Can be
	// - Recycle (default), immediately transitioning the server to `Available` after use.
	// - Retain, transitioning the server to `Released` after use, leaving `spec.serverClaimRef` set,
	//   transitioning to `Available` once `spec.serverClaimRef` is removed.
	// +kubebuilder:default=Recycle
	// +kubebuilder:validation:Enum=Recycle;Retain
	ReclaimPolicy ServerReclaimPolicy `json:"reclaimPolicy,omitempty"`

	// ServerClaimRef is a reference to a ServerClaim object that claims this server.
	// +kubebuilder:validation:Optional
	// +optional
	ServerClaimRef *ImmutableObjectReference `json:"serverClaimRef,omitempty"`

	// ServerMaintenanceRef is a reference to a ServerMaintenance object that maintains this server.
	// +optional
	ServerMaintenanceRef *ObjectReference `json:"serverMaintenanceRef,omitempty"`

	// BMCRef is a reference to the BMC object associated with this server.
	// +optional
	BMCRef *v1.LocalObjectReference `json:"bmcRef,omitempty"`

	// BMC contains the access details for the BMC.
	// +optional
	BMC *BMCAccess `json:"bmc,omitempty"`

	// BootConfigurationRef is a reference to a BootConfiguration object that specifies
	// the boot configuration for this server.
	// +optional
	BootConfigurationRef *ObjectReference `json:"bootConfigurationRef,omitempty"`

	// MaintenanceBootConfigurationRef is a reference to a BootConfiguration object that specifies
	// the boot configuration for this server during maintenance.
	// +optional
	MaintenanceBootConfigurationRef *ObjectReference `json:"maintenanceBootConfigurationRef,omitempty"`

	// BootOrder specifies the boot order of the server.
	// +optional
	BootOrder []BootOrder `json:"bootOrder,omitempty"`

	// BIOSSettingsRef is a reference to a biossettings object that specifies
	// the BIOS configuration for this server.
	// +optional
	BIOSSettingsRef *v1.LocalObjectReference `json:"biosSettingsRef,omitempty"`

	// Taints control which ServerClaims can be bound to this server.
	// +optional
	Taints []Taint `json:"taints,omitempty"`
}

ServerSpec defines the desired state of a Server.

func (*ServerSpec) DeepCopy

func (in *ServerSpec) DeepCopy() *ServerSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServerSpec.

func (*ServerSpec) DeepCopyInto

func (in *ServerSpec) DeepCopyInto(out *ServerSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ServerState

type ServerState string

ServerState defines the possible states of a server.

const (
	// ServerStateInitial indicates that the server is in its initial state.
	ServerStateInitial ServerState = "Initial"

	// ServerStateDiscovery indicates that the server is in its discovery state.
	ServerStateDiscovery ServerState = "Discovery"

	// ServerStateAvailable indicates that the server is available for use.
	ServerStateAvailable ServerState = "Available"

	// ServerStateReserved indicates that the server is reserved for a specific use or user.
	ServerStateReserved ServerState = "Reserved"

	// ServerStateReleased indicates that the server is released after use.
	ServerStateReleased ServerState = "Released"

	// ServerStateError indicates that there is an error with the server.
	ServerStateError ServerState = "Error"

	// ServerStateMaintenance indicates that the server is in maintenance.
	ServerStateMaintenance ServerState = "Maintenance"
)

type ServerStatus

type ServerStatus struct {
	// Manufacturer is the name of the server manufacturer.
	// +optional
	Manufacturer string `json:"manufacturer,omitempty"`

	// BIOSVersion is the version of the server's BIOS.
	BIOSVersion string `json:"biosVersion,omitempty"`

	// Model is the model of the server.
	// +optional
	Model string `json:"model,omitempty"`

	// SKU is the stock keeping unit identifier for the server.
	// +optional
	SKU string `json:"sku,omitempty"`

	// SerialNumber is the serial number of the server.
	// +optional
	SerialNumber string `json:"serialNumber,omitempty"`

	// PowerState represents the current power state of the server.
	// +optional
	PowerState ServerPowerState `json:"powerState,omitempty"`

	// IndicatorLED specifies the current state of the server's indicator LED.
	// +optional
	IndicatorLED IndicatorLED `json:"indicatorLED,omitempty"`

	// State represents the current state of the server.
	// +optional
	State ServerState `json:"state,omitempty"`

	// NetworkInterfaces is a list of network interfaces associated with the server.
	// +optional
	NetworkInterfaces []NetworkInterface `json:"networkInterfaces,omitempty"`

	// TotalSystemMemory is the total amount of memory in bytes available on the server.
	// +optional
	TotalSystemMemory *resource.Quantity `json:"totalSystemMemory,omitempty"`

	// Processors is a list of Processors associated with the server.
	// +optional
	Processors []Processor `json:"processors,omitempty"`

	// Storages is a list of storages associated with the server.
	// +optional
	Storages []Storage `json:"storages,omitempty"`

	// Conditions represents the latest available observations of the server's current state.
	// +patchStrategy=merge
	// +patchMergeKey=type
	// +optional
	Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,1,rep,name=conditions"`
}

ServerStatus defines the observed state of Server.

func (*ServerStatus) DeepCopy

func (in *ServerStatus) DeepCopy() *ServerStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServerStatus.

func (*ServerStatus) DeepCopyInto

func (in *ServerStatus) DeepCopyInto(out *ServerStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type SettingsFlowItem

type SettingsFlowItem struct {
	// Name is the name of the flow item.
	// +required
	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:validation:MaxLength=1000
	Name string `json:"name"`

	// Settings contains software (e.g. BIOS, BMC) settings as a map.
	// +optional
	Settings map[string]string `json:"settings,omitempty"`

	// Priority defines the order of applying the settings. Lower numbers have higher priority (i.e. lower numbers are applied first).
	// +required
	// +kubebuilder:validation:Minimum=1
	// +kubebuilder:validation:Maximum=2147483645
	Priority int32 `json:"priority"`
}

func (*SettingsFlowItem) DeepCopy

func (in *SettingsFlowItem) DeepCopy() *SettingsFlowItem

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SettingsFlowItem.

func (*SettingsFlowItem) DeepCopyInto

func (in *SettingsFlowItem) DeepCopyInto(out *SettingsFlowItem)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Storage

type Storage struct {
	// Name is the name of the storage device.
	// +optional
	Name string `json:"name,omitempty"`

	// State specifies the state of the storage device.
	// +optional
	State StorageState `json:"state,omitempty"`

	// Volumes is a collection of volumes associated with this storage.
	// +optional
	Volumes []StorageVolume `json:"volumes,omitempty"`

	// Drives is a collection of drives associated with this storage.
	// +optional
	Drives []StorageDrive `json:"drives,omitempty"`
}

Storage defines the details of one storage device.

func (*Storage) DeepCopy

func (in *Storage) DeepCopy() *Storage

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Storage.

func (*Storage) DeepCopyInto

func (in *Storage) DeepCopyInto(out *Storage)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type StorageDrive

type StorageDrive struct {
	// Name is the name of the storage drive.
	// +optional
	Name string `json:"name,omitempty"`

	// MediaType specifies the media type of the storage device.
	// +optional
	MediaType string `json:"mediaType,omitempty"`

	// Type specifies the type of the storage device.
	// +optional
	Type string `json:"type,omitempty"`

	// Capacity specifies the size of the storage device in bytes.
	// +optional
	Capacity *resource.Quantity `json:"capacity,omitempty"`

	// Vendor specifies the vendor of the storage device.
	// +optional
	Vendor string `json:"vendor,omitempty"`

	// Model specifies the model of the storage device.
	// +optional
	Model string `json:"model,omitempty"`

	// State specifies the state of the storage device.
	// +optional
	State StorageState `json:"state,omitempty"`
}

StorageDrive defines the details of one storage drive.

func (*StorageDrive) DeepCopy

func (in *StorageDrive) DeepCopy() *StorageDrive

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StorageDrive.

func (*StorageDrive) DeepCopyInto

func (in *StorageDrive) DeepCopyInto(out *StorageDrive)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type StorageState

type StorageState string

StorageState represents Storage states

const (
	// StorageStateEnabled indicates that the storage device is enabled.
	StorageStateEnabled StorageState = "Enabled"
	// StorageStateDisabled indicates that the storage device is disabled.
	StorageStateDisabled StorageState = "Disabled"
	// StorageStateAbsent indicates that the storage device is absent.
	StorageStateAbsent StorageState = "Absent"
)

type StorageVolume

type StorageVolume struct {
	// Name is the name of the storage volume.
	// +optional
	Name string `json:"name,omitempty"`

	// Capacity specifies the size of the storage device in bytes.
	// +optional
	Capacity *resource.Quantity `json:"capacity,omitempty"`

	// Status specifies the status of the volume.
	// +optional
	State StorageState `json:"state,omitempty"`

	// RAIDType specifies the RAID type of the associated Volume.
	// +optional
	RAIDType string `json:"raidType,omitempty"`

	// VolumeUsage specifies the volume usage type for the Volume.
	// +optional
	VolumeUsage string `json:"volumeUsage,omitempty"`
}

StorageVolume defines the details of one storage volume.

func (*StorageVolume) DeepCopy

func (in *StorageVolume) DeepCopy() *StorageVolume

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StorageVolume.

func (*StorageVolume) DeepCopyInto

func (in *StorageVolume) DeepCopyInto(out *StorageVolume)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Taint added in v0.6.0

type Taint struct {
	// Key is the taint key to be applied to a server.
	// +kubebuilder:validation:MinLength=1
	// +required
	Key string `json:"key"`

	// Value is the taint value corresponding to the taint key.
	// +optional
	Value string `json:"value,omitempty"`

	// Effect indicates the effect of the taint on ServerClaims that do not
	// tolerate the taint.
	// +kubebuilder:default=NoBind
	// +optional
	Effect TaintEffect `json:"effect,omitempty"`
}

Taint represents a taint applied to a Server that restricts which ServerClaims can be bound to it.

func (*Taint) DeepCopy added in v0.6.0

func (in *Taint) DeepCopy() *Taint

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Taint.

func (*Taint) DeepCopyInto added in v0.6.0

func (in *Taint) DeepCopyInto(out *Taint)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type TaintEffect added in v0.6.0

type TaintEffect string

TaintEffect defines the effect of a taint on a ServerClaim. +kubebuilder:validation:Enum=NoBind;Evict

const (
	// TaintEffectNoBind prevents new ServerClaims from binding to the server
	// unless they have a matching toleration.
	TaintEffectNoBind TaintEffect = "NoBind"

	// TaintEffectEvict is reserved for future use. It does not currently trigger
	// eviction of existing ServerClaims bound to the server.
	TaintEffectEvict TaintEffect = "Evict"
)

type TaintStatus added in v0.6.0

type TaintStatus string

TaintStatus specifies status of the Taint on Server. +kubebuilder:validation:Enum=Present;Absent

const (
	// TaintStatusPresent represent the taint present on the Server.
	TaintStatusPresent TaintStatus = "Present"

	// TaintStatusAbsent represent the taint absent on the Server.
	TaintStatusAbsent TaintStatus = "Absent"
)

type Task

type Task struct {
	// URI is the URI of the task created by the BMC for the BIOS upgrade.
	// +optional
	URI string `json:"URI,omitempty"`

	// State is the current state of the task.
	// +optional
	State schemas.TaskState `json:"state,omitempty"`

	// Status is the current status of the task.
	// +optional
	Status schemas.Health `json:"status,omitempty"`

	// PercentComplete is the percentage of completion of the task.
	// +optional
	PercentComplete int32 `json:"percentageComplete,omitempty"`
}

Task contains the status of the task created by the BMC for the BIOS upgrade.

func (*Task) DeepCopy

func (in *Task) DeepCopy() *Task

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Task.

func (*Task) DeepCopyInto

func (in *Task) DeepCopyInto(out *Task)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Toleration added in v0.6.0

type Toleration struct {
	// Key is the taint key that the toleration applies to.
	// +kubebuilder:validation:MinLength=1
	// +required
	Key string `json:"key"`

	// Operator represents the key's relationship to the value.
	// +optional
	Operator TolerationOperator `json:"operator,omitempty"`

	// Value is the taint value the toleration matches to.
	// +optional
	Value string `json:"value,omitempty"`

	// Effect indicates the taint effect to tolerate.
	// +optional
	Effect TaintEffect `json:"effect,omitempty"`
}

Toleration allows a ServerClaim to tolerate taints on a Server so that the claim can be bound to a server that would otherwise be restricted.

func (*Toleration) DeepCopy added in v0.6.0

func (in *Toleration) DeepCopy() *Toleration

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Toleration.

func (*Toleration) DeepCopyInto added in v0.6.0

func (in *Toleration) DeepCopyInto(out *Toleration)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type TolerationOperator added in v0.6.0

type TolerationOperator string

TolerationOperator represents a key's relationship to a value in a Toleration. +kubebuilder:validation:Enum=Equal;Exists

const (
	// TolerationOperatorEqual requires that the key and value of the toleration
	// match those of the taint exactly.
	TolerationOperatorEqual TolerationOperator = "Equal"

	// TolerationOperatorExists matches any taint with the specified key,
	// regardless of value.
	TolerationOperatorExists TolerationOperator = "Exists"
)

type UpdatePolicy

type UpdatePolicy string
const (
	UpdatePolicyForce UpdatePolicy = "Force"
)

type Variable added in v0.5.0

type Variable struct {
	// Key is the name of the variable to be used in the BMCSettingsTemplate format.
	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:validation:MaxLength=63
	// +required
	Key string `json:"key"`

	// ValueFrom defines a simple single source for the variable value.
	// +required
	ValueFrom *VariableSourceValueFrom `json:"valueFrom"`
}

func (*Variable) DeepCopy added in v0.5.0

func (in *Variable) DeepCopy() *Variable

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Variable.

func (*Variable) DeepCopyInto added in v0.5.0

func (in *Variable) DeepCopyInto(out *Variable)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type VariableSourceValueFrom added in v0.5.0

type VariableSourceValueFrom struct {
	// FieldRef sources the value from a field of the BMCSettings object itself (e.g. spec.BMCRef.name).
	// Only string-typed fields are supported; integer, bool, or map fields will cause a resolution error.
	// +optional
	FieldRef *FieldRefSelector `json:"fieldRef,omitempty"`

	// ObjectFieldRef sources the value from a field of a named related object.
	// The kind must be "BMC". Supports dot-path navigation and bracket notation for map keys
	// containing dots or slashes (e.g. metadata.labels[kubernetes.metal.cloud.sap/nodename]).
	// +optional
	ObjectFieldRef *ObjectFieldRefSelector `json:"objectFieldRef,omitempty"`

	// ConfigMapKeyRef points to a namespaced ConfigMap key.
	// +optional
	ConfigMapKeyRef *NamespacedKeySelector `json:"configMapKeyRef,omitempty"`

	// SecretKeyRef points to a namespaced Secret key.
	// +optional
	SecretKeyRef *NamespacedKeySelector `json:"secretKeyRef,omitempty"`
}

+kubebuilder:validation:XValidation:rule="(has(self.fieldRef) ? 1 : 0) + (has(self.objectFieldRef) ? 1 : 0) + (has(self.configMapKeyRef) ? 1 : 0) + (has(self.secretKeyRef) ? 1 : 0) == 1",message="exactly one of fieldRef, objectFieldRef, configMapKeyRef, or secretKeyRef must be provided" +kubebuilder:validation:XValidation:rule="!has(self.objectFieldRef) || self.objectFieldRef.kind == 'BMC'",message="objectFieldRef.kind must be 'BMC'"

func (*VariableSourceValueFrom) DeepCopy added in v0.5.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VariableSourceValueFrom.

func (*VariableSourceValueFrom) DeepCopyInto added in v0.5.0

func (in *VariableSourceValueFrom) DeepCopyInto(out *VariableSourceValueFrom)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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