v1alpha1

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: Apache-2.0 Imports: 15 Imported by: 2

Documentation

Overview

The following tag tells conversion-gen to generate conversion routines, and it tells conversion-gen the name of the hub version. +k8s:conversion-gen=github.com/NearNodeFlash/lustre-fs-operator/api/v1beta1

Package v1alpha1 contains API Schema definitions for the v1alpha1 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: "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 Convert_v1alpha1_LustreFileSystemList_To_v1beta1_LustreFileSystemList added in v0.0.3

func Convert_v1alpha1_LustreFileSystemList_To_v1beta1_LustreFileSystemList(in *LustreFileSystemList, out *v1beta1.LustreFileSystemList, s conversion.Scope) error

Convert_v1alpha1_LustreFileSystemList_To_v1beta1_LustreFileSystemList is an autogenerated conversion function.

func Convert_v1alpha1_LustreFileSystemNamespaceAccessStatus_To_v1beta1_LustreFileSystemNamespaceAccessStatus added in v0.0.3

func Convert_v1alpha1_LustreFileSystemNamespaceAccessStatus_To_v1beta1_LustreFileSystemNamespaceAccessStatus(in *LustreFileSystemNamespaceAccessStatus, out *v1beta1.LustreFileSystemNamespaceAccessStatus, s conversion.Scope) error

Convert_v1alpha1_LustreFileSystemNamespaceAccessStatus_To_v1beta1_LustreFileSystemNamespaceAccessStatus is an autogenerated conversion function.

func Convert_v1alpha1_LustreFileSystemNamespaceSpec_To_v1beta1_LustreFileSystemNamespaceSpec added in v0.0.3

func Convert_v1alpha1_LustreFileSystemNamespaceSpec_To_v1beta1_LustreFileSystemNamespaceSpec(in *LustreFileSystemNamespaceSpec, out *v1beta1.LustreFileSystemNamespaceSpec, s conversion.Scope) error

Convert_v1alpha1_LustreFileSystemNamespaceSpec_To_v1beta1_LustreFileSystemNamespaceSpec is an autogenerated conversion function.

func Convert_v1alpha1_LustreFileSystemNamespaceStatus_To_v1beta1_LustreFileSystemNamespaceStatus added in v0.0.3

func Convert_v1alpha1_LustreFileSystemNamespaceStatus_To_v1beta1_LustreFileSystemNamespaceStatus(in *LustreFileSystemNamespaceStatus, out *v1beta1.LustreFileSystemNamespaceStatus, s conversion.Scope) error

Convert_v1alpha1_LustreFileSystemNamespaceStatus_To_v1beta1_LustreFileSystemNamespaceStatus is an autogenerated conversion function.

func Convert_v1alpha1_LustreFileSystemSpec_To_v1beta1_LustreFileSystemSpec added in v0.0.3

func Convert_v1alpha1_LustreFileSystemSpec_To_v1beta1_LustreFileSystemSpec(in *LustreFileSystemSpec, out *v1beta1.LustreFileSystemSpec, s conversion.Scope) error

Convert_v1alpha1_LustreFileSystemSpec_To_v1beta1_LustreFileSystemSpec is an autogenerated conversion function.

func Convert_v1alpha1_LustreFileSystemStatus_To_v1beta1_LustreFileSystemStatus added in v0.0.3

func Convert_v1alpha1_LustreFileSystemStatus_To_v1beta1_LustreFileSystemStatus(in *LustreFileSystemStatus, out *v1beta1.LustreFileSystemStatus, s conversion.Scope) error

Convert_v1alpha1_LustreFileSystemStatus_To_v1beta1_LustreFileSystemStatus is an autogenerated conversion function.

func Convert_v1alpha1_LustreFileSystem_To_v1beta1_LustreFileSystem added in v0.0.3

func Convert_v1alpha1_LustreFileSystem_To_v1beta1_LustreFileSystem(in *LustreFileSystem, out *v1beta1.LustreFileSystem, s conversion.Scope) error

Convert_v1alpha1_LustreFileSystem_To_v1beta1_LustreFileSystem is an autogenerated conversion function.

func Convert_v1beta1_LustreFileSystemList_To_v1alpha1_LustreFileSystemList added in v0.0.3

func Convert_v1beta1_LustreFileSystemList_To_v1alpha1_LustreFileSystemList(in *v1beta1.LustreFileSystemList, out *LustreFileSystemList, s conversion.Scope) error

