Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the nfspvc v1alpha1 API group +kubebuilder:object:generate=true +groupName=nfspvc.dana.io
Index ¶
- Variables
- type NfsPvc
- func (in *NfsPvc) DeepCopy() *NfsPvc
- func (in *NfsPvc) DeepCopyInto(out *NfsPvc)
- func (in *NfsPvc) DeepCopyObject() runtime.Object
- func (r *NfsPvc) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *NfsPvc) ValidateCreate() (admission.Warnings, error)
- func (r *NfsPvc) ValidateDelete() (admission.Warnings, error)
- func (r *NfsPvc) ValidateUpdate(old runtime.Object) (admission.Warnings, error)
- type NfsPvcList
- type NfsPvcSpec
- type NfsPvcStatus
- type NfsPvcValidator
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.
func (*NfsPvc) SetupWebhookWithManager ¶ added in v0.2.0
func (*NfsPvc) ValidateCreate ¶ added in v0.2.0
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*NfsPvc) ValidateDelete ¶ added in v0.2.0
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
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"` }
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.
type NfsPvcValidator ¶ added in v0.2.1
type NfsPvcValidator struct {
NfsPvc
}
func (*NfsPvcValidator) DeepCopy ¶ added in v0.2.1
func (in *NfsPvcValidator) DeepCopy() *NfsPvcValidator
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NfsPvcValidator.
func (*NfsPvcValidator) DeepCopyInto ¶ added in v0.2.1
func (in *NfsPvcValidator) DeepCopyInto(out *NfsPvcValidator)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.