v1alpha1

package
v0.0.0-...-506b5b6 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MachineOperationKeyName      string = "machine.metal.ironcore.dev/operation"
	MachineOperationRestart      string = "Restart"
	MachineOperationForceRestart string = "ForceRestart"
	MachineOperationForceOff     string = "ForceOff"
)
View Source
const (
	MachineConditionTypeOOBHealthy = "OOBHealthy"
	MachineConditionReasonOOBReady = "OOBReady"
	MachineConditionReasonOOBError = "OOBError"
)
View Source
const (
	OOBOperationKeyName string = "oob.metal.ironcore.dev/operation"
	OOBOperationRestart string = "Restart"
)
View Source
const (
	OOBConditionTypeReady        = "Ready"
	OOBConditionReasonReady      = "Ready"
	OOBConditionReasonInProgress = "InProgress"
	OOBConditionReasonNoEndpoint = "NoEndpoint"
	OOBConditionReasonIgnored    = "Ignored"
	OOBConditionReasonError      = "Error"
)
View Source
const (
	SizeLabelPrefix = "metal.ironcore.dev/size-"

	AggregatePathPrefix            = "{.status.computed."
	AggregatePathPrefixReplacement = "{."
)

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion       = schema.GroupVersion{Group: "metal.ironcore.dev", Version: "v1alpha1"}
	SchemeGroupVersion = GroupVersion

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

Functions

func GetSizeMatchLabel

func GetSizeMatchLabel(sizeName string) string

Types

type Aggregate

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

	Spec   AggregateSpec   `json:"spec,omitempty"`
	Status AggregateStatus `json:"status,omitempty"`
}

Aggregate is the Schema for the aggregates API.

func (*Aggregate) Compute

func (in *Aggregate) Compute(inventory *Inventory) (interface{}, error)

func (*Aggregate) DeepCopy

func (in *Aggregate) DeepCopy() *Aggregate

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

func (*Aggregate) DeepCopyInto

func (in *Aggregate) DeepCopyInto(out *Aggregate)

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

func (*Aggregate) DeepCopyObject

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

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

type AggregateItem

type AggregateItem struct {
	// SourcePath is a path in Inventory spec aggregate will be applied to
	// +kubebuilder:validation:Required
	SourcePath JSONPath `json:"sourcePath"`
	// TargetPath is a path in Inventory status `computed` field
	// +kubebuilder:validation:Required
	TargetPath JSONPath `json:"targetPath"`
	// Aggregate defines whether collection values should be aggregated
	// for constraint checks, in case if path defines selector for collection
	// +kubebuilder:validation:Optional
	// +kubebuilder:validation:Enum=avg;sum;min;max;count
	Aggregate AggregateType `json:"aggregate,omitempty"`
}

func (*AggregateItem) DeepCopy

func (in *AggregateItem) DeepCopy() *AggregateItem

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

func (*AggregateItem) DeepCopyInto

func (in *AggregateItem) DeepCopyInto(out *AggregateItem)

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

type AggregateList

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

AggregateList contains a list of Aggregate.

func (*AggregateList) DeepCopy

func (in *AggregateList) DeepCopy() *AggregateList

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

func (*AggregateList) DeepCopyInto

func (in *AggregateList) DeepCopyInto(out *AggregateList)

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

func (*AggregateList) DeepCopyObject

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

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

type AggregateSpec

type AggregateSpec struct {
	// Aggregates is a list of aggregates required to be computed
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:MinItems=1
	Aggregates []AggregateItem `json:"aggregates"`
}

AggregateSpec defines the desired state of Aggregate.

func (*AggregateSpec) DeepCopy

func (in *AggregateSpec) DeepCopy() *AggregateSpec

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

func (*AggregateSpec) DeepCopyInto

func (in *AggregateSpec) DeepCopyInto(out *AggregateSpec)

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

type AggregateStatus

type AggregateStatus struct{}

AggregateStatus defines the observed state of Aggregate.

func (*AggregateStatus) DeepCopy

func (in *AggregateStatus) DeepCopy() *AggregateStatus

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

func (*AggregateStatus) DeepCopyInto

func (in *AggregateStatus) DeepCopyInto(out *AggregateStatus)

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

type AggregateType

type AggregateType string
const (
	AverageAggregateType AggregateType = "avg"
	SumAggregateType     AggregateType = "sum"
	MinAggregateType     AggregateType = "min"
	MaxAggregateType     AggregateType = "max"
	CountAggregateType   AggregateType = "count"
)

type AggregationResults

type AggregationResults struct {
	Object map[string]interface{} `json:"-"`
}

+kubebuilder:validation:Type=object

func (*AggregationResults) DeepCopy

func (in *AggregationResults) DeepCopy() *AggregationResults

func (*AggregationResults) DeepCopyInto

func (in *AggregationResults) DeepCopyInto(out *AggregationResults)

func (*AggregationResults) MarshalJSON

func (in *AggregationResults) MarshalJSON() ([]byte, error)

func (*AggregationResults) UnmarshalJSON

func (in *AggregationResults) UnmarshalJSON(b []byte) error

type BlockSpec

type BlockSpec struct {
	// Name is a name of the device registered by Linux Kernel
	// +kubebuilder:validation:Required
	Name string `json:"name,omitempty"`
	// Type refers to data carrier form-factor
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:Enum=Floppy;CD-ROM;SCSI;IDE;NVMe;USB;MMC;VirtIO;Xen
	Type string `json:"type,omitempty"`
	// Rotational shows whether disk is solid state or not
	// +kubebuilder:validation:Required
	Rotational bool `json:"rotational"`
	// Bus is a type of hardware interface used to connect the disk to the system
	// +kubebuilder:validation:Optional
	Bus string `json:"system,omitempty"`
	// Model is a unique hardware part identifier
	// +kubebuilder:validation:Required
	Model string `json:"model,omitempty"`
	// Size is a disk space available in bytes
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:Minimum=1
	Size uint64 `json:"size,omitempty"`
	// PartitionTable is a partition table currently written to the disk
	// +kubebuilder:validation:Optional
	PartitionTable *PartitionTableSpec `json:"partitionTable,omitempty"`
}

BlockSpec contains info about block device.

func (*BlockSpec) DeepCopy

func (in *BlockSpec) DeepCopy() *BlockSpec

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

func (*BlockSpec) DeepCopyInto

func (in *BlockSpec) DeepCopyInto(out *BlockSpec)

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

