Documentation ¶
Overview ¶
Package drivecrd contains API Schema definitions for the drive v1 API group +groupName=csi-baremetal.dell.com +versionName=v1
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersionDrive is group version used to register these objects GroupVersionDrive = schema.GroupVersion{Group: v1.CSICRsGroupVersion, Version: v1.Version} // SchemeBuilderDrive is used to add go types to the GroupVersionKind scheme SchemeBuilderDrive = &crScheme.Builder{GroupVersion: GroupVersionDrive} // AddToSchemeDrive adds the types in this group-version to the given scheme. AddToSchemeDrive = SchemeBuilderDrive.AddToScheme )
Functions ¶
This section is empty.
Types ¶
type Drive ¶
type Drive struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec api.Drive `json:"spec,omitempty"` }
Drive is the Schema for the drives API +kubebuilder:resource:scope=Cluster +kubebuilder:printcolumn:name="SIZE",type="string",JSONPath=".spec.Size",description="Drive capacity" +kubebuilder:printcolumn:name="TYPE",type="string",JSONPath=".spec.Type",description="Drive type (HDD/LVG/NVME)" +kubebuilder:printcolumn:name="HEALTH",type="string",JSONPath=".spec.Health",description="Drive health status" +kubebuilder:printcolumn:name="STATUS",type="string",JSONPath=".spec.Status",description="Drive status online/offline",priority=1 +kubebuilder:printcolumn:name="USAGE",type="string",JSONPath=".spec.Usage",description="Drive usage",priority=1 +kubebuilder:printcolumn:name="SYSTEM",type="string",JSONPath=".spec.IsSystem",description="Is system disk",priority=1 +kubebuilder:printcolumn:name="PATH",type="string",JSONPath=".spec.Path",description="Drive path",priority=1 +kubebuilder:printcolumn:name="SERIAL NUMBER",type="string",JSONPath=".spec.SerialNumber",description="Drive serial number" +kubebuilder:printcolumn:name="NODE",type="string",JSONPath=".spec.NodeId",description="Drive node location" +kubebuilder:printcolumn:name="SLOT",type="string",JSONPath=".spec.Slot",description="Drive slot" +kubebuilder:printcolumn:name="Security Status",type="string",JSONPath=".spec.SecurityStatus",description="SED drive security status" +kubebuilder:printcolumn:name="Encryption Capable",type="string",JSONPath=".spec.EncryptionCapable",description="SED drive or not" +kubebuilder:printcolumn:name="Encryption Protocol",type="string",JSONPath=".spec.EncryptionProtocol",description="SED encryption protocol"
func (*Drive) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Drive.
func (*Drive) DeepCopyInto ¶
Need to declare this method because api.Volume doesn't have DeepCopyInto
func (*Drive) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Drive) GetDriveDescription ¶
type DriveList ¶
type DriveList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Drive `json:"items"` }
DriveList contains a list of Drive +kubebuilder:object:generate=true
func (*DriveList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DriveList.
func (*DriveList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DriveList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.