Documentation
¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the network v1alpha1 API group +kubebuilder:object:generate=true +groupName=intel.com
Index ¶
- Variables
- type GaudiScaleOutSpec
- type NetworkClusterPolicy
- func (in *NetworkClusterPolicy) DeepCopy() *NetworkClusterPolicy
- func (in *NetworkClusterPolicy) DeepCopyInto(out *NetworkClusterPolicy)
- func (in *NetworkClusterPolicy) DeepCopyObject() runtime.Object
- func (r *NetworkClusterPolicy) Default()
- func (r *NetworkClusterPolicy) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *NetworkClusterPolicy) ValidateCreate() (admission.Warnings, error)
- func (r *NetworkClusterPolicy) ValidateDelete() (admission.Warnings, error)
- func (r *NetworkClusterPolicy) ValidateUpdate(old runtime.Object) (admission.Warnings, error)
- type NetworkClusterPolicyList
- type NetworkClusterPolicySpec
- type NetworkClusterPolicyStatus
Constants ¶
This section is empty.
Variables ¶
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"`
}
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 ¶
func (in *NetworkClusterPolicy) DeepCopy() *NetworkClusterPolicy
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 ¶
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 ¶
func (in *NetworkClusterPolicyList) DeepCopy() *NetworkClusterPolicyList
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 ¶
func (in *NetworkClusterPolicySpec) DeepCopy() *NetworkClusterPolicySpec
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 ¶
func (in *NetworkClusterPolicyStatus) DeepCopy() *NetworkClusterPolicyStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkClusterPolicyStatus.
func (*NetworkClusterPolicyStatus) DeepCopyInto ¶
func (in *NetworkClusterPolicyStatus) DeepCopyInto(out *NetworkClusterPolicyStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.