type BootConfiguration

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

	Spec   BootConfigurationSpec   `json:"spec,omitempty"`
	Status BootConfigurationStatus `json:"status,omitempty"`
}

BootConfiguration is the Schema for the bootconfigurations API

func (*BootConfiguration) DeepCopy

func (in *BootConfiguration) DeepCopy() *BootConfiguration

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

func (*BootConfiguration) DeepCopyInto

func (in *BootConfiguration) DeepCopyInto(out *BootConfiguration)

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

func (*BootConfiguration) DeepCopyObject

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

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

type BootConfigurationList

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

BootConfigurationList contains a list of BootConfiguration

func (*BootConfigurationList) DeepCopy

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

func (*BootConfigurationList) DeepCopyInto

func (in *BootConfigurationList) DeepCopyInto(out *BootConfigurationList)

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

func (*BootConfigurationList) DeepCopyObject

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

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

type BootConfigurationSpec

type BootConfigurationSpec struct {
	MachineRef *v1.LocalObjectReference `json:"machineRef"`

	IgnitionSecretRef *v1.ObjectReference `json:"ignitionSecretRef"`

	Image string `json:"image"`
}

BootConfigurationSpec defines the desired state of BootConfiguration

func (*BootConfigurationSpec) DeepCopy

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

func (*BootConfigurationSpec) DeepCopyInto

func (in *BootConfigurationSpec) DeepCopyInto(out *BootConfigurationSpec)

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

type BootConfigurationState

type BootConfigurationState string
const (
	BootConfigurationStateReady   BootConfigurationState = "Ready"
	BootConfigurationStatePending BootConfigurationState = "Pending"
	BootConfigurationStateError   BootConfigurationState = "Error"
)

type BootConfigurationStatus

type BootConfigurationStatus struct {
	// +kubebuilder:validation:Enum=Ready;Pending;Error
	// +optional
	State BootConfigurationState `json:"state,omitempty"`
}

BootConfigurationStatus defines the observed state of BootConfiguration

func (*BootConfigurationStatus) DeepCopy

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

func (*BootConfigurationStatus) DeepCopyInto

func (in *BootConfigurationStatus) DeepCopyInto(out *BootConfigurationStatus)

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

type CPUSpec

type CPUSpec struct {
	// PhysicalID is an ID of physical CPU
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:Minimum=0
	PhysicalID uint64 `json:"physicalId,omitempty"`
	// LogicalIDs is a collection of logical CPU nums related to the physical CPU (required for NUMA)
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:MinItems=1
	LogicalIDs []uint64 `json:"logicalIds,omitempty"`
	// Cores is a number of physical cores
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:Minimum=1
	Cores uint64 `json:"cores,omitempty"`
	// Siblings is a number of logical CPUs/threads
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:Minimum=1
	Siblings uint64 `json:"siblings,omitempty"`
	// VendorID is a manufacturer identifire
	// +kubebuilder:validation:Required
	VendorID string `json:"vendorId,omitempty"`
	// Family refers to processor type
	// +kubebuilder:validation:Optional
	Family string `json:"family,omitempty"`
	// Model is a reference id of the model
	// +kubebuilder:validation:Required
	Model string `json:"model,omitempty"`
	// ModelName is a common name of the processor
	// +kubebuilder:validation:Required
	ModelName string `json:"modelName,omitempty"`
	// Stepping is an iteration of the architecture
	// +kubebuilder:validation:Optional
	Stepping string `json:"stepping,omitempty"`
	// Microcode is a firmware reference
	// +kubebuilder:validation:Optional
	Microcode string `json:"microcode,omitempty"`
	// MHz is a logical core frequency
	// +kubebuilder:validation:Optional
	MHz resource.Quantity `json:"mhz,omitempty"`
	// CacheSize is an L2 cache size
	// +kubebuilder:validation:Optional
	CacheSize string `json:"cacheSize,omitempty"`
	// FPU defines if CPU has a Floating Point Unit
	// +kubebuilder:validation:Optional
	FPU bool `json:"fpu"`
	// FPUException
	// +kubebuilder:validation:Optional
	FPUException bool `json:"fpuException"`
	// CPUIDLevel
	// +kubebuilder:validation:Optional
	CPUIDLevel uint64 `json:"cpuIdLevel,omitempty"`
	// WP tells if WP bit is present
	// +kubebuilder:validation:Optional
	WP bool `json:"wp"`
	// Flags defines a list of low-level computing capabilities
	// +kubebuilder:validation:Optional
	Flags []string `json:"flags,omitempty"`
	// VMXFlags defines a list of virtualization capabilities
	// +kubebuilder:validation:Optional
	VMXFlags []string `json:"vmxFlags,omitempty"`
	// Bugs contains a list of known hardware bugs
	// +kubebuilder:validation:Optional
	Bugs []string `json:"bugs,omitempty"`
	// BogoMIPS is a synthetic performance metric
	// +kubebuilder:validation:Required
	BogoMIPS resource.Quantity `json:"bogoMips,omitempty"`
	// CLFlushSize size for cache line flushing feature
	// +kubebuilder:validation:Optional
	CLFlushSize uint64 `json:"clFlushSize,omitempty"`
	// CacheAlignment is a cache size
	// +kubebuilder:validation:Optional
	CacheAlignment uint64 `json:"cacheAlignment,omitempty"`
	// AddressSizes is an info about address transition system
	// +kubebuilder:validation:Optional
	AddressSizes string `json:"addressSizes,omitempty"`
	// PowerManagement
	// +kubebuilder:validation:Optional
	PowerManagement string `json:"powerManagement,omitempty"`
}

CPUSpec contains info about CPUs on hsot machine.

func (*CPUSpec) DeepCopy

func (in *CPUSpec) DeepCopy() *CPUSpec

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

func (*CPUSpec) DeepCopyInto

func (in *CPUSpec) DeepCopyInto(out *CPUSpec)

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

type ConsoleProtocol

type ConsoleProtocol struct {
	Name ConsoleProtocolName `json:"name"`
	Port int32               `json:"port"`
}

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
const (
	ConsoleProtocolNameIPMI      ConsoleProtocolName = "IPMI"
	ConsoleProtocolNameSSH       ConsoleProtocolName = "SSH"
	ConsoleProtocolNameSSHLenovo ConsoleProtocolName = "SSHLenovo"
)

type ConstraintSpec

