Documentation
¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the nfspvc v1alpha1 API group. +kubebuilder:object:generate=true +groupName=nfspvc.dana.io
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects. GroupVersion = schema.GroupVersion{Group: "nfspvc.dana.io", 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 NfsPvc ¶
type NfsPvc struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec NfsPvcSpec `json:"spec,omitempty"`
Status NfsPvcStatus `json:"status,omitempty"`
}
NfsPvc is the Schema for the nfspvcs API
func (*NfsPvc) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NfsPvc.
func (*NfsPvc) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*NfsPvc) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type NfsPvcList ¶
type NfsPvcList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []NfsPvc `json:"items"`
}
NfsPvcList contains a list of NfsPvc
func (*NfsPvcList) DeepCopy ¶
func (in *NfsPvcList) DeepCopy() *NfsPvcList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NfsPvcList.
func (*NfsPvcList) DeepCopyInto ¶
func (in *NfsPvcList) DeepCopyInto(out *NfsPvcList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*NfsPvcList) DeepCopyObject ¶
func (in *NfsPvcList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type NfsPvcSpec ¶
type NfsPvcSpec struct {
// accessModes contains the desired access modes the volume should have(RWX, RWO, ROX).
// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="AccessModes is immutable"
AccessModes []corev1.PersistentVolumeAccessMode `json:"accessModes" protobuf:"bytes,3,rep,name=accessModes,casttype=PersistentVolumeAccessMode"`
// capacity is the description of the persistent volume's resources and capacity.
// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="Capacity is immutable"
Capacity corev1.ResourceList `json:"capacity" protobuf:"bytes,1,rep,name=capacity,casttype=ResourceList,castkey=ResourceName"`
// path that is exported by the NFS server.
// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="Path is immutable"
// +kubebuilder:validation:Pattern="^/"
Path string `json:"path" protobuf:"bytes,2,opt,name=path"`
// server is the hostname or IP address of the NFS server
// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="Server is immutable"
// +kubebuilder:validation:MinLength=1
Server string `json:"server" protobuf:"bytes,1,opt,name=server"`
// nfsVersion specifies the version of the NFS protocol to use .
// +kubebuilder:validation:Enum="3";"4";"4.1";"4.2"
// +kubebuilder:default="3"
NfsVersion string `json:"nfsVersion,omitempty" protobuf:"bytes,4,opt,name=nfsVersion"`
}
NfsPvcSpec defines the desired state of NfsPvc.
func (*NfsPvcSpec) DeepCopy ¶
func (in *NfsPvcSpec) DeepCopy() *NfsPvcSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NfsPvcSpec.
func (*NfsPvcSpec) DeepCopyInto ¶
func (in *NfsPvcSpec) DeepCopyInto(out *NfsPvcSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NfsPvcStatus ¶
type NfsPvcStatus struct {
// pvcPhase represents the current phase of PersistentVolumeClaim.
PvcPhase string `json:"pvcPhase,omitempty" protobuf:"bytes,3,opt,name=pvcPhase"`
// pvPhase indicates if a volume is available, bound to a claim, or released by a claim.
PvPhase string `json:"pvPhase,omitempty" protobuf:"bytes,3,opt,name=pvPhase"`
}
NfsPvcStatus defines the observed state of NfsPvc.
func (*NfsPvcStatus) DeepCopy ¶
func (in *NfsPvcStatus) DeepCopy() *NfsPvcStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NfsPvcStatus.
func (*NfsPvcStatus) DeepCopyInto ¶
func (in *NfsPvcStatus) DeepCopyInto(out *NfsPvcStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.