v1alpha1

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

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

Index

Constants

View Source
const (
	DefaultRDMADeviceClass = "dranet-rdma"
)

Variables

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

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type DranetSpec added in v1.2.0

type DranetSpec struct {
	// Dranet image to use.
	Image string `json:"image,omitempty"`

	// Pull policy for the dranet image.
	// +kubebuilder:validation:Enum=Never;Always;IfNotPresent
	PullPolicy string `json:"pullPolicy,omitempty"`

	// Device Class for DRANet RDMA resources
	RDMADeviceClass *RDMADeviceClassSpec `json:"rdmaDeviceClass,omitempty"`
}

Configuration specific for DRANet

func (*DranetSpec) DeepCopy added in v1.2.0

func (in *DranetSpec) DeepCopy() *DranetSpec

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

func (*DranetSpec) DeepCopyInto added in v1.2.0

func (in *DranetSpec) DeepCopyInto(out *DranetSpec)

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

type GaudiScaleOutSpec

type GaudiScaleOutSpec struct {
	// Disable Gaudi scale-out interfaces in NetworkManager. For nodes where NetworkManager tries
	// to configure the Gaudi interfaces, prevent it from doing so.
	DisableNetworkManager bool `json:"disableNetworkManager,omitempty"`

	// Layer where the configuration should occur. Possible options: L2 and L3.
	// +kubebuilder:validation:Enum=L2;L3
	Layer string `json:"layer,omitempty"`

	// Container image to handle interface configurations on the worker nodes.
	Image string `json:"image,omitempty"`

	// Normal image pull policy used in the resulting daemonset.
	// +kubebuilder:validation:Enum=Never;Always;IfNotPresent
	PullPolicy string `json:"pullPolicy,omitempty"`

	// MTU for the scale-out interfaces.
	// +kubebuilder:validation:Minimum=1500
	// +kubebuilder:validation:Maximum=9000
	MTU int `json:"mtu,omitempty"`

	// Enable LLDP for Priority Flow Control in a dedicated container
	// Keep this value as false if lldpad LLDP daemon is already present and
	// running on the host
	EnableLLDPAD bool `json:"enableLLDPAD,omitempty"`

	// Bitmask of Priority Flow Control priorities to enable
	// Requires lldpad on the host, or enabling the above EnableLLDPAD boolean
	// Currently accepted values are 00000000 or 11110000
	// +kubebuilder:validation:Enum="00000000";"11110000"
	PFCPriorities string `json:"pfcPriorities,omitempty"`

	// Enable scale-out network metrics support.
	NetworkMetrics bool `json:"networkMetrics,omitempty"`
}

GaudiScaleOutSpec defines the desired state of GaudiScaleOut

func (*GaudiScaleOutSpec) DeepCopy

func (in *GaudiScaleOutSpec) DeepCopy() *GaudiScaleOutSpec

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

func (*GaudiScaleOutSpec) DeepCopyInto

func (in *GaudiScaleOutSpec) DeepCopyInto(out *GaudiScaleOutSpec)

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

type HostNicScaleOutSpec added in v1.2.0

type HostNicScaleOutSpec struct {
	// Have the Network Operator install DRANet into its namespace. If set
	// to false, the cluster admin is expected to provision DRANet by other
	// means.
	InstallDRANet bool `json:"installDranet"`

	// Dranet specification,  not used if installDranet is false
	Dranet DranetSpec `json:"dranet,omitempty"`
}

HostNicScaleOutSpec defines the desired state of HostNicScaleOut and will install dranet, https://github.com/kubernetes-sigs/dranet/, to define interface resources

func (*HostNicScaleOutSpec) DeepCopy added in v1.2.0

func (in *HostNicScaleOutSpec) DeepCopy() *HostNicScaleOutSpec

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

func (*HostNicScaleOutSpec) DeepCopyInto added in v1.2.0

func (in *HostNicScaleOutSpec) DeepCopyInto(out *HostNicScaleOutSpec)

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

type NetworkClusterPolicy

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

	Spec   NetworkClusterPolicySpec   `json:"spec,omitempty"`
	Status NetworkClusterPolicyStatus `json:"status,omitempty"`
}

NetworkClusterPolicy is the Schema for the networkclusterpolicies API