type ConstraintSpec struct {
	// Path is a path to the struct field constraint will be applied to
	// +kubebuilder:validation:Optional
	Path JSONPath `json:"path,omitempty"`
	// Aggregate defines whether collection values should be aggregated
	// for constraint checks, in case if path defines selector for collection
	// +kubebuilder:validation:Optional
	// +kubebuilder:validation:Enum=avg;sum;min;max;count
	Aggregate AggregateType `json:"agg,omitempty"`
	// Equal contains an exact expected value
	// +kubebuilder:validation:Optional
	Equal *ConstraintValSpec `json:"eq,omitempty"`
	// NotEqual contains an exact not expected value
	// +kubebuilder:validation:Optional
	NotEqual *ConstraintValSpec `json:"neq,omitempty"`
	// LessThan contains an highest expected value, exclusive
	// +kubebuilder:validation:Optional
	LessThan *resource.Quantity `json:"lt,omitempty"`
	// LessThan contains an highest expected value, inclusive
	// +kubebuilder:validation:Optional
	LessThanOrEqual *resource.Quantity `json:"lte,omitempty"`
	// LessThan contains an lowest expected value, exclusive
	// +kubebuilder:validation:Optional
	GreaterThan *resource.Quantity `json:"gt,omitempty"`
	// GreaterThanOrEqual contains an lowest expected value, inclusive
	// +kubebuilder:validation:Optional
	GreaterThanOrEqual *resource.Quantity `json:"gte,omitempty"`
}

ConstraintSpec contains conditions of constraint that should be applied on resource.

func (*ConstraintSpec) DeepCopy

func (in *ConstraintSpec) DeepCopy() *ConstraintSpec

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

func (*ConstraintSpec) DeepCopyInto

func (in *ConstraintSpec) DeepCopyInto(out *ConstraintSpec)

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

func (*ConstraintSpec) MatchMultipleValues

func (in *ConstraintSpec) MatchMultipleValues(aggregateType AggregateType, values []reflect.Value) (bool, error)

func (*ConstraintSpec) MatchSingleValue

func (in *ConstraintSpec) MatchSingleValue(value *reflect.Value) (bool, error)

type ConstraintValSpec

type ConstraintValSpec struct {
	Literal *string            `json:"-"`
	Numeric *resource.Quantity `json:"-"`
}

ConstraintValSpec is a wrapper around value for constraint. Since it is not possilble to set oneOf/anyOf through kubebuilder markers, type is set to number here, and patched with kustomize See https://github.com/kubernetes-sigs/kubebuilder/issues/301 +kubebuilder:validation:Type=number

func (*ConstraintValSpec) Compare

func (in *ConstraintValSpec) Compare(value *reflect.Value) (int, error)

func (*ConstraintValSpec) DeepCopy

func (in *ConstraintValSpec) DeepCopy() *ConstraintValSpec

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

func (*ConstraintValSpec) DeepCopyInto

func (in *ConstraintValSpec) DeepCopyInto(out *ConstraintValSpec)

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

func (*ConstraintValSpec) MarshalJSON

func (in *ConstraintValSpec) MarshalJSON() ([]byte, error)

func (*ConstraintValSpec) UnmarshalJSON

func (in *ConstraintValSpec) UnmarshalJSON(data []byte) error

type DistroSpec

type DistroSpec struct {
	// +kubebuilder:validation:Optional
	BuildVersion string `json:"buildVersion,omitempty"`
	// +kubebuilder:validation:Optional
	DebianVersion string `json:"debianVersion,omitempty"`
	// +kubebuilder:validation:Optional
	KernelVersion string `json:"kernelVersion,omitempty"`
	// +kubebuilder:validation:Optional
	AsicType string `json:"asicType,omitempty"`
	// +kubebuilder:validation:Optional
	CommitID string `json:"commitID,omitempty"`
	// +kubebuilder:validation:Optional
	BuildDate string `json:"buildDate,omitempty"`
	// +kubebuilder:validation:Optional
	BuildNumber uint32 `json:"buildNumber,omitempty"`
	// +kubebuilder:validation:Optional
	BuildBy string `json:"buildBy,omitempty"`
}

DistroSpec contains info about distro.

func (*DistroSpec) DeepCopy

func (in *DistroSpec) DeepCopy() *DistroSpec

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

func (*DistroSpec) DeepCopyInto

func (in *DistroSpec) DeepCopyInto(out *DistroSpec)

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

type HostSpec

type HostSpec struct {
	// Hostname contains hostname
	// +kubebuilder:validation:Required
	Name string `json:"name"`
}

HostSpec contains type of inventorying object and in case it is a switch - SONiC version.

func (*HostSpec) DeepCopy

func (in *HostSpec) DeepCopy() *HostSpec

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

func (*HostSpec) DeepCopyInto

func (in *HostSpec) DeepCopyInto(out *HostSpec)

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

type IPMISpec

type IPMISpec struct {
	// IPAddress is an IP address assigned to IPMI network interface
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:Pattern=`^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$`
	IPAddress string `json:"ipAddress,omitempty"`
	// MACAddress is a MAC address of IPMI's network interface
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:Pattern=`^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$`
	MACAddress string `json:"macAddress,omitempty"`
}

IPMISpec contains info about IPMI module.

func (*IPMISpec) DeepCopy

func (in *IPMISpec) DeepCopy() *IPMISpec

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

func (*IPMISpec) DeepCopyInto

func (in *IPMISpec) DeepCopyInto(out *IPMISpec)

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

type Inventory

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

	Spec   InventorySpec   `json:"spec,omitempty"`
	Status InventoryStatus `json:"status,omitempty"`
}

Inventory is the Schema for the inventories API.

func (*Inventory) DeepCopy

func (in *Inventory) DeepCopy() *Inventory

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

func (*Inventory) DeepCopyInto

func (in *Inventory) DeepCopyInto(out *Inventory)

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

func (*Inventory) DeepCopyObject

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

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

type InventoryList

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

InventoryList contains a list of Inventory.

func (*InventoryList) DeepCopy

func (in *InventoryList) DeepCopy() *InventoryList

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

func (*InventoryList) DeepCopyInto

func (in *InventoryList) DeepCopyInto(out *InventoryList)

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

func (*InventoryList) DeepCopyObject

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

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

type InventorySpec

