Documentation
¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the mellanox.com v1alpha1 API group +kubebuilder:object:generate=true +groupName=mellanox.com
Index ¶
- Constants
- Variables
- type AppliedState
- type ConfigMapNameReference
- type DevicePluginSpec
- type DrainSpec
- type HostDeviceNetwork
- type HostDeviceNetworkList
- type HostDeviceNetworkSpec
- type HostDeviceNetworkStatus
- type IBKubernetesSpec
- type IPoIBNetwork
- type IPoIBNetworkList
- type IPoIBNetworkSpec
- type IPoIBNetworkStatus
- type ImageSpec
- type MacvlanNetwork
- type MacvlanNetworkList
- type MacvlanNetworkSpec
- type MacvlanNetworkStatus
- type MultusSpec
- type NVPeerDriverSpec
- type NicClusterPolicy
- type NicClusterPolicyList
- type NicClusterPolicySpec
- type NicClusterPolicyStatus
- type OFEDDriverSpec
- type OfedUpgradePolicySpec
- type PSPSpec
- type PodProbeSpec
- type SecondaryNetworkSpec
- type State
Constants ¶
const ( StateReady = "ready" StateNotReady = "notReady" StateIgnore = "ignore" StateError = "error" )
const (
HostDeviceNetworkCRDName = "HostDeviceNetwork"
)
const (
IPoIBNetworkCRDName = "IPoIBNetwork"
)
const (
MacvlanNetworkCRDName = "MacvlanNetwork"
)
const (
NicClusterPolicyCRDName = "NicClusterPolicy"
)
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "mellanox.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 AppliedState ¶
type AppliedState struct {
Name string `json:"name"`
// +kubebuilder:validation:Enum={"ready", "notReady", "ignore", "error"}
State State `json:"state"`
}
AppliedState defines a finer-grained view of the observed state of NicClusterPolicy
func (*AppliedState) DeepCopy ¶
func (in *AppliedState) DeepCopy() *AppliedState
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppliedState.
func (*AppliedState) DeepCopyInto ¶
func (in *AppliedState) DeepCopyInto(out *AppliedState)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ConfigMapNameReference ¶ added in v1.3.0
type ConfigMapNameReference struct {
Name string `json:"name,omitempty"`
}
ConfigMapNameReference references a config map in a specific namespace. The namespace must be specified at the point of use.
func (*ConfigMapNameReference) DeepCopy ¶ added in v1.3.0
func (in *ConfigMapNameReference) DeepCopy() *ConfigMapNameReference
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigMapNameReference.
func (*ConfigMapNameReference) DeepCopyInto ¶ added in v1.3.0
func (in *ConfigMapNameReference) DeepCopyInto(out *ConfigMapNameReference)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DevicePluginSpec ¶
type DevicePluginSpec struct {
// Image information for device plugin
ImageSpec `json:""`
// Device plugin configuration
Config string `json:"config"`
}
DevicePluginSpec describes configuration options for device plugin
func (*DevicePluginSpec) DeepCopy ¶
func (in *DevicePluginSpec) DeepCopy() *DevicePluginSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevicePluginSpec.
func (*DevicePluginSpec) DeepCopyInto ¶
func (in *DevicePluginSpec) DeepCopyInto(out *DevicePluginSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DrainSpec ¶ added in v1.3.0
type DrainSpec struct {
// Enable indicates if node draining is allowed during upgrade
// +optional
// +kubebuilder:default:=true
Enable bool `json:"enable,omitempty"`
// Force indicates if force draining is allowed
// +optional
// +kubebuilder:default:=false
Force bool `json:"force,omitempty"`
// PodSelector specifies a label selector to filter pods on the node that need to be drained
// For more details on label selectors, see:
// https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
// +optional
PodSelector string `json:"podSelector,omitempty"`
// TimeoutSecond specifies the length of time in seconds to wait before giving up drain, zero means infinite
// +optional
// +kubebuilder:default:=300
// +kubebuilder:validation:Minimum:=0
TimeoutSecond int `json:"timeoutSeconds,omitempty"`
// DeleteEmptyDir indicates if should continue even if there are pods using emptyDir
// (local data that will be deleted when the node is drained)
// +optional
// +kubebuilder:default:=false
DeleteEmptyDir bool `json:"deleteEmptyDir,omitempty"`
}
DrainSpec describes configuration for node drain during automatic upgrade
func (*DrainSpec) DeepCopy ¶ added in v1.3.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DrainSpec.
func (*DrainSpec) DeepCopyInto ¶ added in v1.3.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type HostDeviceNetwork ¶ added in v0.4.0
type HostDeviceNetwork struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec HostDeviceNetworkSpec `json:"spec,omitempty"`
Status HostDeviceNetworkStatus `json:"status,omitempty"`
}
HostDeviceNetwork is the Schema for the hostdevicenetworks API
func (*HostDeviceNetwork) DeepCopy ¶ added in v0.4.0
func (in *HostDeviceNetwork) DeepCopy() *HostDeviceNetwork
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HostDeviceNetwork.
func (*HostDeviceNetwork) DeepCopyInto ¶ added in v0.4.0
func (in *HostDeviceNetwork) DeepCopyInto(out *HostDeviceNetwork)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*HostDeviceNetwork) DeepCopyObject ¶ added in v0.4.0
func (in *HostDeviceNetwork) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type HostDeviceNetworkList ¶ added in v0.4.0
type HostDeviceNetworkList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []HostDeviceNetwork `json:"items"`
}
HostDeviceNetworkList contains a list of HostDeviceNetwork
func (*HostDeviceNetworkList) DeepCopy ¶ added in v0.4.0
func (in *HostDeviceNetworkList) DeepCopy() *HostDeviceNetworkList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HostDeviceNetworkList.
func (*HostDeviceNetworkList) DeepCopyInto ¶ added in v0.4.0
func (in *HostDeviceNetworkList) DeepCopyInto(out *HostDeviceNetworkList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*HostDeviceNetworkList) DeepCopyObject ¶ added in v0.4.0
func (in *HostDeviceNetworkList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type HostDeviceNetworkSpec ¶ added in v0.4.0
type HostDeviceNetworkSpec struct {
// Namespace of the NetworkAttachmentDefinition custom resource
NetworkNamespace string `json:"networkNamespace,omitempty"`
// Host device resource pool name
ResourceName string `json:"resourceName,omitempty"`
// IPAM configuration to be used for this network
IPAM string `json:"ipam,omitempty"`
}
HostDeviceNetworkSpec defines the desired state of HostDeviceNetwork
func (*HostDeviceNetworkSpec) DeepCopy ¶ added in v0.4.0
func (in *HostDeviceNetworkSpec) DeepCopy() *HostDeviceNetworkSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HostDeviceNetworkSpec.
func (*HostDeviceNetworkSpec) DeepCopyInto ¶ added in v0.4.0
func (in *HostDeviceNetworkSpec) DeepCopyInto(out *HostDeviceNetworkSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type HostDeviceNetworkStatus ¶ added in v0.4.0
type HostDeviceNetworkStatus struct {
// Reflects the state of the HostDeviceNetwork
// +kubebuilder:validation:Enum={"notReady", "ready", "error"}
State State `json:"state"`
// Network attachment definition generated from HostDeviceNetworkSpec
HostDeviceNetworkAttachmentDef string `json:"hostDeviceNetworkAttachmentDef,omitempty"`
// Informative string in case the observed state is error
Reason string `json:"reason,omitempty"`
// AppliedStates provide a finer view of the observed state
AppliedStates []AppliedState `json:"appliedStates,omitempty"`
}
HostDeviceNetworkStatus defines the observed state of HostDeviceNetwork
func (*HostDeviceNetworkStatus) DeepCopy ¶ added in v0.4.0
func (in *HostDeviceNetworkStatus) DeepCopy() *HostDeviceNetworkStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HostDeviceNetworkStatus.
func (*HostDeviceNetworkStatus) DeepCopyInto ¶ added in v0.4.0
func (in *HostDeviceNetworkStatus) DeepCopyInto(out *HostDeviceNetworkStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type IBKubernetesSpec ¶ added in v1.4.0
type IBKubernetesSpec struct {
// Image information for ib-kubernetes
ImageSpec `json:""`
// Interval of updates in seconds
// +optional
// +kubebuilder:default:=5
// +kubebuilder:validation:Minimum:=0
PeriodicUpdateSeconds int `json:"periodicUpdateSeconds,omitempty"`
// The first guid in the pool
PKeyGUIDPoolRangeStart string `json:"pKeyGUIDPoolRangeStart,omitempty"`
// The last guid in the pool
PKeyGUIDPoolRangeEnd string `json:"pKeyGUIDPoolRangeEnd,omitempty"`
// Secret containing credentials to UFM service
UfmSecret string `json:"ufmSecret,omitempty"`
}
IBKubernetesSpec describes configuration options for ib-kubernetes
func (*IBKubernetesSpec) DeepCopy ¶ added in v1.4.0
func (in *IBKubernetesSpec) DeepCopy() *IBKubernetesSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IBKubernetesSpec.
func (*IBKubernetesSpec) DeepCopyInto ¶ added in v1.4.0
func (in *IBKubernetesSpec) DeepCopyInto(out *IBKubernetesSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type IPoIBNetwork ¶ added in v1.3.0
type IPoIBNetwork struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec IPoIBNetworkSpec `json:"spec,omitempty"`
Status IPoIBNetworkStatus `json:"status,omitempty"`
}
IPoIBNetwork is the Schema for the ipoibnetworks API
func (*IPoIBNetwork) DeepCopy ¶ added in v1.3.0
func (in *IPoIBNetwork) DeepCopy() *IPoIBNetwork
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPoIBNetwork.
func (*IPoIBNetwork) DeepCopyInto ¶ added in v1.3.0
func (in *IPoIBNetwork) DeepCopyInto(out *IPoIBNetwork)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*IPoIBNetwork) DeepCopyObject ¶ added in v1.3.0
func (in *IPoIBNetwork) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type IPoIBNetworkList ¶ added in v1.3.0
type IPoIBNetworkList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []IPoIBNetwork `json:"items"`
}
IPoIBNetworkList contains a list of IPoIBNetwork
func (*IPoIBNetworkList) DeepCopy ¶ added in v1.3.0
func (in *IPoIBNetworkList) DeepCopy() *IPoIBNetworkList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPoIBNetworkList.
func (*IPoIBNetworkList) DeepCopyInto ¶ added in v1.3.0
func (in *IPoIBNetworkList) DeepCopyInto(out *IPoIBNetworkList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*IPoIBNetworkList) DeepCopyObject ¶ added in v1.3.0
func (in *IPoIBNetworkList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type IPoIBNetworkSpec ¶ added in v1.3.0
type IPoIBNetworkSpec struct {
// Namespace of the NetworkAttachmentDefinition custom resource
NetworkNamespace string `json:"networkNamespace,omitempty"`
// Name of the host interface to enslave. Defaults to default route interface
Master string `json:"master,omitempty"`
// IPAM configuration to be used for this network.
IPAM string `json:"ipam,omitempty"`
}
IPoIBNetworkSpec defines the desired state of IPoIBNetwork
func (*IPoIBNetworkSpec) DeepCopy ¶ added in v1.3.0
func (in *IPoIBNetworkSpec) DeepCopy() *IPoIBNetworkSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPoIBNetworkSpec.
func (*IPoIBNetworkSpec) DeepCopyInto ¶ added in v1.3.0
func (in *IPoIBNetworkSpec) DeepCopyInto(out *IPoIBNetworkSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type IPoIBNetworkStatus ¶ added in v1.3.0
type IPoIBNetworkStatus struct {
// Reflects the state of the IPoIBNetwork
// +kubebuilder:validation:Enum={"notReady", "ready", "error"}
State State `json:"state"`
// Network attachment definition generated from IPoIBNetworkSpec
IPoIBNetworkAttachmentDef string `json:"ipoibNetworkAttachmentDef,omitempty"`
// Informative string in case the observed state is error
Reason string `json:"reason,omitempty"`
}
IPoIBNetworkStatus defines the observed state of IPoIBNetwork
func (*IPoIBNetworkStatus) DeepCopy ¶ added in v1.3.0
func (in *IPoIBNetworkStatus) DeepCopy() *IPoIBNetworkStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPoIBNetworkStatus.
func (*IPoIBNetworkStatus) DeepCopyInto ¶ added in v1.3.0
func (in *IPoIBNetworkStatus) DeepCopyInto(out *IPoIBNetworkStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ImageSpec ¶
type ImageSpec struct {
// +kubebuilder:validation:Pattern=[a-zA-Z0-9\-]+
Image string `json:"image"`
// +kubebuilder:validation:Pattern=[a-zA-Z0-9\.\-\/]+
Repository string `json:"repository"`
// +kubebuilder:validation:Pattern=[a-zA-Z0-9\.-]+
Version string `json:"version"`
// +optional
// +kubebuilder:default:={}
ImagePullSecrets []string `json:"imagePullSecrets"`
}
ImageSpec Contains container image specifications
func (*ImageSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageSpec.
func (*ImageSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MacvlanNetwork ¶
type MacvlanNetwork struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec MacvlanNetworkSpec `json:"spec,omitempty"`
Status MacvlanNetworkStatus `json:"status,omitempty"`
}
MacvlanNetwork is the Schema for the macvlannetworks API
func (*MacvlanNetwork) DeepCopy ¶
func (in *MacvlanNetwork) DeepCopy() *MacvlanNetwork
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MacvlanNetwork.
func (*MacvlanNetwork) DeepCopyInto ¶
func (in *MacvlanNetwork) DeepCopyInto(out *MacvlanNetwork)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MacvlanNetwork) DeepCopyObject ¶
func (in *MacvlanNetwork) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MacvlanNetworkList ¶
type MacvlanNetworkList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []MacvlanNetwork `json:"items"`
}
MacvlanNetworkList contains a list of MacvlanNetwork
func (*MacvlanNetworkList) DeepCopy ¶
func (in *MacvlanNetworkList) DeepCopy() *MacvlanNetworkList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MacvlanNetworkList.
func (*MacvlanNetworkList) DeepCopyInto ¶
func (in *MacvlanNetworkList) DeepCopyInto(out *MacvlanNetworkList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MacvlanNetworkList) DeepCopyObject ¶
func (in *MacvlanNetworkList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MacvlanNetworkSpec ¶
type MacvlanNetworkSpec struct {
// Namespace of the NetworkAttachmentDefinition custom resource
NetworkNamespace string `json:"networkNamespace,omitempty"`
// Name of the host interface to enslave. Defaults to default route interface
Master string `json:"master,omitempty"`
// +kubebuilder:validation:Enum={"bridge", "private", "vepa", "passthru"}
// Mode of interface one of "bridge", "private", "vepa", "passthru"
Mode string `json:"mode,omitempty"`
// MTU of interface to the specified value. 0 for master's MTU
// +kubebuilder:validation:Minimum=0
Mtu int `json:"mtu,omitempty"`
// IPAM configuration to be used for this network.
IPAM string `json:"ipam,omitempty"`
}
MacvlanNetworkSpec defines the desired state of MacvlanNetwork
func (*MacvlanNetworkSpec) DeepCopy ¶
func (in *MacvlanNetworkSpec) DeepCopy() *MacvlanNetworkSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MacvlanNetworkSpec.
func (*MacvlanNetworkSpec) DeepCopyInto ¶
func (in *MacvlanNetworkSpec) DeepCopyInto(out *MacvlanNetworkSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MacvlanNetworkStatus ¶
type MacvlanNetworkStatus struct {
// Reflects the state of the MacvlanNetwork
// +kubebuilder:validation:Enum={"notReady", "ready", "error"}
State State `json:"state"`
// Network attachment definition generated from MacvlanNetworkSpec
MacvlanNetworkAttachmentDef string `json:"macvlanNetworkAttachmentDef,omitempty"`
// Informative string in case the observed state is error
Reason string `json:"reason,omitempty"`
}
MacvlanNetworkStatus defines the observed state of MacvlanNetwork
func (*MacvlanNetworkStatus) DeepCopy ¶
func (in *MacvlanNetworkStatus) DeepCopy() *MacvlanNetworkStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MacvlanNetworkStatus.
func (*MacvlanNetworkStatus) DeepCopyInto ¶
func (in *MacvlanNetworkStatus) DeepCopyInto(out *MacvlanNetworkStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MultusSpec ¶
type MultusSpec struct {
// Image information for device plugin
ImageSpec `json:""`
// Multus CNI config if config is missing or empty then multus config will be automatically generated from the CNI
// configuration file of the master plugin (the first file in lexicographical order in cni-conf-dir)
Config string `json:"config,omitempty"`
}
MultusSpec describes configuration options for Multus CNI
func (*MultusSpec) DeepCopy ¶
func (in *MultusSpec) DeepCopy() *MultusSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MultusSpec.
func (*MultusSpec) DeepCopyInto ¶
func (in *MultusSpec) DeepCopyInto(out *MultusSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NVPeerDriverSpec ¶
type NVPeerDriverSpec struct {
// Image information for nv peer memory driver container
ImageSpec `json:""`
// GPU driver sources path - Optional
GPUDriverSourcePath string `json:"gpuDriverSourcePath,omitempty"`
}
NVPeerDriverSpec describes configuration options for NV Peer Memory driver
func (*NVPeerDriverSpec) DeepCopy ¶
func (in *NVPeerDriverSpec) DeepCopy() *NVPeerDriverSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NVPeerDriverSpec.
func (*NVPeerDriverSpec) DeepCopyInto ¶
func (in *NVPeerDriverSpec) DeepCopyInto(out *NVPeerDriverSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NicClusterPolicy ¶
type NicClusterPolicy struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec NicClusterPolicySpec `json:"spec,omitempty"`
Status NicClusterPolicyStatus `json:"status,omitempty"`
}
NicClusterPolicy is the Schema for the nicclusterpolicies API
func (*NicClusterPolicy) DeepCopy ¶
func (in *NicClusterPolicy) DeepCopy() *NicClusterPolicy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NicClusterPolicy.
func (*NicClusterPolicy) DeepCopyInto ¶
func (in *NicClusterPolicy) DeepCopyInto(out *NicClusterPolicy)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*NicClusterPolicy) DeepCopyObject ¶
func (in *NicClusterPolicy) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type NicClusterPolicyList ¶
type NicClusterPolicyList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []NicClusterPolicy `json:"items"`
}
NicClusterPolicyList contains a list of NicClusterPolicy
func (*NicClusterPolicyList) DeepCopy ¶
func (in *NicClusterPolicyList) DeepCopy() *NicClusterPolicyList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NicClusterPolicyList.
func (*NicClusterPolicyList) DeepCopyInto ¶
func (in *NicClusterPolicyList) DeepCopyInto(out *NicClusterPolicyList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*NicClusterPolicyList) DeepCopyObject ¶
func (in *NicClusterPolicyList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type NicClusterPolicySpec ¶
type NicClusterPolicySpec struct {
NodeAffinity *v1.NodeAffinity `json:"nodeAffinity,omitempty"`
OFEDDriver *OFEDDriverSpec `json:"ofedDriver,omitempty"`
NVPeerDriver *NVPeerDriverSpec `json:"nvPeerDriver,omitempty"`
SriovDevicePlugin *DevicePluginSpec `json:"sriovDevicePlugin,omitempty"`
IBKubernetes *IBKubernetesSpec `json:"ibKubernetes,omitempty"`
SecondaryNetwork *SecondaryNetworkSpec `json:"secondaryNetwork,omitempty"`
PSP *PSPSpec `json:"psp,omitempty"`
}
NicClusterPolicySpec defines the desired state of NicClusterPolicy
func (*NicClusterPolicySpec) DeepCopy ¶
func (in *NicClusterPolicySpec) DeepCopy() *NicClusterPolicySpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NicClusterPolicySpec.
func (*NicClusterPolicySpec) DeepCopyInto ¶
func (in *NicClusterPolicySpec) DeepCopyInto(out *NicClusterPolicySpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NicClusterPolicyStatus ¶
type NicClusterPolicyStatus struct {
// Reflects the current state of the cluster policy
// +kubebuilder:validation:Enum={"ignore", "notReady", "ready", "error"}
State State `json:"state"`
// Informative string in case the observed state is error
Reason string `json:"reason,omitempty"`
// AppliedStates provide a finer view of the observed state
AppliedStates []AppliedState `json:"appliedStates,omitempty"`
}
NicClusterPolicyStatus defines the observed state of NicClusterPolicy
func (*NicClusterPolicyStatus) DeepCopy ¶
func (in *NicClusterPolicyStatus) DeepCopy() *NicClusterPolicyStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NicClusterPolicyStatus.
func (*NicClusterPolicyStatus) DeepCopyInto ¶
func (in *NicClusterPolicyStatus) DeepCopyInto(out *NicClusterPolicyStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type OFEDDriverSpec ¶
type OFEDDriverSpec struct {
// Image information for ofed driver container
ImageSpec `json:""`
// Pod startup probe settings
StartupProbe *PodProbeSpec `json:"startupProbe,omitempty"`
// Pod liveness probe settings
LivenessProbe *PodProbeSpec `json:"livenessProbe,omitempty"`
// Pod readiness probe settings
ReadinessProbe *PodProbeSpec `json:"readinessProbe,omitempty"`
// List of environment variables to set in the OFED container.
Env []v1.EnvVar `json:"env,omitempty"`
// Ofed auto-upgrade settings
OfedUpgradePolicy *OfedUpgradePolicySpec `json:"upgradePolicy,omitempty"`
// Optional: Custom TLS certificates configuration for driver container
CertConfig *ConfigMapNameReference `json:"certConfig,omitempty"`
// Optional: Custom package repository configuration for OFED container
RepoConfig *ConfigMapNameReference `json:"repoConfig,omitempty"`
}
OFEDDriverSpec describes configuration options for OFED driver
func (*OFEDDriverSpec) DeepCopy ¶
func (in *OFEDDriverSpec) DeepCopy() *OFEDDriverSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OFEDDriverSpec.
func (*OFEDDriverSpec) DeepCopyInto ¶
func (in *OFEDDriverSpec) DeepCopyInto(out *OFEDDriverSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type OfedUpgradePolicySpec ¶ added in v1.3.0
type OfedUpgradePolicySpec struct {
// AutoUpgrade is a global switch for automatic upgrade feature
// if set to false all other options are ignored
// +optional
// +kubebuilder:default:=false
AutoUpgrade bool `json:"autoUpgrade,omitempty"`
// MaxParallelUpgrades indicates how many nodes can be upgraded in parallel
// 0 means no limit, all nodes will be upgraded in parallel
// +optional
// +kubebuilder:default:=1
// +kubebuilder:validation:Minimum:=0
MaxParallelUpgrades int `json:"maxParallelUpgrades,omitempty"`
DrainSpec *DrainSpec `json:"drain,omitempty"`
}
OfedUpgradePolicySpec describes policy configuration for automatic upgrades
func (*OfedUpgradePolicySpec) DeepCopy ¶ added in v1.3.0
func (in *OfedUpgradePolicySpec) DeepCopy() *OfedUpgradePolicySpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OfedUpgradePolicySpec.
func (*OfedUpgradePolicySpec) DeepCopyInto ¶ added in v1.3.0
func (in *OfedUpgradePolicySpec) DeepCopyInto(out *OfedUpgradePolicySpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PSPSpec ¶ added in v1.1.0
type PSPSpec struct {
// Enabled indicates if PodSecurityPolicies needs to be enabled for all Pods
// +optional
// +kubebuilder:default:=false
Enabled bool `json:"enabled,omitempty"`
}
PSPSpec describes configuration for PodSecurityPolicies to apply for all Pods
func (*PSPSpec) DeepCopy ¶ added in v1.1.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PSPSpec.
func (*PSPSpec) DeepCopyInto ¶ added in v1.1.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PodProbeSpec ¶ added in v0.5.0
type PodProbeSpec struct {
InitialDelaySeconds int `json:"initialDelaySeconds"`
PeriodSeconds int `json:"periodSeconds"`
}
func (*PodProbeSpec) DeepCopy ¶ added in v0.5.0
func (in *PodProbeSpec) DeepCopy() *PodProbeSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodProbeSpec.
func (*PodProbeSpec) DeepCopyInto ¶ added in v0.5.0
func (in *PodProbeSpec) DeepCopyInto(out *PodProbeSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SecondaryNetworkSpec ¶
type SecondaryNetworkSpec struct {
// Image and configuration information for multus
Multus *MultusSpec `json:"multus,omitempty"`
// Image information for CNI plugins
CniPlugins *ImageSpec `json:"cniPlugins,omitempty"`
// Image information for IPoIB CNI
IPoIB *ImageSpec `json:"ipoib,omitempty"`
// Image information for IPAM plugin
IpamPlugin *ImageSpec `json:"ipamPlugin,omitempty"`
}
SecondaryNetwork describes configuration options for secondary network
func (*SecondaryNetworkSpec) DeepCopy ¶
func (in *SecondaryNetworkSpec) DeepCopy() *SecondaryNetworkSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecondaryNetworkSpec.
func (*SecondaryNetworkSpec) DeepCopyInto ¶
func (in *SecondaryNetworkSpec) DeepCopyInto(out *SecondaryNetworkSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.