func (*NetworkClusterPolicy) DeepCopy

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

func (*NetworkClusterPolicy) DeepCopyInto

func (in *NetworkClusterPolicy) DeepCopyInto(out *NetworkClusterPolicy)

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

func (*NetworkClusterPolicy) DeepCopyObject

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

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

func (*NetworkClusterPolicy) Default

Default implements admission.Defaulter so a webhook will be registered for the type

func (*NetworkClusterPolicy) SetupWebhookWithManager

func (r *NetworkClusterPolicy) SetupWebhookWithManager(mgr ctrl.Manager) error

SetupWebhookWithManager will setup the manager to manage the webhooks

func (*NetworkClusterPolicy) ValidateCreate

ValidateCreate implements admission.Validator so a webhook will be registered for the type

func (*NetworkClusterPolicy) ValidateDelete

ValidateDelete implements admission.Validator so a webhook will be registered for the type

func (*NetworkClusterPolicy) ValidateUpdate

func (r *NetworkClusterPolicy) ValidateUpdate(_ context.Context, oldObj, newObj *NetworkClusterPolicy) (admission.Warnings, error)

ValidateUpdate implements admission.Validator so a webhook will be registered for the type

type NetworkClusterPolicyList

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

NetworkClusterPolicyList contains a list of NetworkClusterPolicy

func (*NetworkClusterPolicyList) DeepCopy

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

func (*NetworkClusterPolicyList) DeepCopyInto

func (in *NetworkClusterPolicyList) DeepCopyInto(out *NetworkClusterPolicyList)

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

func (*NetworkClusterPolicyList) DeepCopyObject

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

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

type NetworkClusterPolicySpec

type NetworkClusterPolicySpec struct {
	// Configuration type that the operator will configure to the nodes. Possible options: gaudi-so, hostnic-so.
	// +kubebuilder:validation:Enum=gaudi-so;hostnic-so
	ConfigurationType string `json:"configurationType"`

	// Select which nodes the operator should target. Align with labels created by NFD.
	NodeSelector map[string]string `json:"nodeSelector,omitempty"`

	// Gaudi Scale-Out specific settings. Only valid when configuration type is 'gaudi-so'
	GaudiScaleOut GaudiScaleOutSpec `json:"gaudiScaleOut,omitempty"`

	// Host NIC Scale-Out specific settings, valid when configuration type is 'hostnic-so'
	HostNicScaleOut HostNicScaleOutSpec `json:"hostNicScaleOut,omitempty"`

	// LogLevel sets the operator's log level.
	// +kubebuilder:validation:Minimum=0
	// +kubebuilder:validation:Maximum=8
	LogLevel int `json:"logLevel,omitempty"`
}

NetworkClusterPolicySpec defines the desired state of NetworkClusterPolicy +kubebuilder:validation:XValidation:rule="self.configurationType != 'gaudi-so' || has(self.nodeSelector)",message="nodeSelector is required when configurationType is gaudi-so"

func (*NetworkClusterPolicySpec) DeepCopy

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

func (*NetworkClusterPolicySpec) DeepCopyInto

func (in *NetworkClusterPolicySpec) DeepCopyInto(out *NetworkClusterPolicySpec)

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

type NetworkClusterPolicyStatus

type NetworkClusterPolicyStatus struct {
	Targets    int32    `json:"targets"`
	ReadyNodes int32    `json:"ready"`
	State      string   `json:"state"`
	Errors     []string `json:"errors"`
}

NetworkClusterPolicyStatus defines the observed state of NetworkClusterPolicy

func (*NetworkClusterPolicyStatus) DeepCopy

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

func (*NetworkClusterPolicyStatus) DeepCopyInto

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

type RDMADeviceClassSpec added in v1.2.0

type RDMADeviceClassSpec struct {
	// Name of the RDMA device class
	Name string `json:"name"`
}

RDMA device specification

func (*RDMADeviceClassSpec) DeepCopy added in v1.2.0

func (in *RDMADeviceClassSpec) DeepCopy() *RDMADeviceClassSpec

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

func (*RDMADeviceClassSpec) DeepCopyInto added in v1.2.0

func (in *RDMADeviceClassSpec) DeepCopyInto(out *RDMADeviceClassSpec)

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