type InventorySpec struct {
	// System contains DMI system information
	// +kubebuilder:validation:Required
	System *SystemSpec `json:"system,omitempty"`
	// IPMIs contains info about IPMI interfaces on the host
	// +kubebuilder:validation:Optional
	IPMIs []IPMISpec `json:"ipmis,omitempty"`
	// Blocks contains info about block devices on the host
	// +kubebuilder:validation:Required
	Blocks []BlockSpec `json:"blocks,omitempty"`
	// Memory contains info block devices on the host
	// +kubebuilder:validation:Required
	Memory *MemorySpec `json:"memory,omitempty"`
	// CPUs contains info about cpus, cores and threads
	// +kubebuilder:validation:Required
	CPUs []CPUSpec `json:"cpus,omitempty"`
	// NUMA contains info about cpu/memory topology
	// +kubebuilder:validation:Optional
	NUMA []NumaSpec `json:"numa,omitempty"`
	// PCIDevices contains info about devices accessible through
	// +kubebuilder:validation:Optional
	PCIDevices []PCIDeviceSpec `json:"pciDevices,omitempty"`
	// NICs contains info about network interfaces and network discovery
	// +kubebuilder:validation:Required
	NICs []NICSpec `json:"nics,omitempty"`
	// Virt is a virtualization detected on host
	// +kubebuilder:validation:Optional
	Virt *VirtSpec `json:"virt,omitempty"`
	// Host contains info about inventorying object
	// +kubebuilder:validation:Required
	Host *HostSpec `json:"host"`
	// Distro contains info about OS distro
	// +kubebuilder:validation:Optional
	Distro *DistroSpec `json:"distro,omitempty"`
}

InventorySpec contains result of inventorization process on the host.

func (*InventorySpec) DeepCopy

func (in *InventorySpec) DeepCopy() *InventorySpec

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

func (*InventorySpec) DeepCopyInto

func (in *InventorySpec) DeepCopyInto(out *InventorySpec)

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

type InventoryStatus

type InventoryStatus struct {
	// +kubebuilder:pruning:PreserveUnknownFields
	Computed AggregationResults `json:"computed"`

	InventoryStatuses InventoryStatuses `json:"inventoryStatuses,omitempty"`
}

InventoryStatus defines the observed state of Inventory.

func (*InventoryStatus) DeepCopy

func (in *InventoryStatus) DeepCopy() *InventoryStatus

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

func (*InventoryStatus) DeepCopyInto

func (in *InventoryStatus) DeepCopyInto(out *InventoryStatus)

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

type InventoryStatuses

type InventoryStatuses struct {
	Ready         bool `json:"ready"`
	RequestsCount int  `json:"requestsCount,omitempty"`
}

func (*InventoryStatuses) DeepCopy

func (in *InventoryStatuses) DeepCopy() *InventoryStatuses

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

func (*InventoryStatuses) DeepCopyInto

func (in *InventoryStatuses) DeepCopyInto(out *InventoryStatuses)

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

type JSONPath

type JSONPath struct {
	Path string `json:"-"`
}

+kubebuilder:validation:Type=string

func JSONPathFromString

func JSONPathFromString(s string) *JSONPath

func (*JSONPath) DeepCopy

func (in *JSONPath) DeepCopy() *JSONPath

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

func (*JSONPath) DeepCopyInto

func (in *JSONPath) DeepCopyInto(out *JSONPath)

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

func (*JSONPath) MarshalJSON

func (in *JSONPath) MarshalJSON() ([]byte, error)

func (*JSONPath) String

func (in *JSONPath) String() string

func (*JSONPath) ToK8sJSONPath

func (in *JSONPath) ToK8sJSONPath() (*jsonpath.JSONPath, error)

func (*JSONPath) Tokenize

func (in *JSONPath) Tokenize() []string

func (*JSONPath) UnmarshalJSON

func (in *JSONPath) UnmarshalJSON(b []byte) error

nolint:forcetypeassert

type LED

type LED string
const (
	LEDLit      LED = "Lit"
	LEDOff      LED = "Off"
	LEDBlinking LED = "Blinking"
)

type LLDPCapabilities

type LLDPCapabilities string

LLDPCapabilities +kubebuilder:validation:Enum=Other;Repeater;Bridge;WLAN Access Point;Router;Telephone;DOCSIS cable device;Station;Customer VLAN;Service VLAN;Two-port MAC Relay (TPMR)

type LLDPSpec

type LLDPSpec struct {
	// ChassisID is a neighbour box identifier
	// +kubebuilder:validation:Required
	ChassisID string `json:"chassisId,omitempty"`
	// SystemName is given name to the neighbour box
	// +kubebuilder:validation:Optional
	SystemName string `json:"systemName,omitempty"`
	// SystemDescription is a short description of the neighbour box
	// +kubebuilder:validation:Optional
	SystemDescription string `json:"systemDescription,omitempty"`
	// PortID is a hardware identifier of the link port
	// +kubebuilder:validation:Required
	PortID string `json:"portId,omitempty"`
	// PortDescription is a short description of the link port
	// +kubebuilder:validation:Optional
	PortDescription string `json:"portDescription,omitempty"`
	// Capabilities is a list of LLDP capabilities advertised by neighbor
	// +kubebuilder:validation:Optional
	Capabilities []LLDPCapabilities `json:"capabilities,omitempty"`
}

LLDPSpec is an entry received by network interface by Link Layer Discovery Protocol.

func (*LLDPSpec) DeepCopy

func (in *LLDPSpec) DeepCopy() *LLDPSpec

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

func (*LLDPSpec) DeepCopyInto

func (in *LLDPSpec) DeepCopyInto(out *LLDPSpec)

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

type Machine

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

	Spec   MachineSpec   `json:"spec,omitempty"`
	Status MachineStatus `json:"status,omitempty"`
}

Machine is the Schema for the machines API

func (*Machine) DeepCopy

func (in *Machine) DeepCopy() *Machine

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

func (*Machine) DeepCopyInto

func (in *Machine) DeepCopyInto(out *Machine)

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

func (*Machine) DeepCopyObject

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

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

type MachineClaim

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

	Spec   MachineClaimSpec   `json:"spec,omitempty"`
	Status MachineClaimStatus `json:"status,omitempty"`
}

MachineClaim is the Schema for the machineclaims API

func (*MachineClaim) DeepCopy

func (in *MachineClaim) DeepCopy() *MachineClaim

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

func (*MachineClaim) DeepCopyInto