Convert_v1beta1_LustreFileSystemList_To_v1alpha1_LustreFileSystemList is an autogenerated conversion function.

func Convert_v1beta1_LustreFileSystemNamespaceAccessStatus_To_v1alpha1_LustreFileSystemNamespaceAccessStatus added in v0.0.3

func Convert_v1beta1_LustreFileSystemNamespaceAccessStatus_To_v1alpha1_LustreFileSystemNamespaceAccessStatus(in *v1beta1.LustreFileSystemNamespaceAccessStatus, out *LustreFileSystemNamespaceAccessStatus, s conversion.Scope) error

Convert_v1beta1_LustreFileSystemNamespaceAccessStatus_To_v1alpha1_LustreFileSystemNamespaceAccessStatus is an autogenerated conversion function.

func Convert_v1beta1_LustreFileSystemNamespaceSpec_To_v1alpha1_LustreFileSystemNamespaceSpec added in v0.0.3

func Convert_v1beta1_LustreFileSystemNamespaceSpec_To_v1alpha1_LustreFileSystemNamespaceSpec(in *v1beta1.LustreFileSystemNamespaceSpec, out *LustreFileSystemNamespaceSpec, s conversion.Scope) error

Convert_v1beta1_LustreFileSystemNamespaceSpec_To_v1alpha1_LustreFileSystemNamespaceSpec is an autogenerated conversion function.

func Convert_v1beta1_LustreFileSystemNamespaceStatus_To_v1alpha1_LustreFileSystemNamespaceStatus added in v0.0.3

func Convert_v1beta1_LustreFileSystemNamespaceStatus_To_v1alpha1_LustreFileSystemNamespaceStatus(in *v1beta1.LustreFileSystemNamespaceStatus, out *LustreFileSystemNamespaceStatus, s conversion.Scope) error

Convert_v1beta1_LustreFileSystemNamespaceStatus_To_v1alpha1_LustreFileSystemNamespaceStatus is an autogenerated conversion function.

func Convert_v1beta1_LustreFileSystemSpec_To_v1alpha1_LustreFileSystemSpec added in v0.0.3

func Convert_v1beta1_LustreFileSystemSpec_To_v1alpha1_LustreFileSystemSpec(in *v1beta1.LustreFileSystemSpec, out *LustreFileSystemSpec, s conversion.Scope) error

Convert_v1beta1_LustreFileSystemSpec_To_v1alpha1_LustreFileSystemSpec is an autogenerated conversion function.

func Convert_v1beta1_LustreFileSystemStatus_To_v1alpha1_LustreFileSystemStatus added in v0.0.3

func Convert_v1beta1_LustreFileSystemStatus_To_v1alpha1_LustreFileSystemStatus(in *v1beta1.LustreFileSystemStatus, out *LustreFileSystemStatus, s conversion.Scope) error

Convert_v1beta1_LustreFileSystemStatus_To_v1alpha1_LustreFileSystemStatus is an autogenerated conversion function.

func Convert_v1beta1_LustreFileSystem_To_v1alpha1_LustreFileSystem added in v0.0.3

func Convert_v1beta1_LustreFileSystem_To_v1alpha1_LustreFileSystem(in *v1beta1.LustreFileSystem, out *LustreFileSystem, s conversion.Scope) error

Convert_v1beta1_LustreFileSystem_To_v1alpha1_LustreFileSystem is an autogenerated conversion function.

func RegisterConversions added in v0.0.3

func RegisterConversions(s *runtime.Scheme) error

RegisterConversions adds conversion functions to the given scheme. Public to allow building arbitrary schemes.

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) ConvertFrom added in v0.0.3

func (dst *LustreFileSystem) ConvertFrom(srcRaw conversion.Hub) error

func (*LustreFileSystem) ConvertTo added in v0.0.3

func (src *LustreFileSystem) ConvertTo(dstRaw conversion.Hub) error

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

func (fs *LustreFileSystem) PersistentVolumeClaimName(namespace string, mode corev1.PersistentVolumeAccessMode) string

func (*LustreFileSystem) PersistentVolumeName

func (fs *LustreFileSystem) PersistentVolumeName(namespace string, mode corev1.PersistentVolumeAccessMode) string

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) ConvertFrom added in v0.0.3

func (dst *LustreFileSystemList) ConvertFrom(srcRaw conversion.Hub) error

func (*LustreFileSystemList) ConvertTo added in v0.0.3

func (src *LustreFileSystemList) ConvertTo(dstRaw conversion.Hub) error

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

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