Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the v1alpha1 API group +kubebuilder:object:generate=true +groupName=lus.cray.hpe.com
Index ¶
- Variables
- type LustreFileSystem
- func (in *LustreFileSystem) DeepCopy() *LustreFileSystem
- func (in *LustreFileSystem) DeepCopyInto(out *LustreFileSystem)
- func (in *LustreFileSystem) DeepCopyObject() runtime.Object
- func (fs *LustreFileSystem) GetStatus() updater.Status[*LustreFileSystemStatus]
- func (fs *LustreFileSystem) PersistentVolumeClaimName(namespace string, mode corev1.PersistentVolumeAccessMode) string
- func (fs *LustreFileSystem) PersistentVolumeName(namespace string, mode corev1.PersistentVolumeAccessMode) string
- func (r *LustreFileSystem) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *LustreFileSystem) ValidateCreate() error
- func (r *LustreFileSystem) ValidateDelete() error
- func (r *LustreFileSystem) ValidateUpdate(obj runtime.Object) error
- type LustreFileSystemList
- type LustreFileSystemNamespaceAccessStatus
- type LustreFileSystemNamespaceSpec
- type LustreFileSystemNamespaceStatus
- type LustreFileSystemSpec
- type LustreFileSystemStatus
- type NamespaceAccessState
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "lus.cray.hpe.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 LustreFileSystem ¶
type LustreFileSystem struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec LustreFileSystemSpec `json:"spec,omitempty"` Status LustreFileSystemStatus `json:"status,omitempty"` }
LustreFileSystem is the Schema for the lustrefilesystems API
func (*LustreFileSystem) DeepCopy ¶
func (in *LustreFileSystem) DeepCopy() *LustreFileSystem
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LustreFileSystem.
func (*LustreFileSystem) DeepCopyInto ¶
func (in *LustreFileSystem) DeepCopyInto(out *LustreFileSystem)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*LustreFileSystem) DeepCopyObject ¶
func (in *LustreFileSystem) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*LustreFileSystem) GetStatus ¶
func (fs *LustreFileSystem) GetStatus() updater.Status[*LustreFileSystemStatus]
func (*LustreFileSystem) PersistentVolumeClaimName ¶
func (fs *LustreFileSystem) PersistentVolumeClaimName(namespace string, mode corev1.PersistentVolumeAccessMode) string
func (*LustreFileSystem) PersistentVolumeName ¶
func (fs *LustreFileSystem) PersistentVolumeName(namespace string, mode corev1.PersistentVolumeAccessMode) string
func (*LustreFileSystem) SetupWebhookWithManager ¶
func (r *LustreFileSystem) SetupWebhookWithManager(mgr ctrl.Manager) error
func (*LustreFileSystem) ValidateCreate ¶
func (r *LustreFileSystem) ValidateCreate() error
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*LustreFileSystem) ValidateDelete ¶
func (r *LustreFileSystem) ValidateDelete() error
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
func (*LustreFileSystem) ValidateUpdate ¶
func (r *LustreFileSystem) ValidateUpdate(obj runtime.Object) error
ValidateUpdate implements webhook.Validator so a webhook will be registered for the type
type LustreFileSystemList ¶
type LustreFileSystemList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []LustreFileSystem `json:"items"` }
LustreFileSystemList contains a list of LustreFileSystem
func (*LustreFileSystemList) DeepCopy ¶
func (in *LustreFileSystemList) DeepCopy() *LustreFileSystemList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LustreFileSystemList.
func (*LustreFileSystemList) DeepCopyInto ¶
func (in *LustreFileSystemList) DeepCopyInto(out *LustreFileSystemList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*LustreFileSystemList) DeepCopyObject ¶
func (in *LustreFileSystemList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*LustreFileSystemList) GetObjectList ¶
func (list *LustreFileSystemList) GetObjectList() []client.Object
type LustreFileSystemNamespaceAccessStatus ¶
type LustreFileSystemNamespaceAccessStatus struct { // State represents the current state of the namespace access State NamespaceAccessState `json:"state"` // PersistentVolumeRef holds a reference to the persistent volume, if present PersistentVolumeRef *corev1.LocalObjectReference `json:"persistentVolumeRef,omitempty"` // PersistentVolumeClaimRef holds a reference to the persistent volume claim, if present PersistentVolumeClaimRef *corev1.LocalObjectReference `json:"persistentVolumeClaimRef,omitempty"` }
LustreFileSystemNamespaceAccessStatus defines the observe status of namespace access to the LustreFileSystem
func (*LustreFileSystemNamespaceAccessStatus) DeepCopy ¶
func (in *LustreFileSystemNamespaceAccessStatus) DeepCopy() *LustreFileSystemNamespaceAccessStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LustreFileSystemNamespaceAccessStatus.
func (*LustreFileSystemNamespaceAccessStatus) DeepCopyInto ¶
func (in *LustreFileSystemNamespaceAccessStatus) DeepCopyInto(out *LustreFileSystemNamespaceAccessStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type LustreFileSystemNamespaceSpec ¶
type LustreFileSystemNamespaceSpec struct { // Modes list the persistent volume access modes for accessing the Lustre file system. Modes []corev1.PersistentVolumeAccessMode `json:"modes,omitempty"` }
LustreFileSystemAccessSpec defines the desired state of Lustre File System Accesses
func (*LustreFileSystemNamespaceSpec) DeepCopy ¶
func (in *LustreFileSystemNamespaceSpec) DeepCopy() *LustreFileSystemNamespaceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LustreFileSystemNamespaceSpec.
func (*LustreFileSystemNamespaceSpec) DeepCopyInto ¶
func (in *LustreFileSystemNamespaceSpec) DeepCopyInto(out *LustreFileSystemNamespaceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type LustreFileSystemNamespaceStatus ¶
type LustreFileSystemNamespaceStatus struct { // Modes contains the modes supported for this namespace and their corresponding access sttatus. Modes map[corev1.PersistentVolumeAccessMode]LustreFileSystemNamespaceAccessStatus `json:"modes,omitempty"` }
LustreFileSystemAccessStatus defines the observe status of access to the LustreFileSystem
func (*LustreFileSystemNamespaceStatus) DeepCopy ¶
func (in *LustreFileSystemNamespaceStatus) DeepCopy() *LustreFileSystemNamespaceStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LustreFileSystemNamespaceStatus.
func (*LustreFileSystemNamespaceStatus) DeepCopyInto ¶
func (in *LustreFileSystemNamespaceStatus) DeepCopyInto(out *LustreFileSystemNamespaceStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type LustreFileSystemSpec ¶
type LustreFileSystemSpec struct { // Name is the name of the Lustre file system. // +kubebuilder:validation:MaxLength:=8 // +kubebuilder:validation:MinLength:=1 Name string `json:"name"` // MgsNids is the list of comma- and colon- separated NIDs of the MGS // nodes to use for accessing the Lustre file system. MgsNids string `json:"mgsNids"` // MountRoot is the mount path used to access the Lustre file system from a host. Data Movement // directives and Container Profiles can reference this field. MountRoot string `json:"mountRoot"` // StorageClassName refers to the StorageClass to use for this file system. // +kubebuilder:default:="nnf-lustre-fs" StorageClassName string `json:"storageClassName,omitempty"` // Namespaces defines a map of namespaces with access to the Lustre file systems Namespaces map[string]LustreFileSystemNamespaceSpec `json:"namespaces,omitempty"` }
LustreFileSystemSpec defines the desired state of LustreFileSystem
func (*LustreFileSystemSpec) DeepCopy ¶
func (in *LustreFileSystemSpec) DeepCopy() *LustreFileSystemSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LustreFileSystemSpec.
func (*LustreFileSystemSpec) DeepCopyInto ¶
func (in *LustreFileSystemSpec) DeepCopyInto(out *LustreFileSystemSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type LustreFileSystemStatus ¶
type LustreFileSystemStatus struct { // Namespaces contains the namespaces supported for this Lustre file system and their corresponding status. Namespaces map[string]LustreFileSystemNamespaceStatus `json:"namespaces,omitempty"` }
LustreFileSystemStatus defines the observed status of LustreFileSystem
func (*LustreFileSystemStatus) DeepCopy ¶
func (in *LustreFileSystemStatus) DeepCopy() *LustreFileSystemStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LustreFileSystemStatus.
func (*LustreFileSystemStatus) DeepCopyInto ¶
func (in *LustreFileSystemStatus) DeepCopyInto(out *LustreFileSystemStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NamespaceAccessState ¶
type NamespaceAccessState string
const ( // NamespaceAccessPending - used to indicate the namespace access not yet ready NamespaceAccessPending NamespaceAccessState = "Pending" // NamespaceAccessReady - used to indicate the namespace access is ready NamespaceAccessReady NamespaceAccessState = "Ready" )