func (in *MachineClaim) DeepCopyInto(out *MachineClaim)

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

func (*MachineClaim) DeepCopyObject

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

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

type MachineClaimList

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

MachineClaimList contains a list of MachineClaim

func (*MachineClaimList) DeepCopy

func (in *MachineClaimList) DeepCopy() *MachineClaimList

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

func (*MachineClaimList) DeepCopyInto

func (in *MachineClaimList) DeepCopyInto(out *MachineClaimList)

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

func (*MachineClaimList) DeepCopyObject

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

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

type MachineClaimNetworkInterface

type MachineClaimNetworkInterface struct {
	Name string `json:"name"`

	Prefix Prefix `json:"prefix"`
}

func (*MachineClaimNetworkInterface) DeepCopy

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

func (*MachineClaimNetworkInterface) DeepCopyInto

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

type MachineClaimPhase

type MachineClaimPhase string
const (
	MachineClaimPhaseBound   MachineClaimPhase = "Bound"
	MachineClaimPhaseUnbound MachineClaimPhase = "Unbound"
)

type MachineClaimSpec

type MachineClaimSpec struct {
	// +optional
	MachineRef *v1.LocalObjectReference `json:"machineRef,omitempty"`

	// +optional
	MachineSelector *metav1.LabelSelector `json:"machineSelector,omitempty"`

	Image string `json:"image"`

	// +kubebuilder:validation:Enum=On;Off
	Power Power `json:"power"`

	// +optional
	IgnitionSecretRef *v1.LocalObjectReference `json:"ignitionSecretRef,omitempty"`

	// +optional
	NetworkInterfaces []MachineClaimNetworkInterface `json:"networkInterfaces,omitempty"`
}

MachineClaimSpec defines the desired state of MachineClaim TODO: Validate that exactly one of MachineRef or MachineSelector is set.

func (*MachineClaimSpec) DeepCopy

func (in *MachineClaimSpec) DeepCopy() *MachineClaimSpec

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

func (*MachineClaimSpec) DeepCopyInto

func (in *MachineClaimSpec) DeepCopyInto(out *MachineClaimSpec)

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

type MachineClaimStatus

type MachineClaimStatus struct {
	// +kubebuilder:validation:Enum=Bound;Unbound
	// +optional
	Phase MachineClaimPhase `json:"phase,omitempty"`
}

MachineClaimStatus defines the observed state of MachineClaim

func (*MachineClaimStatus) DeepCopy

func (in *MachineClaimStatus) DeepCopy() *MachineClaimStatus

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

func (*MachineClaimStatus) DeepCopyInto

func (in *MachineClaimStatus) DeepCopyInto(out *MachineClaimStatus)

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

type MachineList

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

MachineList contains a list of Machine

func (*MachineList) DeepCopy

func (in *MachineList) DeepCopy() *MachineList

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

func (*MachineList) DeepCopyInto

func (in *MachineList) DeepCopyInto(out *MachineList)

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

func (*MachineList) DeepCopyObject

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

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

type MachineNetworkInterface

type MachineNetworkInterface struct {
	Name string `json:"name"`

	// +kubebuilder:validation:Pattern=`^[0-9a-f]{12}$`
	MacAddress string `json:"macAddress"`

	// +optional
	IPRef *v1.LocalObjectReference `json:"IPRef,omitempty"`

	// +optional
	SwitchRef *v1.LocalObjectReference `json:"switchRef,omitempty"`
}

func (*MachineNetworkInterface) DeepCopy

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

func (*MachineNetworkInterface) DeepCopyInto

func (in *MachineNetworkInterface) DeepCopyInto(out *MachineNetworkInterface)

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

type MachineSpec

type MachineSpec struct {
	// +kubebuilder:validation:Pattern=`^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$`
	UUID string `json:"uuid"`

	OOBRef v1.LocalObjectReference `json:"oobRef"`

	// +optional
	InventoryRef *v1.LocalObjectReference `json:"inventoryRef,omitempty"`

	// +optional
	MachineClaimRef *v1.ObjectReference `json:"machineClaimRef,omitempty"`

	// +optional
	LoopbackAddressRef *v1.LocalObjectReference `json:"loopbackAddressRef,omitempty"`

	// +optional
	BootConfigurationRef *v1.LocalObjectReference `json:"bootConfigurationRef,omitempty"`

	// +optional
	ASN string `json:"asn,omitempty"`

	// +kubebuilder:validation:Enum=On;Off
	// +optional
	Power Power `json:"power,omitempty"`

	// +kubebuilder:validation:Enum=Lit;Off;Blinking
	// +optional
	LocatorLED LED `json:"locatorLED,omitempty"`

	// +optional
	CleanupRequired bool `json:"cleanupRequired,omitempty"`

	// +optional
	Maintenance bool `json:"maintenance,omitempty"`
}

MachineSpec defines the desired state of Machine

func (*MachineSpec) DeepCopy

func (in *MachineSpec) DeepCopy() *MachineSpec

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

func (*MachineSpec) DeepCopyInto

func (in *MachineSpec) DeepCopyInto(out *MachineSpec)

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

type MachineState

type MachineState string
const (
	MachineStateReady  MachineState = "Ready"
	MachineStateUneady MachineState = "Unready"

	MachineStateInitial     MachineState = "Initial"
	MachineStateAvailable   MachineState = "Available"
	MachineStateReserved    MachineState = "Reserved"
	MachineStateTainted     MachineState = "Tainted"
	MachineStateMaintenance MachineState = "Maintenance"
	MachineStateError       MachineState = "Error"
)

type MachineStatus

type MachineStatus struct {
	// +optional
	Manufacturer string `json:"manufacturer,omitempty"`

	// +optional
	SKU string `json:"sku,omitempty"`

	// +optional
	SerialNumber string `json:"serialNumber,omitempty"`

	// +kubebuilder:validation:Enum=On;Off
	// +optional
	Power Power `json:"power,omitempty"`

	// +kubebuilder:validation:Enum=Lit;Off;Blinking
	// +optional
	LocatorLED LED `json:"locatorLED,omitempty"`

	// +optional
	ShutdownDeadline *metav1.Time `json:"shutdownDeadline,omitempty"`

	// +optional
	NetworkInterfaces []MachineNetworkInterface `json:"networkInterfaces"`

	// +optional
	// +kubebuilder:validation:Enum=Initial;Available;Reserved;Tainted;Maintenance;Error
	State MachineState `json:"state,omitempty"`

	// +patchStrategy=merge
	// +patchMergeKey=type
	// +optional
	Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,1,rep,name=conditions"`
}

