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
- Variables
- func EqualIPPrefixes(a, b IPPrefix) bool
- func MatchesWatchFilter(obj metav1.Object, filter string) bool
- func PropagateWatchFilterLabel(dst, src metav1.Object)
- func WatchFilterSelector(filter string) (labels.Selector, error)
- type BMC
- type BMCAccess
- type BMCList
- type BMCPowerState
- type BMCSecret
- type BMCSecretList
- type BMCSpec
- type BMCState
- type BMCStatus
- type BootOrder
- type ConditionRequirement
- type ConsoleProtocol
- type ConsoleProtocolName
- type Endpointdeprecated
- type EndpointList
- type EndpointSpec
- type EndpointStatus
- type EnforcementMode
- type IP
- func (in *IP) DeepCopy() *IP
- func (in *IP) DeepCopyInto(out *IP)
- func (i IP) Family() v1.IPFamily
- func (i IP) GomegaString() string
- func (i *IP) IsValid() bool
- func (i *IP) IsZero() bool
- func (i IP) MarshalJSON() ([]byte, error)
- func (i IP) OpenAPISchemaFormat() string
- func (i IP) OpenAPISchemaType() []string
- func (i IP) ToUnstructured() any
- func (i *IP) UnmarshalJSON(b []byte) error
- type IPPrefix
- func (in *IPPrefix) DeepCopy() *IPPrefix
- func (in *IPPrefix) DeepCopyInto(out *IPPrefix)
- func (i IPPrefix) GomegaString() string
- func (i IPPrefix) IP() IP
- func (in *IPPrefix) IsValid() bool
- func (in *IPPrefix) IsZero() bool
- func (i IPPrefix) MarshalJSON() ([]byte, error)
- func (in IPPrefix) OpenAPISchemaFormat() string
- func (in IPPrefix) OpenAPISchemaType() []string
- func (i IPPrefix) ToUnstructured() any
- func (i *IPPrefix) UnmarshalJSON(b []byte) error
- type ImmutableObjectReference
- type IndicatorLED
- type InlineEndpoint
- type LLDPNeighbor
- type NetworkInterface
- type ObjectReference
- type Phase
- type Power
- type Processor
- type Protocol
- type ProtocolName
- type ProtocolScheme
- type RetryPolicy
- type Server
- type ServerBootConfiguration
- type ServerBootConfigurationList
- type ServerBootConfigurationSpec
- type ServerBootConfigurationState
- type ServerBootConfigurationStatus
- type ServerClaim
- type ServerClaimList
- type ServerClaimSpec
- type ServerClaimStatus
- type ServerList
- type ServerPowerState
- type ServerReadinessRule
- type ServerReadinessRuleList
- type ServerReadinessRuleSpec
- type ServerReadinessRuleStatus
- type ServerReclaimPolicy
- type ServerSpec
- type ServerState
- type ServerStatus
- type Storage
- type StorageDrive
- type StorageState
- type StorageVolume
- type Taint
- type TaintEffect
- type TaintStatus
- type Toleration
- type TolerationOperator
Constants ¶
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" )
const ( // BMCSecretUsernameKeyName is the secret key name for the username. BMCSecretUsernameKeyName = "username" // BMCSecretPasswordKeyName is the secret key name for the password. BMCSecretPasswordKeyName = "password" )
const ( // OperationAnnotation is the annotation key selecting an out-of-band operation to perform on // a resource, i.e. an action driven by the annotation value rather than by spec reconciliation. // Its value must be one of the OperationAnnotation* constants below. OperationAnnotation = "metal.ironcore.dev/operation" // OperationAnnotationIgnore makes the reconciler skip a resource entirely when set on it. OperationAnnotationIgnore = "ignore" // OperationAnnotationForceUpdateOrDeleteInProgress allows a resource to be deleted even while an // operation is still in progress. OperationAnnotationForceUpdateOrDeleteInProgress = "allow-in-progress-delete" // OperationAnnotationForceUpdateInProgress allows a resource to be updated even while an operation // is still in progress. OperationAnnotationForceUpdateInProgress = "allow-in-progress-update" // OperationAnnotationRetry restarts a resource's reconciliation from failed state back to // initial state when set on it. OperationAnnotationRetry = "retry" // OperationAnnotationRetryPropagated is set by the controller on a child resource to restart // the child's reconciliation from failed state back to initial state, after the parent requested // retrying its children via retry-child or retry-child-and-self. It is controller-set state, not // user-facing input. OperationAnnotationRetryPropagated = "retry-propagated" // OperationAnnotationRotateCredentials indicates that a resource's credentials should be rotated // when set on it. OperationAnnotationRotateCredentials = "rotate-credentials" // WatchFilterLabel selects the operator instance that owns a resource. An // instance started with --watch-filter=<value> only watches and reconciles // resources carrying this label with that value. An instance without // --watch-filter only handles resources that do not carry the label at all. WatchFilterLabel = "metal.ironcore.dev/watch-filter" // OperationAnnotationPark requests that a Server be parked out of the ServerClaim lifecycle so an // external component can run out-of-band day-2 operations (firmware/BIOS/BMC updates, diagnostics, // hardware rework). OperationAnnotationPark = "park" // OperationAnnotationUnpark requests that a parked Server be resumed into the normal // ServerClaim lifecycle. OperationAnnotationUnpark = "unpark" // ParkedAnnotation is the durable, controller-set marker recording that a Server is parked. ParkedAnnotation = "metal.ironcore.dev/parked" // PreParkStateAnnotation records the Server state before it was parked, so unpark can // resume the Server into its previous state. PreParkStateAnnotation = "metal.ironcore.dev/pre-park-state" // MetadataKeyPrefix is the shared prefix for labels and annotations on a Server // whose suffix is exposed via the metaldata service to the booted server. MetadataKeyPrefix = "metadata.metal.ironcore.dev/" // MetadataFlavorHeader is the HTTP header the metaldata service requires on // every request, mirroring GCE/GCP metadata server conventions. MetadataFlavorHeader = "Metadata-Flavor" // MetadataFlavorValue is the expected value for MetadataFlavorHeader. MetadataFlavorValue = "IronCore Metal" )
const ( // GracefulRestartServerPower 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" // PowerCycleServerPower 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" // GracefulRestartBMC indicates to gracefully restart the baremetal server's BMC's power. GracefulRestartBMC = "graceful-restart-bmc" // ForceSSHResetBMC is set internally by the BMCReconciler on the OperationAnnotation when a // Redfish reset fails with a 5xx error. On the next reconcile the controller detects this // annotation and performs the SSH reset directly. ForceSSHResetBMC = "force-ssh-reset-bmc" )
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 = MetadataKeyPrefix + "location" // LabelRack is the label key for the opaque rack identifier within a location. LabelRack = MetadataKeyPrefix + "rack" // LabelShelf is the label key for the position within the rack (bottom-up U number). LabelShelf = MetadataKeyPrefix + "shelf" // LabelHeight is the label key for the device height in rack units (U). LabelHeight = MetadataKeyPrefix + "height" )
const SecretTypeUserData v1.SecretType = "metal.ironcore.dev/user-data"
SecretTypeUserData is the Secret type required for Secrets referenced by ServerClaim.Spec.UserDataRef.
Variables ¶
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 )
var AnnotationToRedfishMapping = map[string]schemas.ResetType{ GracefulRestartServerPower: schemas.GracefulRestartResetType, HardRestartServerPower: schemas.ForceRestartResetType, PowerCycleServerPower: schemas.PowerCycleResetType, ForceOffServerPower: schemas.ForceOffResetType, ForceOnServerPower: schemas.ForceOnResetType, GracefulRestartBMC: schemas.GracefulRestartResetType, }
Functions ¶
func EqualIPPrefixes ¶
func MatchesWatchFilter ¶ added in v0.8.0
MatchesWatchFilter reports whether the object belongs to the given watch filter. An empty filter only owns unlabeled objects.
func PropagateWatchFilterLabel ¶ added in v0.8.0
PropagateWatchFilterLabel copies the watch-filter label from src to dst if src carries one and removes it from dst otherwise. Controllers that create child resources use this to keep children visible to the same operator instance as their parent, including when the parent's label is removed or changed.
func WatchFilterSelector ¶ added in v0.8.0
WatchFilterSelector returns the label selector matching exactly the resources an operator instance with the given watch filter value is responsible for. An empty filter matches resources without the watch-filter label, a non-empty filter matches resources labeled WatchFilterLabel=<filter>.
Types ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BMC.
func (*BMC) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*BMC) DeepCopyObject ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BMCAccess.
func (*BMCAccess) DeepCopyInto ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BMCList.
func (*BMCList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*BMCList) DeepCopyObject ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BMCSecret.
func (*BMCSecret) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*BMCSecret) DeepCopyObject ¶
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 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.
//
// Deprecated: The Endpoint resource is deprecated. Specify the network access inline via
// access (an InlineEndpoint carrying the MAC address and IP) instead of referencing an
// Endpoint object.
// +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"`
// 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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BMCSpec.
func (*BMCSpec) DeepCopyInto ¶
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"`
// 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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BMCStatus.
func (*BMCStatus) DeepCopyInto ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BootOrder.
func (*BootOrder) DeepCopyInto ¶
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
func (in *ConditionRequirement) DeepCopy() *ConditionRequirement
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
deprecated
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
Deprecated: The Endpoint resource is deprecated. Model the same information inline via BMC.spec.access (an InlineEndpoint carrying the MAC address and IP) instead of creating a separate Endpoint object.
func (*Endpoint) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Endpoint.
func (*Endpoint) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Endpoint) DeepCopyObject ¶
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 IP ¶
IP is an IP address. +kubebuilder:validation:Type=string +kubebuilder:validation:Format=ip
func MustParseIP ¶
func MustParseNewIP ¶
func ParseNewIP ¶
func (*IP) DeepCopyInto ¶
func (IP) GomegaString ¶
func (IP) MarshalJSON ¶
func (IP) OpenAPISchemaFormat ¶
func (IP) OpenAPISchemaType ¶
func (IP) ToUnstructured ¶
func (*IP) UnmarshalJSON ¶
type IPPrefix ¶
IPPrefix represents a network prefix. +nullable
func MustParseIPPrefix ¶
func MustParseNewIPPrefix ¶
func NewIPPrefix ¶
func ParseIPPrefix ¶
func ParseNewIPPrefix ¶
func (*IPPrefix) DeepCopyInto ¶
func (IPPrefix) GomegaString ¶
func (IPPrefix) MarshalJSON ¶
func (IPPrefix) OpenAPISchemaFormat ¶
func (IPPrefix) OpenAPISchemaType ¶
func (IPPrefix) ToUnstructured ¶
func (*IPPrefix) UnmarshalJSON ¶
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
func (in *ImmutableObjectReference) DeepCopy() *ImmutableObjectReference
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 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 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 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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Processor.
func (*Processor) DeepCopyInto ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Protocol.
func (*Protocol) DeepCopyInto ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Server.
func (*Server) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Server) DeepCopyObject ¶
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 ¶
func (in *ServerBootConfiguration) DeepCopy() *ServerBootConfiguration
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 ¶
func (in *ServerBootConfigurationList) DeepCopy() *ServerBootConfigurationList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServerBootConfigurationList.
func (*ServerBootConfigurationList) DeepCopyInto ¶
func (in *ServerBootConfigurationList) DeepCopyInto(out *ServerBootConfigurationList)
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 ¶
func (in *ServerBootConfigurationSpec) DeepCopy() *ServerBootConfigurationSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServerBootConfigurationSpec.
func (*ServerBootConfigurationSpec) DeepCopyInto ¶
func (in *ServerBootConfigurationSpec) DeepCopyInto(out *ServerBootConfigurationSpec)
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 ¶
func (in *ServerBootConfigurationStatus) DeepCopy() *ServerBootConfigurationStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServerBootConfigurationStatus.
func (*ServerBootConfigurationStatus) DeepCopyInto ¶
func (in *ServerBootConfigurationStatus) DeepCopyInto(out *ServerBootConfigurationStatus)
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"`
// UserDataRef references a Secret in the same namespace as this ServerClaim
// containing user-data exposed to the claimed server via the metaldata
// service. The referenced Secret must be of type metal.ironcore.dev/user-data.
// +optional
UserDataRef *v1.LocalObjectReference `json:"userDataRef,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 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
func (in *ServerReadinessRuleList) DeepCopy() *ServerReadinessRuleList
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
func (in *ServerReadinessRuleSpec) DeepCopy() *ServerReadinessRuleSpec
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
func (in *ServerReadinessRuleStatus) DeepCopy() *ServerReadinessRuleStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServerReadinessRuleStatus.
func (*ServerReadinessRuleStatus) DeepCopyInto ¶ added in v0.6.0
func (in *ServerReadinessRuleStatus) DeepCopyInto(out *ServerReadinessRuleStatus)
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"`
// 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"`
// 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"`
// BootOrder specifies the boot order of the server.
// +optional
BootOrder []BootOrder `json:"bootOrder,omitempty"`
// Taints control which ServerClaims can be bound to this server.
// +optional
Taints []Taint `json:"taints,omitempty"`
// Unclaimable, when true, prevents new ServerClaims from being bound to
// this Server. Already-bound claims are unaffected.
// +kubebuilder:default=false
// +optional
Unclaimable bool `json:"unclaimable,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" // ServerStateParked indicates that the server is parked out of the ServerClaim lifecycle so an // external component can run out-of-band day-2 operations. Parked is an overlay state: while // active, normal state-machine progression, boot, and power healing are suspended. ServerStateParked ServerState = "Parked" )
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 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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Storage.
func (*Storage) DeepCopyInto ¶
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
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Taint.
func (*Taint) DeepCopyInto ¶ added in v0.6.0
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 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" )