Documentation
¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the baremetal v1alpha1 API group +kubebuilder:object:generate=true +groupName=baremetal.com.rmb938
Index ¶
- Constants
- Variables
- type BareMetalDiscovery
- func (in *BareMetalDiscovery) DeepCopy() *BareMetalDiscovery
- func (in *BareMetalDiscovery) DeepCopyInto(out *BareMetalDiscovery)
- func (in *BareMetalDiscovery) DeepCopyObject() runtime.Object
- func (r *BareMetalDiscovery) Default()
- func (r *BareMetalDiscovery) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *BareMetalDiscovery) ValidateCreate() error
- func (r *BareMetalDiscovery) ValidateDelete() error
- func (r *BareMetalDiscovery) ValidateUpdate(old runtime.Object) error
- type BareMetalDiscoveryHardware
- type BareMetalDiscoveryHardwareCPU
- type BareMetalDiscoveryHardwareNIC
- type BareMetalDiscoveryHardwareStorage
- type BareMetalDiscoveryList
- type BareMetalDiscoverySpec
- type BareMetalDiscoveryStatus
- type BareMetalEndpoint
- func (in *BareMetalEndpoint) DeepCopy() *BareMetalEndpoint
- func (in *BareMetalEndpoint) DeepCopyInto(out *BareMetalEndpoint)
- func (in *BareMetalEndpoint) DeepCopyObject() runtime.Object
- func (r *BareMetalEndpoint) Default()
- func (r *BareMetalEndpoint) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *BareMetalEndpoint) ValidateCreate() error
- func (r *BareMetalEndpoint) ValidateDelete() error
- func (r *BareMetalEndpoint) ValidateUpdate(old runtime.Object) error
- type BareMetalEndpointBond
- type BareMetalEndpointList
- type BareMetalEndpointSpec
- type BareMetalEndpointStatus
- type BareMetalEndpointStatusAddress
- type BareMetalEndpointStatusPhase
- type BareMetalHardware
- func (in *BareMetalHardware) DeepCopy() *BareMetalHardware
- func (in *BareMetalHardware) DeepCopyInto(out *BareMetalHardware)
- func (in *BareMetalHardware) DeepCopyObject() runtime.Object
- func (r *BareMetalHardware) Default()
- func (r *BareMetalHardware) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *BareMetalHardware) ValidateCreate() error
- func (r *BareMetalHardware) ValidateDelete() error
- func (r *BareMetalHardware) ValidateUpdate(old runtime.Object) error
- type BareMetalHardwareList
- type BareMetalHardwareNIC
- type BareMetalHardwareNICBond
- type BareMetalHardwareSpec
- type BareMetalHardwareStatus
- type BareMetalHardwareStatusInstanceRef
- type BareMetalInstance
- func (in *BareMetalInstance) DeepCopy() *BareMetalInstance
- func (in *BareMetalInstance) DeepCopyInto(out *BareMetalInstance)
- func (in *BareMetalInstance) DeepCopyObject() runtime.Object
- func (r *BareMetalInstance) Default()
- func (r *BareMetalInstance) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *BareMetalInstance) ValidateCreate() error
- func (r *BareMetalInstance) ValidateDelete() error
- func (r *BareMetalInstance) ValidateUpdate(old runtime.Object) error
- type BareMetalInstanceList
- type BareMetalInstanceSpec
- type BareMetalInstanceStatus
- type BareMetalInstanceStatusAgentInfo
- type BareMetalInstanceStatusPhase
- type BareMetalNetwork
- func (in *BareMetalNetwork) DeepCopy() *BareMetalNetwork
- func (in *BareMetalNetwork) DeepCopyInto(out *BareMetalNetwork)
- func (in *BareMetalNetwork) DeepCopyObject() runtime.Object
- func (r *BareMetalNetwork) Default()
- func (r *BareMetalNetwork) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *BareMetalNetwork) ValidateCreate() error
- func (r *BareMetalNetwork) ValidateDelete() error
- func (r *BareMetalNetwork) ValidateUpdate(old runtime.Object) error
- type BareMetalNetworkList
- type BareMetalNetworkSpec
- type BareMetalNetworkStatus
- type BondMode
Constants ¶
const ( // Condition Types BareMetalHardwareConditionTypeHardwareSet conditionv1.ConditionType = "HardwareSet" BareMetalHardwareConditionTypeImageDriveValid conditionv1.ConditionType = "ImageDriveValid" BareMetalHardwareConditionTypeNicsValid conditionv1.ConditionType = "NicsValid" // Condition Reasons BareMetalHardwareHardwareIsSetConditionReason string = "HardwareIsSet" BareMetalHardwareHardwareIsNotSetConditionReason string = "HardwareIsNotSet" BareMetalHardwareValidImageDriveConditionReason string = "ValidImageDrive" BareMetalHardwareInvalidImageDriveConditionReason string = "InvalidImageDrive" BareMetalHardwareImageDriveIsNotSetConditionReason string = "ImageDriveIsNotSet" BareMetalHardwareValidNicsConditionReason string = "ValidNics" BareMetalHardwareInvalidNicsConditionReason string = "InvalidNics" BareMetalHardwareNicsAreNotSetConditionReason string = "NicsAreNotSet" // Event Reasons BareMetalHardwareNotSchedulableEventReason string = "HardwareNotSchedulable" BareMetalHardwareSchedulableEventReason string = "HardwareSchedulable" BareMetalHardwareReadyEventReason string = "HardwareReady" BareMetalHardwareNotReadyEventReason string = "HardwareNotReady" BareMetalHardwareDiscoveryNotFoundEventReason string = "DiscoveryNotFound" BareMetalHardwareDiscoveryNoHardwareEventReason string = "DiscoveryNoHardware" BareMetalHardwareManyDiscoveryFoundEventReason string = "ManyDiscoveryFound" BareMetalHardwareDiscoveryFoundEventReason string = "DiscoveryFound" BareMetalHardwareCleaningEventReason string = "HardwareCleaning" BareMetalHardwareCleanedEventReason string = "HardwareCleaned" )
const ( // Condition Types BareMetalHardwareConditionTypeInstanceScheduled conditionv1.ConditionType = "InstanceScheduled" BareMetalHardwareConditionTypeInstanceNetworked conditionv1.ConditionType = "InstanceNetworkConfigured" BareMetalHardwareConditionTypeInstanceImaged conditionv1.ConditionType = "InstanceImaged" BareMetalHardwareConditionTypeInstanceCleaned conditionv1.ConditionType = "InstanceCleaned" // Condition Reasons BareMetalInstanceImagingFailedConditionReason string = "ImagingFailed" BareMetalInstanceCleaningFailedConditionReason string = "CleaningFailed" // Event Reasons BareMetalInstanceScheduleEventReason string = "InstanceScheduled" BareMetalInstanceUnscheduleEventReason string = "InstanceUnscheduled" BareMetalInstanceProvisioningEventReason string = "InstanceProvisioning" BareMetalInstanceNetworkingEventReason string = "InstanceNetworking" BareMetalInstanceNetworkedEventReason string = "InstanceNetworked" BareMetalInstanceNoAgentEventReason string = "InstanceNoAgent" BareMetalInstanceImagingEventReason string = "InstanceImaging" BareMetalInstanceImagedEventReason string = "InstanceImaged" BareMetalInstanceNotCleanedEventReason string = "InstanceNotCleaned" BareMetalInstanceCleaningEventReason string = "InstanceCleaning" BareMetalInstanceCleanedEventReason string = "InstanceCleaned" )
Variables ¶
var ( BareMetalEndpointFinalizer = "bme." + FinalizerPrefix BareMetalEndpointInstanceLabel = GroupVersion.Group + "/instance" BareMetalEndpointNICLabel = GroupVersion.Group + "/nic" )
var ( BareMetalHardwareFinalizer = "bmh." + FinalizerPrefix BareMetalHardwareTaintKeyNotReady = "hardware." + GroupVersion.Group + "/not-ready" BareMetalHardwareTaintKeyNoSchedule = "hardware." + GroupVersion.Group + "/unschedulable" )
var ( FinalizerPrefix = "finalizer." + GroupVersion.Group // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "baremetal.com.rmb938", Version: "v1alpha1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
var (
BareMetalInstanceFinalizer = "bmi." + FinalizerPrefix
)
var (
BareMetalNetworkFinalizer = "bmn." + FinalizerPrefix
)
Functions ¶
This section is empty.
Types ¶
type BareMetalDiscovery ¶
type BareMetalDiscovery struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` // +kubebuilder:validation:Required Spec BareMetalDiscoverySpec `json:"spec"` // +kubebuilder:validation:Optional Status BareMetalDiscoveryStatus `json:"status,omitempty"` }
BareMetalDiscovery is the Schema for the baremetaldiscoveries API
func (*BareMetalDiscovery) DeepCopy ¶
func (in *BareMetalDiscovery) DeepCopy() *BareMetalDiscovery
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BareMetalDiscovery.
func (*BareMetalDiscovery) DeepCopyInto ¶
func (in *BareMetalDiscovery) DeepCopyInto(out *BareMetalDiscovery)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*BareMetalDiscovery) DeepCopyObject ¶
func (in *BareMetalDiscovery) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*BareMetalDiscovery) Default ¶
func (r *BareMetalDiscovery) Default()
Default implements webhook.Defaulter so a webhook will be registered for the type
func (*BareMetalDiscovery) SetupWebhookWithManager ¶
func (r *BareMetalDiscovery) SetupWebhookWithManager(mgr ctrl.Manager) error
func (*BareMetalDiscovery) ValidateCreate ¶
func (r *BareMetalDiscovery) ValidateCreate() error
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*BareMetalDiscovery) ValidateDelete ¶
func (r *BareMetalDiscovery) ValidateDelete() error
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
func (*BareMetalDiscovery) ValidateUpdate ¶
func (r *BareMetalDiscovery) ValidateUpdate(old runtime.Object) error
ValidateUpdate implements webhook.Validator so a webhook will be registered for the type
type BareMetalDiscoveryHardware ¶
type BareMetalDiscoveryHardware struct { // The system's cpu information // +kubebuilder:validation:Required CPU BareMetalDiscoveryHardwareCPU `json:"cpu"` // The amount of memory in the system // +kubebuilder:validation:Required Ram resource.Quantity `json:"ram"` // A list of the system's storage devices // +kubebuilder:validation:Required // +kubebuilder:validation:MinItems=1 Storage []BareMetalDiscoveryHardwareStorage `json:"storage"` // A list of she system's nics // +kubebuilder:validation:Required // +kubebuilder:validation:MinItems=1 NICS []BareMetalDiscoveryHardwareNIC `json:"nics"` }
func (*BareMetalDiscoveryHardware) DeepCopy ¶
func (in *BareMetalDiscoveryHardware) DeepCopy() *BareMetalDiscoveryHardware
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BareMetalDiscoveryHardware.
func (*BareMetalDiscoveryHardware) DeepCopyInto ¶
func (in *BareMetalDiscoveryHardware) DeepCopyInto(out *BareMetalDiscoveryHardware)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BareMetalDiscoveryHardwareCPU ¶
type BareMetalDiscoveryHardwareCPU struct { // The model name of the CPU // +kubebuilder:validation:Required ModelName string `json:"modelName"` // The architecture of the CPU // +kubebuilder:validation:Required Architecture string `json:"architecture"` // The number of CPUs // +kubebuilder:validation:Required CPUS resource.Quantity `json:"cpus"` }
func (*BareMetalDiscoveryHardwareCPU) DeepCopy ¶
func (in *BareMetalDiscoveryHardwareCPU) DeepCopy() *BareMetalDiscoveryHardwareCPU
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BareMetalDiscoveryHardwareCPU.
func (*BareMetalDiscoveryHardwareCPU) DeepCopyInto ¶
func (in *BareMetalDiscoveryHardwareCPU) DeepCopyInto(out *BareMetalDiscoveryHardwareCPU)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BareMetalDiscoveryHardwareNIC ¶
type BareMetalDiscoveryHardwareNIC struct { // The name of the NIC // +kubebuilder:validation:Required Name string `json:"name"` // The mac address of the NIC // +kubebuilder:validation:Required MAC string `json:"mac"` // sometimes this can be -1 like in vms so don't multiply // The speed of the NIC // +kubebuilder:validation:Required Speed resource.Quantity `json:"speed"` }
func (*BareMetalDiscoveryHardwareNIC) DeepCopy ¶
func (in *BareMetalDiscoveryHardwareNIC) DeepCopy() *BareMetalDiscoveryHardwareNIC
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BareMetalDiscoveryHardwareNIC.
func (*BareMetalDiscoveryHardwareNIC) DeepCopyInto ¶
func (in *BareMetalDiscoveryHardwareNIC) DeepCopyInto(out *BareMetalDiscoveryHardwareNIC)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BareMetalDiscoveryHardwareStorage ¶
type BareMetalDiscoveryHardwareStorage struct { // The name of the storage device // +kubebuilder:validation:Required Name string `json:"name"` // The size of the storage device // +kubebuilder:validation:Required Size resource.Quantity `json:"size"` // If the device is a rotational device // +kubebuilder:validation:Required Rotational bool `json:"rotational"` // If the device supports trim // +kubebuilder:validation:Required Trim bool `json:"trim"` // The device's serial number // +kubebuilder:validation:Required Serial string `json:"serial"` }
func (*BareMetalDiscoveryHardwareStorage) DeepCopy ¶
func (in *BareMetalDiscoveryHardwareStorage) DeepCopy() *BareMetalDiscoveryHardwareStorage
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BareMetalDiscoveryHardwareStorage.
func (*BareMetalDiscoveryHardwareStorage) DeepCopyInto ¶
func (in *BareMetalDiscoveryHardwareStorage) DeepCopyInto(out *BareMetalDiscoveryHardwareStorage)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BareMetalDiscoveryList ¶
type BareMetalDiscoveryList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []BareMetalDiscovery `json:"items"` }
BareMetalDiscoveryList contains a list of BareMetalDiscovery
func (*BareMetalDiscoveryList) DeepCopy ¶
func (in *BareMetalDiscoveryList) DeepCopy() *BareMetalDiscoveryList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BareMetalDiscoveryList.
func (*BareMetalDiscoveryList) DeepCopyInto ¶
func (in *BareMetalDiscoveryList) DeepCopyInto(out *BareMetalDiscoveryList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*BareMetalDiscoveryList) DeepCopyObject ¶
func (in *BareMetalDiscoveryList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type BareMetalDiscoverySpec ¶
type BareMetalDiscoverySpec struct { // +kubebuilder:validation:Required SystemUUID types.UID `json:"systemUUID"` }
BareMetalDiscoverySpec defines the desired state of BareMetalDiscovery
func (*BareMetalDiscoverySpec) DeepCopy ¶
func (in *BareMetalDiscoverySpec) DeepCopy() *BareMetalDiscoverySpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BareMetalDiscoverySpec.
func (*BareMetalDiscoverySpec) DeepCopyInto ¶
func (in *BareMetalDiscoverySpec) DeepCopyInto(out *BareMetalDiscoverySpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BareMetalDiscoveryStatus ¶
type BareMetalDiscoveryStatus struct { // The hardware that the discovered system contains // +kubebuilder:validation:Optional Hardware *BareMetalDiscoveryHardware `json:"hardware,omitempty"` }
BareMetalDiscoveryStatus defines the observed state of BareMetalDiscovery
func (*BareMetalDiscoveryStatus) DeepCopy ¶
func (in *BareMetalDiscoveryStatus) DeepCopy() *BareMetalDiscoveryStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BareMetalDiscoveryStatus.
func (*BareMetalDiscoveryStatus) DeepCopyInto ¶
func (in *BareMetalDiscoveryStatus) DeepCopyInto(out *BareMetalDiscoveryStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BareMetalEndpoint ¶
type BareMetalEndpoint struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` // +kubebuilder:validation:Required Spec BareMetalEndpointSpec `json:"spec"` // +kubebuilder:validation:Optional Status BareMetalEndpointStatus `json:"status,omitempty"` }
BareMetalEndpoint is the Schema for the baremetalendpoints API
func (*BareMetalEndpoint) DeepCopy ¶
func (in *BareMetalEndpoint) DeepCopy() *BareMetalEndpoint
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BareMetalEndpoint.
func (*BareMetalEndpoint) DeepCopyInto ¶
func (in *BareMetalEndpoint) DeepCopyInto(out *BareMetalEndpoint)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*BareMetalEndpoint) DeepCopyObject ¶
func (in *BareMetalEndpoint) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*BareMetalEndpoint) Default ¶
func (r *BareMetalEndpoint) Default()
Default implements webhook.Defaulter so a webhook will be registered for the type
func (*BareMetalEndpoint) SetupWebhookWithManager ¶
func (r *BareMetalEndpoint) SetupWebhookWithManager(mgr ctrl.Manager) error
func (*BareMetalEndpoint) ValidateCreate ¶
func (r *BareMetalEndpoint) ValidateCreate() error
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*BareMetalEndpoint) ValidateDelete ¶
func (r *BareMetalEndpoint) ValidateDelete() error
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
func (*BareMetalEndpoint) ValidateUpdate ¶
func (r *BareMetalEndpoint) ValidateUpdate(old runtime.Object) error
ValidateUpdate implements webhook.Validator so a webhook will be registered for the type
type BareMetalEndpointBond ¶
type BareMetalEndpointBond struct { // The nic macs to bond together // +kubebuilder:validation:MinItems=1 // +kubebuilder:validation:Required MACS []string `json:"macs"` // The bonding mode // +kubebuilder:validation:Required Mode BondMode `json:"mode,omitempty"` }
func (*BareMetalEndpointBond) DeepCopy ¶
func (in *BareMetalEndpointBond) DeepCopy() *BareMetalEndpointBond
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BareMetalEndpointBond.
func (*BareMetalEndpointBond) DeepCopyInto ¶
func (in *BareMetalEndpointBond) DeepCopyInto(out *BareMetalEndpointBond)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BareMetalEndpointList ¶
type BareMetalEndpointList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []BareMetalEndpoint `json:"items"` }
BareMetalEndpointList contains a list of BareMetalEndpoint
func (*BareMetalEndpointList) DeepCopy ¶
func (in *BareMetalEndpointList) DeepCopy() *BareMetalEndpointList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BareMetalEndpointList.
func (*BareMetalEndpointList) DeepCopyInto ¶
func (in *BareMetalEndpointList) DeepCopyInto(out *BareMetalEndpointList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*BareMetalEndpointList) DeepCopyObject ¶
func (in *BareMetalEndpointList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type BareMetalEndpointSpec ¶
type BareMetalEndpointSpec struct { // If this endpoint is the primary nic // +kubebuilder:validation:Required Primary bool `json:"primary"` // +kubebuilder:validation:Required MAC string `json:"macs"` // Bond information for the nic // +kubebuilder:validation:Optional Bond *BareMetalEndpointBond `json:"bond,omitempty"` // The reference to the network object // +kubebuilder:validation:Required NetworkRef kbmeta.ObjectReference `json:"networkRef"` }
BareMetalEndpointSpec defines the desired state of BareMetalEndpoint
func (*BareMetalEndpointSpec) DeepCopy ¶
func (in *BareMetalEndpointSpec) DeepCopy() *BareMetalEndpointSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BareMetalEndpointSpec.
func (*BareMetalEndpointSpec) DeepCopyInto ¶
func (in *BareMetalEndpointSpec) DeepCopyInto(out *BareMetalEndpointSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BareMetalEndpointStatus ¶
type BareMetalEndpointStatus struct { // network controllers may want to set conditions conditionv1.StatusConditions `json:",inline"` // +kubebuilder:validation:Optional Address *BareMetalEndpointStatusAddress `json:"address,omitempty"` // +kubebuilder:validation:Optional Phase BareMetalEndpointStatusPhase `json:"phase,omitempty"` }
BareMetalEndpointStatus defines the observed state of BareMetalEndpoint
func (*BareMetalEndpointStatus) DeepCopy ¶
func (in *BareMetalEndpointStatus) DeepCopy() *BareMetalEndpointStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BareMetalEndpointStatus.
func (*BareMetalEndpointStatus) DeepCopyInto ¶
func (in *BareMetalEndpointStatus) DeepCopyInto(out *BareMetalEndpointStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BareMetalEndpointStatusAddress ¶
type BareMetalEndpointStatusAddress struct { // +kubebuilder:validation:Required IP string `json:"ip"` // +kubebuilder:validation:Required CIDR string `json:"cidr"` Gateway string `json:"gateway"` // +kubebuilder:validation:Required // +kubebuilder:validation:MinItems=1 Nameservers []string `json:"nameservers"` // +kubebuilder:validation:Optional Search []string `json:"search,omitempty"` }
func (*BareMetalEndpointStatusAddress) DeepCopy ¶
func (in *BareMetalEndpointStatusAddress) DeepCopy() *BareMetalEndpointStatusAddress
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BareMetalEndpointStatusAddress.
func (*BareMetalEndpointStatusAddress) DeepCopyInto ¶
func (in *BareMetalEndpointStatusAddress) DeepCopyInto(out *BareMetalEndpointStatusAddress)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BareMetalEndpointStatusPhase ¶
type BareMetalEndpointStatusPhase string
We will not enum this network controllers may want to set this to different things as long as it ends at "Addressed" is all that matters
const ( BareMetalEndpointStatusPhasePending BareMetalEndpointStatusPhase = "Pending" BareMetalEndpointStatusPhaseAddressing BareMetalEndpointStatusPhase = "Addressing" BareMetalEndpointStatusPhaseAddressed BareMetalEndpointStatusPhase = "Addressed" BareMetalEndpointStatusPhaseDeleting BareMetalEndpointStatusPhase = "Deleting" BareMetalEndpointStatusPhaseDeleted BareMetalEndpointStatusPhase = "Deleted" )
type BareMetalHardware ¶
type BareMetalHardware struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` // +kubebuilder:validation:Required Spec BareMetalHardwareSpec `json:"spec"` // +kubebuilder:validation:Optional Status BareMetalHardwareStatus `json:"status,omitempty"` }
BareMetalHardware is the Schema for the baremetalhardwares API
func (*BareMetalHardware) DeepCopy ¶
func (in *BareMetalHardware) DeepCopy() *BareMetalHardware
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BareMetalHardware.
func (*BareMetalHardware) DeepCopyInto ¶
func (in *BareMetalHardware) DeepCopyInto(out *BareMetalHardware)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*BareMetalHardware) DeepCopyObject ¶
func (in *BareMetalHardware) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*BareMetalHardware) Default ¶
func (r *BareMetalHardware) Default()
Default implements webhook.Defaulter so a webhook will be registered for the type
func (*BareMetalHardware) SetupWebhookWithManager ¶
func (r *BareMetalHardware) SetupWebhookWithManager(mgr ctrl.Manager) error
func (*BareMetalHardware) ValidateCreate ¶
func (r *BareMetalHardware) ValidateCreate() error
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*BareMetalHardware) ValidateDelete ¶
func (r *BareMetalHardware) ValidateDelete() error
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
func (*BareMetalHardware) ValidateUpdate ¶
func (r *BareMetalHardware) ValidateUpdate(old runtime.Object) error
ValidateUpdate implements webhook.Validator so a webhook will be registered for the type
type BareMetalHardwareList ¶
type BareMetalHardwareList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []BareMetalHardware `json:"items"` }
BareMetalHardwareList contains a list of BareMetalHardware
func (*BareMetalHardwareList) DeepCopy ¶
func (in *BareMetalHardwareList) DeepCopy() *BareMetalHardwareList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BareMetalHardwareList.
func (*BareMetalHardwareList) DeepCopyInto ¶
func (in *BareMetalHardwareList) DeepCopyInto(out *BareMetalHardwareList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*BareMetalHardwareList) DeepCopyObject ¶
func (in *BareMetalHardwareList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type BareMetalHardwareNIC ¶
type BareMetalHardwareNIC struct { // The name of the nic // +kubebuilder:validation:Required Name string `json:"name"` // If the nic is the primary nic // +kubebuilder:validation:Required Primary bool `json:"primary"` // Bond information for the nic // +kubebuilder:validation:Optional Bond *BareMetalHardwareNICBond `json:"bond,omitempty"` // The reference to the network object // +kubebuilder:validation:Required NetworkRef kbmeta.ObjectReference `json:"networkRef"` }
func (*BareMetalHardwareNIC) DeepCopy ¶
func (in *BareMetalHardwareNIC) DeepCopy() *BareMetalHardwareNIC
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BareMetalHardwareNIC.
func (*BareMetalHardwareNIC) DeepCopyInto ¶
func (in *BareMetalHardwareNIC) DeepCopyInto(out *BareMetalHardwareNIC)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BareMetalHardwareNICBond ¶
type BareMetalHardwareNICBond struct { // The nic names to bond together // +kubebuilder:validation:MinItems=1 // +kubebuilder:validation:Required Interfaces []string `json:"interfaces"` // The bonding mode // +kubebuilder:validation:Optional Mode BondMode `json:"mode,omitempty"` }
func (*BareMetalHardwareNICBond) DeepCopy ¶
func (in *BareMetalHardwareNICBond) DeepCopy() *BareMetalHardwareNICBond
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BareMetalHardwareNICBond.
func (*BareMetalHardwareNICBond) DeepCopyInto ¶
func (in *BareMetalHardwareNICBond) DeepCopyInto(out *BareMetalHardwareNICBond)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BareMetalHardwareSpec ¶
type BareMetalHardwareSpec struct { // +kubebuilder:validation:Required SystemUUID types.UID `json:"systemUUID"` // Can the hardware be provisioned into an instance // +kubebuilder:validation:Optional CanProvision bool `json:"canProvision"` // The drive to install the image onto // +kubebuilder:validation:Optional ImageDrive string `json:"imageDrive,omitempty"` // The nics that should be configured // +kubebuilder:validation:Optional NICS []BareMetalHardwareNIC `json:"nics,omitempty"` // Taints on the hardware // +kubebuilder:validation:Optional Taints []corev1.Taint `json:"taints,omitempty"` }
BareMetalHardwareSpec defines the desired state of BareMetalHardware
func (*BareMetalHardwareSpec) DeepCopy ¶
func (in *BareMetalHardwareSpec) DeepCopy() *BareMetalHardwareSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BareMetalHardwareSpec.
func (*BareMetalHardwareSpec) DeepCopyInto ¶
func (in *BareMetalHardwareSpec) DeepCopyInto(out *BareMetalHardwareSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BareMetalHardwareStatus ¶
type BareMetalHardwareStatus struct { conditionv1.StatusConditions `json:",inline"` // The reference to the instance running on the hardware // +kubebuilder:validation:Optional InstanceRef *BareMetalHardwareStatusInstanceRef `json:"instanceRef,omitempty"` // The hardware that the discovered system contains // +kubebuilder:validation:Optional Hardware *BareMetalDiscoveryHardware `json:"hardware,omitempty"` }
BareMetalHardwareStatus defines the observed state of BareMetalHardware
func (*BareMetalHardwareStatus) DeepCopy ¶
func (in *BareMetalHardwareStatus) DeepCopy() *BareMetalHardwareStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BareMetalHardwareStatus.
func (*BareMetalHardwareStatus) DeepCopyInto ¶
func (in *BareMetalHardwareStatus) DeepCopyInto(out *BareMetalHardwareStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BareMetalHardwareStatusInstanceRef ¶
type BareMetalHardwareStatusInstanceRef struct { // +kubebuilder:validation:Required Name string `json:"name"` // +kubebuilder:validation:Required Namespace string `json:"namespace"` // +kubebuilder:validation:Required UID types.UID `json:"uid"` }
func (*BareMetalHardwareStatusInstanceRef) DeepCopy ¶
func (in *BareMetalHardwareStatusInstanceRef) DeepCopy() *BareMetalHardwareStatusInstanceRef
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BareMetalHardwareStatusInstanceRef.
func (*BareMetalHardwareStatusInstanceRef) DeepCopyInto ¶
func (in *BareMetalHardwareStatusInstanceRef) DeepCopyInto(out *BareMetalHardwareStatusInstanceRef)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BareMetalInstance ¶
type BareMetalInstance struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` // +kubebuilder:validation:Required Spec BareMetalInstanceSpec `json:"spec"` // +kubebuilder:validation:Optional Status BareMetalInstanceStatus `json:"status,omitempty"` }
BareMetalInstance is the Schema for the baremetalinstances API
func (*BareMetalInstance) DeepCopy ¶
func (in *BareMetalInstance) DeepCopy() *BareMetalInstance
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BareMetalInstance.
func (*BareMetalInstance) DeepCopyInto ¶
func (in *BareMetalInstance) DeepCopyInto(out *BareMetalInstance)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*BareMetalInstance) DeepCopyObject ¶
func (in *BareMetalInstance) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*BareMetalInstance) Default ¶
func (r *BareMetalInstance) Default()
Default implements webhook.Defaulter so a webhook will be registered for the type
func (*BareMetalInstance) SetupWebhookWithManager ¶
func (r *BareMetalInstance) SetupWebhookWithManager(mgr ctrl.Manager) error
func (*BareMetalInstance) ValidateCreate ¶
func (r *BareMetalInstance) ValidateCreate() error
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*BareMetalInstance) ValidateDelete ¶
func (r *BareMetalInstance) ValidateDelete() error
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
func (*BareMetalInstance) ValidateUpdate ¶
func (r *BareMetalInstance) ValidateUpdate(old runtime.Object) error
ValidateUpdate implements webhook.Validator so a webhook will be registered for the type
type BareMetalInstanceList ¶
type BareMetalInstanceList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []BareMetalInstance `json:"items"` }
BareMetalInstanceList contains a list of BareMetalInstance
func (*BareMetalInstanceList) DeepCopy ¶
func (in *BareMetalInstanceList) DeepCopy() *BareMetalInstanceList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BareMetalInstanceList.
func (*BareMetalInstanceList) DeepCopyInto ¶
func (in *BareMetalInstanceList) DeepCopyInto(out *BareMetalInstanceList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*BareMetalInstanceList) DeepCopyObject ¶
func (in *BareMetalInstanceList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type BareMetalInstanceSpec ¶
type BareMetalInstanceSpec struct { // +kubebuilder:validation:Optional Selector map[string]string `json:"hardwareSelector,omitempty"` // +kubebuilder:validation:Optional Tolerations []corev1.Toleration `json:"tolerations,omitempty"` }
BareMetalInstanceSpec defines the desired state of BareMetalInstance
func (*BareMetalInstanceSpec) DeepCopy ¶
func (in *BareMetalInstanceSpec) DeepCopy() *BareMetalInstanceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BareMetalInstanceSpec.
func (*BareMetalInstanceSpec) DeepCopyInto ¶
func (in *BareMetalInstanceSpec) DeepCopyInto(out *BareMetalInstanceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BareMetalInstanceStatus ¶
type BareMetalInstanceStatus struct { conditionv1.StatusConditions `json:",inline"` // +kubebuilder:validation:Optional AgentInfo *BareMetalInstanceStatusAgentInfo `json:"agentInfo,omitempty"` // +kubebuilder:validation:Optional HardwareName string `json:"hardwareName,omitempty"` // +kubebuilder:validation:Optional Phase BareMetalInstanceStatusPhase `json:"phase,omitempty"` }
BareMetalInstanceStatus defines the observed state of BareMetalInstance
func (*BareMetalInstanceStatus) DeepCopy ¶
func (in *BareMetalInstanceStatus) DeepCopy() *BareMetalInstanceStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BareMetalInstanceStatus.
func (*BareMetalInstanceStatus) DeepCopyInto ¶
func (in *BareMetalInstanceStatus) DeepCopyInto(out *BareMetalInstanceStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BareMetalInstanceStatusAgentInfo ¶
type BareMetalInstanceStatusAgentInfo struct { // +kubebuilder:validation:Required IP string `json:"ip"` }
func (*BareMetalInstanceStatusAgentInfo) DeepCopy ¶
func (in *BareMetalInstanceStatusAgentInfo) DeepCopy() *BareMetalInstanceStatusAgentInfo
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BareMetalInstanceStatusAgentInfo.
func (*BareMetalInstanceStatusAgentInfo) DeepCopyInto ¶
func (in *BareMetalInstanceStatusAgentInfo) DeepCopyInto(out *BareMetalInstanceStatusAgentInfo)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BareMetalInstanceStatusPhase ¶
type BareMetalInstanceStatusPhase string
+kubebuilder:validation:Enum=Pending;Provisioning;Imaging;Running;Cleaning;Terminating;Terminated
const ( BareMetalInstanceStatusPhasePending BareMetalInstanceStatusPhase = "Pending" BareMetalInstanceStatusPhaseProvisioning BareMetalInstanceStatusPhase = "Provisioning" BareMetalInstanceStatusPhaseRunning BareMetalInstanceStatusPhase = "Running" BareMetalInstanceStatusPhaseCleaning BareMetalInstanceStatusPhase = "Cleaning" BareMetalInstanceStatusPhaseTerminating BareMetalInstanceStatusPhase = "Terminating" BareMetalInstanceStatusPhaseTerminated BareMetalInstanceStatusPhase = "Terminated" )
type BareMetalNetwork ¶
type BareMetalNetwork struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` // +kubebuilder:validation:Required Spec BareMetalNetworkSpec `json:"spec"` // +kubebuilder:validation:Optional Status BareMetalNetworkStatus `json:"status,omitempty"` }
BareMetalNetwork is the Schema for the baremetalnetworks API
func (*BareMetalNetwork) DeepCopy ¶
func (in *BareMetalNetwork) DeepCopy() *BareMetalNetwork
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BareMetalNetwork.
func (*BareMetalNetwork) DeepCopyInto ¶
func (in *BareMetalNetwork) DeepCopyInto(out *BareMetalNetwork)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*BareMetalNetwork) DeepCopyObject ¶
func (in *BareMetalNetwork) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*BareMetalNetwork) Default ¶
func (r *BareMetalNetwork) Default()
Default implements webhook.Defaulter so a webhook will be registered for the type
func (*BareMetalNetwork) SetupWebhookWithManager ¶
func (r *BareMetalNetwork) SetupWebhookWithManager(mgr ctrl.Manager) error
func (*BareMetalNetwork) ValidateCreate ¶
func (r *BareMetalNetwork) ValidateCreate() error
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*BareMetalNetwork) ValidateDelete ¶
func (r *BareMetalNetwork) ValidateDelete() error
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
func (*BareMetalNetwork) ValidateUpdate ¶
func (r *BareMetalNetwork) ValidateUpdate(old runtime.Object) error
ValidateUpdate implements webhook.Validator so a webhook will be registered for the type
type BareMetalNetworkList ¶
type BareMetalNetworkList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []BareMetalNetwork `json:"items"` }
BareMetalNetworkList contains a list of BareMetalNetwork
func (*BareMetalNetworkList) DeepCopy ¶
func (in *BareMetalNetworkList) DeepCopy() *BareMetalNetworkList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BareMetalNetworkList.
func (*BareMetalNetworkList) DeepCopyInto ¶
func (in *BareMetalNetworkList) DeepCopyInto(out *BareMetalNetworkList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*BareMetalNetworkList) DeepCopyObject ¶
func (in *BareMetalNetworkList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type BareMetalNetworkSpec ¶
type BareMetalNetworkSpec struct { // +kubebuilder:validation:Required CIDR string `json:"cidr"` // +kubebuilder:validation:Required Gateway string `json:"gateway"` // +kubebuilder:validation:Required Start string `json:"start"` // +kubebuilder:validation:Required End string `json:"end"` // +kubebuilder:validation:Required // +kubebuilder:validation:MinItems=1 Nameservers []string `json:"nameservers"` // +kubebuilder:validation:Optional Search []string `json:"search,omitempty"` }
BareMetalNetworkSpec defines the desired state of BareMetalNetwork
func (*BareMetalNetworkSpec) DeepCopy ¶
func (in *BareMetalNetworkSpec) DeepCopy() *BareMetalNetworkSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BareMetalNetworkSpec.
func (*BareMetalNetworkSpec) DeepCopyInto ¶
func (in *BareMetalNetworkSpec) DeepCopyInto(out *BareMetalNetworkSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BareMetalNetworkStatus ¶
type BareMetalNetworkStatus struct { }
BareMetalNetworkStatus defines the observed state of BareMetalNetwork
func (*BareMetalNetworkStatus) DeepCopy ¶
func (in *BareMetalNetworkStatus) DeepCopy() *BareMetalNetworkStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BareMetalNetworkStatus.
func (*BareMetalNetworkStatus) DeepCopyInto ¶
func (in *BareMetalNetworkStatus) DeepCopyInto(out *BareMetalNetworkStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BondMode ¶
type BondMode string
+kubebuilder:validation:Enum=balance-rr;active-backup;balance-xor;lacp;broadcast;balance-tlb;balance-alb
const ( BondModeBalanceRR BondMode = "balance-rr" BondModeActiveBackup BondMode = "active-backup" BondModeBalanceXOR BondMode = "balance-xor" BondModeBroadcast BondMode = "broadcast" BondModeLACP BondMode = "lacp" BondModeBalanceTLB BondMode = "balance-tlb" BondModeBalanceALB BondMode = "balance-alb" )
Source Files
¶
- baremetaldiscovery_types.go
- baremetaldiscovery_webhook.go
- baremetalendpoint_types.go
- baremetalendpoint_webhook.go
- baremetalhardware_types.go
- baremetalhardware_webhook.go
- baremetalinstance_types.go
- baremetalinstance_webhook.go
- baremetalnetwork_types.go
- baremetalnetwork_webhook.go
- groupversion_info.go
- zz_generated.deepcopy.go