v1alpha1

package
v0.0.0-...-dac2165 Latest Latest
Warning

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

Go to latest
Published: May 13, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the baremetal v1alpha1 API group +kubebuilder:object:generate=true +groupName=baremetal.com.rmb938

Index

Constants

View Source
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"
)
View Source
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

View Source
var (
	BareMetalEndpointFinalizer = "bme." + FinalizerPrefix

	BareMetalEndpointInstanceLabel = GroupVersion.Group + "/instance"
	BareMetalEndpointNICLabel      = GroupVersion.Group + "/nic"
)
View Source
var (
	BareMetalHardwareFinalizer = "bmh." + FinalizerPrefix

	BareMetalHardwareTaintKeyNotReady   = "hardware." + GroupVersion.Group + "/not-ready"
	BareMetalHardwareTaintKeyNoSchedule = "hardware." + GroupVersion.Group + "/unschedulable"
)
View Source
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
)
View Source
var (
	BareMetalInstanceFinalizer = "bmi." + FinalizerPrefix
)
View Source
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

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

func (*BareMetalDiscoveryHardware) DeepCopyInto

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

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

func (*BareMetalDiscoveryHardwareCPU) DeepCopyInto

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

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

func (*BareMetalDiscoveryHardwareNIC) DeepCopyInto

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

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

func (*BareMetalDiscoveryHardwareStorage) DeepCopyInto

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

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

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

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

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

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

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

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

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

func (*BareMetalEndpointStatusAddress) DeepCopyInto

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

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

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

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

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

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

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

func (*BareMetalHardwareStatusInstanceRef) DeepCopyInto

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

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

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

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

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

func (*BareMetalInstanceStatusAgentInfo) DeepCopyInto

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

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

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

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"
)

Jump to

Keyboard shortcuts

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