MachineStatus defines the observed state of Machine

func (*MachineStatus) DeepCopy

func (in *MachineStatus) DeepCopy() *MachineStatus

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

func (*MachineStatus) DeepCopyInto

func (in *MachineStatus) DeepCopyInto(out *MachineStatus)

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

type MemorySpec

type MemorySpec struct {
	// Total is a total amount of RAM on host
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:Minimum=1
	Total uint64 `json:"total,omitempty"`
}

MemorySpec contains info about RAM on host.

func (*MemorySpec) DeepCopy

func (in *MemorySpec) DeepCopy() *MemorySpec

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

func (*MemorySpec) DeepCopyInto

func (in *MemorySpec) DeepCopyInto(out *MemorySpec)

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

type NDPSpec

type NDPSpec struct {
	// IPAddress is an IPv6 address of a neighbour
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:Pattern=`^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$`
	IPAddress string `json:"ipAddress,omitempty"`
	// MACAddress is an MAC address of a neighbour
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:Pattern=`^([0-9A-Fa-f]{2}[:.-]){5}([0-9A-Fa-f]{2})$`
	MACAddress string `json:"macAddress,omitempty"`
	// State is a state of discovery
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:Enum=None;Incomplete;Reachable;Stale;Delay;Probe;Failed;No ARP;Permanent
	State string `json:"state,omitempty"`
}

NDPSpec is an entry received by IPv6 Neighbour Discovery Protocol.

func (*NDPSpec) DeepCopy

func (in *NDPSpec) DeepCopy() *NDPSpec

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

func (*NDPSpec) DeepCopyInto

func (in *NDPSpec) DeepCopyInto(out *NDPSpec)

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

type NICSpec

type NICSpec struct {
	// Name is a name of the device registered by Linux Kernel
	// +kubebuilder:validation:Required
	Name string `json:"name,omitempty"`
	// PCIAddress is the PCI bus address network interface is connected to
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:Pattern=`^([0-9a-fA-F]{4}:[0-9a-fA-F]{2}:[0-9a-fA-F]{2}.[0-9]{1})|([a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12})$`
	PCIAddress string `json:"pciAddress,omitempty"`
	// MACAddress is the MAC address of network interface
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:Pattern=`^([0-9A-Fa-f]{2}[:.-]){5}([0-9A-Fa-f]{2})$`
	MACAddress string `json:"macAddress,omitempty"`
	// MTU is refers to Maximum Transmission Unit
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:Minimum=1
	MTU uint16 `json:"mtu,omitempty"`
	// Speed is a speed of network interface in Mbits/s
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:Minimum=1
	Speed uint32 `json:"speed,omitempty"`
	// Lanes is a number of used lanes (if supported)
	// +kubebuilder:validation:Optional
	Lanes uint8 `json:"lanes,omitempty"`
	// ActiveFEC is an active error correction mode
	// +kubebuilder:validation:Optional
	// +kubebuilder:validation:Enum=none;rs;fc
	ActiveFEC string `json:"activeFEC,omitempty"`
	// LLDP is a collection of LLDP messages received by the network interface
	// +kubebuilder:validation:Optional
	LLDPs []LLDPSpec `json:"lldps,omitempty"`
	// NDP is a collection of NDP messages received by the network interface
	// +kubebuilder:validation:Optional
	NDPs []NDPSpec `json:"ndps,omitempty"`
}

NICSpec contains info about network interfaces.

func (*NICSpec) DeepCopy

func (in *NICSpec) DeepCopy() *NICSpec

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

func (*NICSpec) DeepCopyInto

func (in *NICSpec) DeepCopyInto(out *NICSpec)

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

type NumaSpec

type NumaSpec struct {
	// ID is NUMA node ID.
	// +kubebuilder:validation:Required
	ID int `json:"id"`
	// CPUs is a list of CPU logical IDs in current numa node.
	// +kubebuilder:validation:Required
	CPUs []int `json:"cpus"`
	// Distances contains distances to other nodes. Element index corresponds to NUMA node ID.
	// +kubebuilder:validation:Required
	Distances []int `json:"distances"`
	// Memory contains info about NUMA node memory setup.
	// +kubebuilder:validation:Required
	Memory *MemorySpec `json:"memory"`
}

NumaSpec describes NUMA node.

func (*NumaSpec) DeepCopy

func (in *NumaSpec) DeepCopy() *NumaSpec

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

func (*NumaSpec) DeepCopyInto

func (in *NumaSpec) DeepCopyInto(out *NumaSpec)

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

type OOB

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

	Spec   OOBSpec   `json:"spec,omitempty"`
	Status OOBStatus `json:"status,omitempty"`
}

OOB is the Schema for the oobs API

func (*OOB) DeepCopy

func (in *OOB) DeepCopy() *OOB

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

func (*OOB) DeepCopyInto

func (in *OOB) DeepCopyInto(out *OOB)

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

func (*OOB) DeepCopyObject

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

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

type OOBList

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

OOBList contains a list of OOB

func (*OOBList) DeepCopy

func (in *OOBList) DeepCopy() *OOBList

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

func (*OOBList) DeepCopyInto

func (in *OOBList) DeepCopyInto(out *OOBList)

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

func (*OOBList) DeepCopyObject

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

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

type OOBSecret

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

	Spec   OOBSecretSpec   `json:"spec,omitempty"`
	Status OOBSecretStatus `json:"status,omitempty"`
}

OOBSecret is the Schema for the oobsecrets API

func (*OOBSecret) DeepCopy

func (in *OOBSecret) DeepCopy() *OOBSecret

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

func (*OOBSecret) DeepCopyInto

func (in *OOBSecret) DeepCopyInto(out *OOBSecret)

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

func (*OOBSecret) DeepCopyObject

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

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

type OOBSecretList

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

OOBSecretList contains a list of OOBSecret

func (*OOBSecretList) DeepCopy

func (in *OOBSecretList) DeepCopy() *OOBSecretList

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

func (*OOBSecretList) DeepCopyInto

func (in *OOBSecretList) DeepCopyInto(out *OOBSecretList)

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

func (*OOBSecretList) DeepCopyObject

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

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

type OOBSecretSpec

