v1

package
v0.0.0-...-ac6acfc Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package v1 contains API Schema definitions for the ethernet v1 API group +kubebuilder:object:generate=true +groupName=ethernet.intel.com

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "ethernet.intel.com", Version: "v1"}

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

This section is empty.

Types

type DDPInfo

type DDPInfo struct {
	PackageName string `json:"packageName"`
	Version     string `json:"version"`
	TrackID     string `json:"trackId"`
}

func (*DDPInfo) DeepCopy

func (in *DDPInfo) DeepCopy() *DDPInfo

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

func (*DDPInfo) DeepCopyInto

func (in *DDPInfo) DeepCopyInto(out *DDPInfo)

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

type Device

type Device struct {
	VendorID      string       `json:"vendorID"`
	DeviceID      string       `json:"deviceID"`
	PCIAddress    string       `json:"PCIAddress"`
	Name          string       `json:"name"`
	Driver        string       `json:"driver"`
	DriverVersion string       `json:"driverVersion"`
	Firmware      FirmwareInfo `json:"firmware"`
	DDP           DDPInfo      `json:"DDP"`
}

func (*Device) DeepCopy

func (in *Device) DeepCopy() *Device

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

func (*Device) DeepCopyInto

func (in *Device) DeepCopyInto(out *Device)

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

type DeviceConfig

type DeviceConfig struct {
	// DDP package to be applied
	// +kubebuilder:validation:Pattern=[a-zA-Z0-9\.\-\/]+
	DDPURL string `json:"ddpURL,omitempty"`
	// +kubebuilder:validation:Pattern=`^[a-fA-F0-9]{32}$`
	DDPChecksum string `json:"ddpChecksum,omitempty"`

	// Firmware (NVMUpdate package) to be applied
	// +kubebuilder:validation:Pattern=[a-zA-Z0-9\.\-\/]+
	FWURL string `json:"fwURL,omitempty"`
	// +kubebuilder:validation:Pattern=`^[a-fA-F0-9]{32}$`
	FWChecksum string `json:"fwChecksum,omitempty"`
}

func (*DeviceConfig) DeepCopy

func (in *DeviceConfig) DeepCopy() *DeviceConfig

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

func (*DeviceConfig) DeepCopyInto

func (in *DeviceConfig) DeepCopyInto(out *DeviceConfig)

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

type DeviceNodeConfig

type DeviceNodeConfig struct {
	// +kubebuilder:validation:Pattern=`^[a-fA-F0-9]{4}:[a-fA-F0-9]{2}:[01][a-fA-F0-9]\.[0-7]$`
	PCIAddress   string       `json:"PCIAddress"`
	DeviceConfig DeviceConfig `json:"deviceConfig"`
}

func (*DeviceNodeConfig) DeepCopy

func (in *DeviceNodeConfig) DeepCopy() *DeviceNodeConfig

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

func (*DeviceNodeConfig) DeepCopyInto

func (in *DeviceNodeConfig) DeepCopyInto(out *DeviceNodeConfig)

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

type DeviceSelector

type DeviceSelector struct {
	VendorID string `json:"vendorId,omitempty"`
	DeviceID string `json:"deviceId,omitempty"`
	// +kubebuilder:validation:Pattern=`^[a-fA-F0-9]{4}:[a-fA-F0-9]{2}:[01][a-fA-F0-9]\.[0-7]$`
	PCIAddress string `json:"pciAddress,omitempty"`
	Driver     string `json:"driver,omitempty"`
}

func (*DeviceSelector) DeepCopy

func (in *DeviceSelector) DeepCopy() *DeviceSelector

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

func (*DeviceSelector) DeepCopyInto

func (in *DeviceSelector) DeepCopyInto(out *DeviceSelector)

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

func (DeviceSelector) Matches

func (ds DeviceSelector) Matches(d Device) bool

type EthernetClusterConfig

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

	Spec   EthernetClusterConfigSpec   `json:"spec,omitempty"`
	Status EthernetClusterConfigStatus `json:"status,omitempty"`
}

EthernetClusterConfig is the Schema for the ethernetclusterconfigs API

func (*EthernetClusterConfig) DeepCopy

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

func (*EthernetClusterConfig) DeepCopyInto

