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
- func GetDriverUpgradePolicy(ofedUpgradePolicy *DriverUpgradePolicySpec) *upgradeApi.DriverUpgradePolicySpec
- type AppliedState
- type ConfigMapNameReference
- type DevicePluginSpec
- type DrainSpec
- type DriverUpgradePolicySpec
- type HostDeviceNetwork
- type HostDeviceNetworkList
- type HostDeviceNetworkSpec
- type HostDeviceNetworkStatus
- type IBKubernetesSpec
- type IPoIBNetwork
- type IPoIBNetworkList
- type IPoIBNetworkSpec
- type IPoIBNetworkStatus
- type ImageSpec
- type ImageSpecWithConfig
- type MacvlanNetwork
- type MacvlanNetworkList
- type MacvlanNetworkSpec
- type MacvlanNetworkStatus
- type MultusSpec
- type NICFeatureDiscoverySpec
- type NVIPAMSpec
- type NicClusterPolicy
- type NicClusterPolicyList
- type NicClusterPolicySpec
- type NicClusterPolicyStatus
- type OFEDDriverSpec
- type PSPSpec
- type PodProbeSpec
- type SecondaryNetworkSpec
- type State
- type WaitForCompletionSpec
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 ¶
func GetDriverUpgradePolicy ¶
func GetDriverUpgradePolicy( ofedUpgradePolicy *DriverUpgradePolicySpec) *upgradeApi.DriverUpgradePolicySpec
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 {
ImageSpecWithConfig `json:""`
UseCdi bool `json:"useCdi,omitempty"`
}
DevicePluginSpec describes configuration options for device plugin 1. Image information for device plugin 2. Device plugin configuration
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 DriverUpgradePolicySpec ¶
type DriverUpgradePolicySpec 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"`
WaitForCompletion *WaitForCompletionSpec `json:"waitForCompletion,omitempty"`
DrainSpec *DrainSpec `json:"drain,omitempty"`
}
DriverUpgradePolicySpec describes policy configuration for automatic upgrades
func (*DriverUpgradePolicySpec) DeepCopy ¶
func (in *DriverUpgradePolicySpec) DeepCopy() *DriverUpgradePolicySpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DriverUpgradePolicySpec.
func (*DriverUpgradePolicySpec) DeepCopyInto ¶
func (in *DriverUpgradePolicySpec) DeepCopyInto(out *DriverUpgradePolicySpec)
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 ImageSpecWithConfig ¶
ImageSpecWithConfig Contains ImageSpec and optional configuration
func (*ImageSpecWithConfig) DeepCopy ¶
func (in *ImageSpecWithConfig) DeepCopy() *ImageSpecWithConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageSpecWithConfig.
func (*ImageSpecWithConfig) DeepCopyInto ¶
func (in *ImageSpecWithConfig) DeepCopyInto(out *ImageSpecWithConfig)
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 {
ImageSpecWithConfig `json:""`
}
MultusSpec describes configuration options for Multus CNI
- Image information for Multus CNI
- 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)
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 NICFeatureDiscoverySpec ¶
type NICFeatureDiscoverySpec struct {
ImageSpec `json:""`
}
NicFeatureDiscoverySpec describes configuration options for nic-feature-discovery
func (*NICFeatureDiscoverySpec) DeepCopy ¶
func (in *NICFeatureDiscoverySpec) DeepCopy() *NICFeatureDiscoverySpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NICFeatureDiscoverySpec.
func (*NICFeatureDiscoverySpec) DeepCopyInto ¶
func (in *NICFeatureDiscoverySpec) DeepCopyInto(out *NICFeatureDiscoverySpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NVIPAMSpec ¶
type NVIPAMSpec struct {
ImageSpecWithConfig `json:""`
}
NVIPAMSpec describes configuration options for nv-ipam 1. Image information for nv-ipam 2. Configuration for nv-ipam
func (*NVIPAMSpec) DeepCopy ¶
func (in *NVIPAMSpec) DeepCopy() *NVIPAMSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NVIPAMSpec.
func (*NVIPAMSpec) DeepCopyInto ¶
func (in *NVIPAMSpec) DeepCopyInto(out *NVIPAMSpec)
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"`
Tolerations []v1.Toleration `json:"tolerations,omitempty"`
OFEDDriver *OFEDDriverSpec `json:"ofedDriver,omitempty"`
SriovDevicePlugin *DevicePluginSpec `json:"sriovDevicePlugin,omitempty"`
IBKubernetes *IBKubernetesSpec `json:"ibKubernetes,omitempty"`
SecondaryNetwork *SecondaryNetworkSpec `json:"secondaryNetwork,omitempty"`
NvIpam *NVIPAMSpec `json:"nvIpam,omitempty"`
PSP *PSPSpec `json:"psp,omitempty"`
NicFeatureDiscovery *NICFeatureDiscoverySpec `json:"nicFeatureDiscovery,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 *DriverUpgradePolicySpec `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"`
// TerminationGracePeriodSeconds specifies the length of time in seconds
// to wait before killing the OFED pod on termination
// +optional
// +kubebuilder:default:=300
// +kubebuilder:validation:Minimum:=0
TerminationGracePeriodSeconds int64 `json:"terminationGracePeriodSeconds,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 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.
type WaitForCompletionSpec ¶
type WaitForCompletionSpec struct {
// PodSelector specifies a label selector for the pods to wait for completion
// 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 on pod termination, zero means infinite
// +optional
// +kubebuilder:default:=0
// +kubebuilder:validation:Minimum:=0
TimeoutSecond int `json:"timeoutSeconds,omitempty"`
}
WaitForCompletionSpec describes the configuration for waiting on job completions
func (*WaitForCompletionSpec) DeepCopy ¶
func (in *WaitForCompletionSpec) DeepCopy() *WaitForCompletionSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WaitForCompletionSpec.
func (*WaitForCompletionSpec) DeepCopyInto ¶
func (in *WaitForCompletionSpec) DeepCopyInto(out *WaitForCompletionSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.