v1alpha1

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2025 License: Apache-2.0 Imports: 10 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

This section is empty.

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 = &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 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:Required
	// +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 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

func (r *NetworkClusterPolicy) Default()

Default implements webhook.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

func (r *NetworkClusterPolicy) ValidateCreate() (admission.Warnings, error)

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

func (*NetworkClusterPolicy) ValidateDelete

func (r *NetworkClusterPolicy) ValidateDelete() (admission.Warnings, error)

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

func (*NetworkClusterPolicy) ValidateUpdate

func (r *NetworkClusterPolicy) ValidateUpdate(old runtime.Object) (admission.Warnings, error)

ValidateUpdate implements webhook.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.
	// TODO: plausible other options: host-nic
	// +kubebuilder:validation:Enum=gaudi-so
	ConfigurationType string `json:"configurationType"`

	// Select which nodes the operator should target. Align with labels created by NFD.
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:items:MinItems=1
	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"`

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

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.

Jump to

Keyboard shortcuts

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