v1beta1

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2024 License: Apache-2.0 Imports: 18 Imported by: 3

Documentation

Overview

Package v1beta1 contains API Schema definitions for the lus v1beta1 API group +kubebuilder:object:generate=true +groupName=lus.cray.hpe.com

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "lus.cray.hpe.com", Version: "v1beta1"}

	// 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 (*LustreFileSystem) Hub

func (*LustreFileSystem) Hub()

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() (admission.Warnings, error)

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

func (*LustreFileSystem) ValidateDelete

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

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

func (*LustreFileSystem) ValidateUpdate

func (r *LustreFileSystem) ValidateUpdate(obj runtime.Object) (admission.Warnings, 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

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

func (*LustreFileSystemList) Hub

func (*LustreFileSystemList) Hub()

The conversion-verifier tool wants these...though they're never used.

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

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LustreFileSystemNamespaceAccessStatus.

func (*LustreFileSystemNamespaceAccessStatus) DeepCopyInto

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

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LustreFileSystemNamespaceSpec.

func (*LustreFileSystemNamespaceSpec) DeepCopyInto

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

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LustreFileSystemNamespaceStatus.

func (*LustreFileSystemNamespaceStatus) DeepCopyInto

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

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

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"
)

Jump to

Keyboard shortcuts

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