func (in *EthernetClusterConfig) DeepCopyInto(out *EthernetClusterConfig)

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

func (*EthernetClusterConfig) DeepCopyObject

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

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

type EthernetClusterConfigList

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

EthernetClusterConfigList contains a list of EthernetClusterConfig

func (*EthernetClusterConfigList) DeepCopy

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

func (*EthernetClusterConfigList) DeepCopyInto

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

func (*EthernetClusterConfigList) DeepCopyObject

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

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

type EthernetClusterConfigSpec

type EthernetClusterConfigSpec struct {
	// Select the nodes
	NodeSelector map[string]string `json:"nodeSelectors,omitempty"`
	// Select the devices on nodes
	DeviceSelector DeviceSelector `json:"deviceSelector,omitempty"`

	DeviceConfig DeviceConfig `json:"deviceConfig"`

	Priority  int  `json:"priority,omitempty"`
	DrainSkip bool `json:"drainSkip,omitempty"`
	// Force reboot after DDP update. Recommended for clusters, on which ControlPlane is running on E810 cards.
	ForceReboot bool `json:"forceReboot,omitempty"`
}

EthernetClusterConfigSpec defines the desired state of EthernetClusterConfig

func (*EthernetClusterConfigSpec) DeepCopy

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

func (*EthernetClusterConfigSpec) DeepCopyInto

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

type EthernetClusterConfigStatus

type EthernetClusterConfigStatus struct {
}

EthernetClusterConfigStatus defines the observed state of EthernetClusterConfig

func (*EthernetClusterConfigStatus) DeepCopy

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

func (*EthernetClusterConfigStatus) DeepCopyInto

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

type EthernetNodeConfig

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

	Spec   EthernetNodeConfigSpec   `json:"spec,omitempty"`
	Status EthernetNodeConfigStatus `json:"status,omitempty"`
}

EthernetNodeConfig is the Schema for the ethernetnodeconfigs API

func (*EthernetNodeConfig) DeepCopy

func (in *EthernetNodeConfig) DeepCopy() *EthernetNodeConfig

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

func (*EthernetNodeConfig) DeepCopyInto

func (in *EthernetNodeConfig) DeepCopyInto(out *EthernetNodeConfig)

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

func (*EthernetNodeConfig) DeepCopyObject

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

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

type EthernetNodeConfigList

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

EthernetNodeConfigList contains a list of EthernetNodeConfig

func (*EthernetNodeConfigList) DeepCopy

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

func (*EthernetNodeConfigList) DeepCopyInto

func (in *EthernetNodeConfigList) DeepCopyInto(out *EthernetNodeConfigList)

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

func (*EthernetNodeConfigList) DeepCopyObject

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

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

type EthernetNodeConfigSpec

type EthernetNodeConfigSpec struct {
	Config      []DeviceNodeConfig `json:"config,omitempty"`
	DrainSkip   bool               `json:"drainSkip,omitempty"`
	ForceReboot bool               `json:"forceReboot,omitempty"`
}

EthernetNodeConfigSpec defines the desired state of EthernetNodeConfig

func (*EthernetNodeConfigSpec) DeepCopy

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

func (*EthernetNodeConfigSpec) DeepCopyInto

func (in *EthernetNodeConfigSpec) DeepCopyInto(out *EthernetNodeConfigSpec)

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

type EthernetNodeConfigStatus

type EthernetNodeConfigStatus struct {
	// Provides information about device update status
	Conditions []metav1.Condition `json:"conditions,omitempty"`
	Devices    []Device           `json:"devices,omitempty"`
}

EthernetNodeConfigStatus defines the observed state of EthernetNodeConfig

func (*EthernetNodeConfigStatus) DeepCopy

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

func (*EthernetNodeConfigStatus) DeepCopyInto

func (in *EthernetNodeConfigStatus) DeepCopyInto(out *EthernetNodeConfigStatus)

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

type FirmwareInfo

type FirmwareInfo struct {
	MAC     string `json:"MAC"`
	Version string `json:"version"`
}

func (*FirmwareInfo) DeepCopy

func (in *FirmwareInfo) DeepCopy() *FirmwareInfo

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

func (*FirmwareInfo) DeepCopyInto

func (in *FirmwareInfo) DeepCopyInto(out *FirmwareInfo)

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