type OOBSecretSpec struct {
	// +kubebuilder:validation:Pattern=`^[0-9a-f]{12}$`
	MACAddress string `json:"macAddress"`

	Username string `json:"username"`

	Password string `json:"password"`

	// +optional
	ExpirationTime *metav1.Time `json:"expirationTime,omitempty"`
}

OOBSecretSpec defines the desired state of OOBSecret

func (*OOBSecretSpec) DeepCopy

func (in *OOBSecretSpec) DeepCopy() *OOBSecretSpec

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

func (*OOBSecretSpec) DeepCopyInto

func (in *OOBSecretSpec) DeepCopyInto(out *OOBSecretSpec)

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

type OOBSecretStatus

type OOBSecretStatus struct {
}

OOBSecretStatus defines the observed state of OOBSecret

func (*OOBSecretStatus) DeepCopy

func (in *OOBSecretStatus) DeepCopy() *OOBSecretStatus

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

func (*OOBSecretStatus) DeepCopyInto

func (in *OOBSecretStatus) DeepCopyInto(out *OOBSecretStatus)

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

type OOBSpec

type OOBSpec struct {
	// +kubebuilder:validation:Pattern=`^[0-9a-f]{12}$`
	MACAddress string `json:"macAddress"`

	// +optional
	EndpointRef *v1.LocalObjectReference `json:"endpointRef,omitempty"`

	// +optional
	SecretRef *v1.LocalObjectReference `json:"secretRef,omitempty"`

	// +optional
	Protocol *Protocol `json:"protocol,omitempty"`

	// +optional
	Flags map[string]string `json:"flags,omitempty"`

	// +optional
	ConsoleProtocol *ConsoleProtocol `json:"consoleProtocol,omitempty"`
}

OOBSpec defines the desired state of OOB

func (*OOBSpec) DeepCopy

func (in *OOBSpec) DeepCopy() *OOBSpec

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

func (*OOBSpec) DeepCopyInto

func (in *OOBSpec) DeepCopyInto(out *OOBSpec)

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

type OOBState

type OOBState string
const (
	OOBStateReady      OOBState = "Ready"
	OOBStateInProgress OOBState = "InProgress"
	OOBStateNoEndpoint OOBState = "NoEndpoint"
	OOBStateIgnored    OOBState = "Ignored"
	OOBStateError      OOBState = "Error"
)

type OOBStatus

type OOBStatus struct {
	// +kubebuilder:validation:Enum=Machine;Router;Switch
	// +optional
	Type OOBType `json:"type,omitempty"`

	// +optional
	Manufacturer string `json:"manufacturer,omitempty"`

	// +optional
	SerialNumber string `json:"serialNumber,omitempty"`

	// +optional
	FirmwareVersion string `json:"firmwareVersion,omitempty"`

	// +kubebuilder:validation:Enum=Ready;InProgress;NoEndpoint;Ignored;Error
	// +optional
	State OOBState `json:"state,omitempty"`

	// +patchStrategy=merge
	// +patchMergeKey=type
	// +optional
	Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,1,rep,name=conditions"`
}

OOBStatus defines the observed state of OOB

func (*OOBStatus) DeepCopy

func (in *OOBStatus) DeepCopy() *OOBStatus

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

func (*OOBStatus) DeepCopyInto

func (in *OOBStatus) DeepCopyInto(out *OOBStatus)

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

type OOBType

type OOBType string
const (
	OOBTypeMachine OOBType = "Machine"
	OOBTypeRouter  OOBType = "Router"
	OOBTypeSwitch  OOBType = "Switch"
)

type PCIDeviceDescriptionSpec

type PCIDeviceDescriptionSpec struct {
	// ID is a hexadecimal identifier of device property , that corresponds to the value from PCIIDs database
	// +kubebuilder:validation:Required
	ID string `json:"id"`
	// Name is a string value of property extracted from PCIID DB
	// +kubebuilder:validation:Optional
	Name string `json:"name"`
}

PCIDeviceDescriptionSpec contains one of the options that is describing the PCI device.

func (*PCIDeviceDescriptionSpec) DeepCopy

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

func (*PCIDeviceDescriptionSpec) DeepCopyInto

func (in *PCIDeviceDescriptionSpec) DeepCopyInto(out *PCIDeviceDescriptionSpec)

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

type PCIDeviceSpec

type PCIDeviceSpec struct {
	// BusID is an ID of PCI bus on the board device is attached to.
	// +kubebuilder:validation:Required
	BusID string `json:"busId,omitempty"`
	// Address is an ID of device on PCI bus.
	// +kubebuilder:validation:Required
	Address string `json:"address,omitempty"`
	// Vendor refers to manufacturer ore device trademark.
	// +kubebuilder:validation:Optional
	Vendor *PCIDeviceDescriptionSpec `json:"vendor,omitempty"`
	// Subvendor usually refers to the platform or co-manufacturer. E.g. Lenovo board manufactured for Intel platform (by Intel spec).
	// +kubebuilder:validation:Optional
	Subvendor *PCIDeviceDescriptionSpec `json:"subvendor,omitempty"`
	// Type shows device's designation.
	// +kubebuilder:validation:Optional
	Type *PCIDeviceDescriptionSpec `json:"type,omitempty"`
	// Subtype shows device's subsystem.
	// +kubebuilder:validation:Optional
	Subtype *PCIDeviceDescriptionSpec `json:"subtype,omitempty"`
	// Class refers to generic device designation.
	// +kubebuilder:validation:Optional
	Class *PCIDeviceDescriptionSpec `json:"class,omitempty"`
	// Subclass narrows the designation scope.
	// +kubebuilder:validation:Optional
	Subclass *PCIDeviceDescriptionSpec `json:"subclass,omitempty"`
	// ProgrammingInterface specifies communication protocols.
	// +kubebuilder:validation:Optional
	ProgrammingInterface *PCIDeviceDescriptionSpec `json:"interface,omitempty"`
}

PCIDeviceSpec contains description of PCI device.

func (*PCIDeviceSpec) DeepCopy

func (in *PCIDeviceSpec) DeepCopy() *PCIDeviceSpec

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

func (*PCIDeviceSpec) DeepCopyInto

func (in *PCIDeviceSpec) DeepCopyInto(out *PCIDeviceSpec)

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

type PartitionSpec

type PartitionSpec struct {
	// ID is a GUID of GPT partition or number for MBR partition
	// +kubebuilder:validation:Required
	ID string `json:"id,omitempty"`
	// Name is a human readable name given to the partition
	// +kubebuilder:validation:Optional
	Name string `json:"name,omitempty"`
	// Size is a size of partition in bytes
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:Minimum=1
	Size uint64 `json:"size,omitempty"`
}

PartitionSpec contains info about partition.

func (*PartitionSpec) DeepCopy

func (in *PartitionSpec) DeepCopy() *PartitionSpec

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

func (*PartitionSpec) DeepCopyInto

func (in *PartitionSpec) DeepCopyInto(out *PartitionSpec)

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

type PartitionTableSpec

type PartitionTableSpec struct {
	// Type is a format of partition table
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:Enum=MBR;GPT
	Type string `json:"type,omitempty"`
	// Partitions are active partition records on disk
	// +kubebuilder:validation:Optional
	Partitions []PartitionSpec `json:"partitions,omitempty"`
}

PartitionTableSpec contains info about partition table on block device.

func (*PartitionTableSpec) DeepCopy

func (in *PartitionTableSpec) DeepCopy() *PartitionTableSpec

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

func (*PartitionTableSpec) DeepCopyInto

func (in *PartitionTableSpec) DeepCopyInto(out *PartitionTableSpec)

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

type Power

type Power string
const (
	PowerOn  Power = "On"
	PowerOff Power = "Off"
)

type Prefix

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

func (*Prefix) DeepCopy

func (p *Prefix) DeepCopy() *Prefix

func (*Prefix) DeepCopyInto

func (p *Prefix) DeepCopyInto(out *Prefix)

func (*Prefix) IsValid

func (p *Prefix) IsValid() bool

func (*Prefix) IsZero

func (p *Prefix) IsZero() bool

func (*Prefix) MarshalJSON

func (p *Prefix) MarshalJSON() ([]byte, error)

func (Prefix) OpenAPISchemaFormat

func (p Prefix) OpenAPISchemaFormat() string

func (Prefix) OpenAPISchemaType

func (p Prefix) OpenAPISchemaType() []string

func (*Prefix) ToUnstructured

func (p *Prefix) ToUnstructured() interface{}

func (*Prefix) UnmarshalJSON

func (p *Prefix) UnmarshalJSON(b []byte) error

type Protocol

type Protocol struct {
	Name ProtocolName `json:"name"`
	Port int32        `json:"port"`
}

func (*Protocol) DeepCopy

func (in *Protocol) DeepCopy() *Protocol

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

func (*Protocol) DeepCopyInto

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

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

type ProtocolName

type ProtocolName string
const (
	ProtocolNameRedfish ProtocolName = "Redfish"
	ProtocolNameIPMI    ProtocolName = "IPMI"
	ProtocolNameSSH     ProtocolName = "SSH"
)

type Size

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

	Spec   SizeSpec   `json:"spec,omitempty"`
	Status SizeStatus `json:"status,omitempty"`
}

Size is the Schema for the sizes API.

func (*Size) DeepCopy

func (in *Size) DeepCopy() *Size

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

func (*Size) DeepCopyInto

func (in *Size) DeepCopyInto(out *Size)

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

func (*Size) DeepCopyObject

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

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

func (*Size) GetMatchLabel

func (in *Size) GetMatchLabel() string

func (*Size) Matches

func (in *Size) Matches(inventory *Inventory) (bool, error)

type SizeList

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

SizeList contains a list of Size.

func (*SizeList) DeepCopy

func (in *SizeList) DeepCopy() *SizeList

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

func (*SizeList) DeepCopyInto

func (in *SizeList) DeepCopyInto(out *SizeList)

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

func (*SizeList) DeepCopyObject

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

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

type SizeSpec

type SizeSpec struct {
	// Constraints is a list of selectors based on machine properties.
	// +kubebuilder:validation:Optional
	Constraints []ConstraintSpec `json:"constraints,omitempty"`
}

SizeSpec defines the desired state of Size.

func (*SizeSpec) DeepCopy

func (in *SizeSpec) DeepCopy() *SizeSpec

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

func (*SizeSpec) DeepCopyInto

func (in *SizeSpec) DeepCopyInto(out *SizeSpec)

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

type SizeStatus

type SizeStatus struct {
}

SizeStatus defines the observed state of Size.

func (*SizeStatus) DeepCopy

func (in *SizeStatus) DeepCopy() *SizeStatus

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

func (*SizeStatus) DeepCopyInto

func (in *SizeStatus) DeepCopyInto(out *SizeStatus)

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

type SystemSpec

type SystemSpec struct {
	// ID is a UUID of a system board
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:Pattern=`^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$`
	ID string `json:"id,omitempty"`
	// Manufacturer refers to the company that produced the product
	// +kubebuilder:validation:Required
	Manufacturer string `json:"manufacturer,omitempty"`
	// ProductSKU is a product's Stock Keeping Unit
	// +kubebuilder:validation:Required
	ProductSKU string `json:"productSku,omitempty"`
	// SerialNumber contains serial number of a system
	// +kubebuilder:validation:Required
	SerialNumber string `json:"serialNumber,omitempty"`
}

SystemSpec contains DMI system information.

func (*SystemSpec) DeepCopy

func (in *SystemSpec) DeepCopy() *SystemSpec

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

func (*SystemSpec) DeepCopyInto

func (in *SystemSpec) DeepCopyInto(out *SystemSpec)

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

type ValidationInventory

type ValidationInventory struct {
	Spec InventorySpec `json:"spec"`
}

func (*ValidationInventory) DeepCopy

func (in *ValidationInventory) DeepCopy() *ValidationInventory

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

func (*ValidationInventory) DeepCopyInto

func (in *ValidationInventory) DeepCopyInto(out *ValidationInventory)

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

type VirtSpec

type VirtSpec struct {
	// VMType is a type of virtual machine engine
	// +kubebuilder:validation:Optional
	// +kubebuilder:validation:Enum=none;kvm;qemu;bochs;xen;uml;vmware;oracle;microsoft;zvm;parallels;bhyve;qnx;acrn;powervm;other
	VMType string `json:"vmType,omitempty"`
}

VirtSpec contains info about detected host virtualization.

func (*VirtSpec) DeepCopy

func (in *VirtSpec) DeepCopy() *VirtSpec

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

func (*VirtSpec) DeepCopyInto

func (in *VirtSpec) DeepCopyInto(out *VirtSpec)

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

Jump to

Keyboard shortcuts

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