Documentation ¶
Overview ¶
Package v1 contains API Schema definitions for the local v1 API group +kubebuilder:object:generate=true +groupName=local.storage.openshift.io
Index ¶
Constants ¶
const ( LocalVolumeKind = "LocalVolume" LocalVolumeSetKind = "LocalVolumeSet" )
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "local.storage.openshift.io", Version: "v1"} // 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 LocalVolume ¶
type LocalVolume struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec LocalVolumeSpec `json:"spec,omitempty"` Status LocalVolumeStatus `json:"status,omitempty"` }
+kubebuilder:object:root=true +kubebuilder:subresource:status +kubebuilder:resource:path=localvolumes,scope=Namespaced LocalVolume is the Schema for the localvolumes API
func (*LocalVolume) DeepCopy ¶
func (in *LocalVolume) DeepCopy() *LocalVolume
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LocalVolume.
func (*LocalVolume) DeepCopyInto ¶
func (in *LocalVolume) DeepCopyInto(out *LocalVolume)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*LocalVolume) DeepCopyObject ¶
func (in *LocalVolume) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*LocalVolume) SetDefaults ¶
func (local *LocalVolume) SetDefaults()
SetDefaults sets values of log level and manage levels
type LocalVolumeList ¶
type LocalVolumeList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []LocalVolume `json:"items"` }
LocalVolumeList contains a list of LocalVolume
func (*LocalVolumeList) DeepCopy ¶
func (in *LocalVolumeList) DeepCopy() *LocalVolumeList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LocalVolumeList.
func (*LocalVolumeList) DeepCopyInto ¶
func (in *LocalVolumeList) DeepCopyInto(out *LocalVolumeList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*LocalVolumeList) DeepCopyObject ¶
func (in *LocalVolumeList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type LocalVolumeSpec ¶
type LocalVolumeSpec struct { // managementState indicates whether and how the operator should manage the component // +optional ManagementState operatorv1.ManagementState `json:"managementState,omitempty"` // logLevel is an intent based logging for an overall component. It does not give fine grained control, but it is a // simple way to manage coarse grained logging choices that operators have to interpret for their operands. // +optional LogLevel operatorv1.LogLevel `json:"logLevel,omitempty"` // Nodes on which the provisoner must run // +optional NodeSelector *corev1.NodeSelector `json:"nodeSelector,omitempty"` // List of storage class and devices they can match StorageClassDevices []StorageClassDevice `json:"storageClassDevices,omitempty"` // If specified, a list of tolerations to pass to the diskmaker and provisioner DaemonSets. // +optional Tolerations []corev1.Toleration `json:"tolerations,omitempty"` }
LocalVolumeSpec defines the desired state of LocalVolume
func (*LocalVolumeSpec) DeepCopy ¶
func (in *LocalVolumeSpec) DeepCopy() *LocalVolumeSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LocalVolumeSpec.
func (*LocalVolumeSpec) DeepCopyInto ¶
func (in *LocalVolumeSpec) DeepCopyInto(out *LocalVolumeSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type LocalVolumeStatus ¶
type LocalVolumeStatus struct { // ObservedGeneration is the last generation of this object that // the operator has acted on. ObservedGeneration *int64 `json:"observedGeneration,omitempty"` // state indicates what the operator has observed to be its current operational status. State operatorv1.ManagementState `json:"managementState,omitempty"` // Conditions is a list of conditions and their status. Conditions []operatorv1.OperatorCondition `json:"conditions,omitempty"` // readyReplicas indicates how many replicas are ready and at the desired state ReadyReplicas int32 `json:"readyReplicas"` // generations are used to determine when an item needs to be reconciled or has changed in a way that needs a reaction. // +optional Generations []operatorv1.GenerationStatus `json:"generations,omitempty"` }
LocalVolumeStatus defines the observed state of LocalVolume
func (*LocalVolumeStatus) DeepCopy ¶
func (in *LocalVolumeStatus) DeepCopy() *LocalVolumeStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LocalVolumeStatus.
func (*LocalVolumeStatus) DeepCopyInto ¶
func (in *LocalVolumeStatus) DeepCopyInto(out *LocalVolumeStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PersistentVolumeMode ¶
type PersistentVolumeMode string
PersistentVolumeMode describes how a volume is intended to be consumed, either Block or Filesystem.
const ( // PersistentVolumeBlock means the volume will not be formatted with a filesystem and will remain a raw block device. PersistentVolumeBlock PersistentVolumeMode = "Block" // PersistentVolumeFilesystem means the volume will be or is formatted with a filesystem. PersistentVolumeFilesystem PersistentVolumeMode = "Filesystem" )
type StorageClassDevice ¶
type StorageClassDevice struct { // StorageClass name to use for set of matched devices StorageClassName string `json:"storageClassName"` // Volume mode. Raw or with file system // + optional VolumeMode PersistentVolumeMode `json:"volumeMode,omitempty"` // File system type // +optional FSType string `json:"fsType,omitempty"` // A list of device paths which would be chosen for local storage. // For example - ["/dev/sda", "/dev/sdb", "/dev/disk/by-id/ata-crucial"] DevicePaths []string `json:"devicePaths,omitempty"` // This option will destroy all leftover data on the devices before they're used as PersistentVolumes. Use with care. // +optional ForceWipeDevicesAndDestroyAllData bool `json:"forceWipeDevicesAndDestroyAllData,omitempty"` }
StorageClassDevice returns device configuration
func (*StorageClassDevice) DeepCopy ¶
func (in *StorageClassDevice) DeepCopy() *StorageClassDevice
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StorageClassDevice.
func (*StorageClassDevice) DeepCopyInto ¶
func (in *StorageClassDevice) DeepCopyInto(out *StorageClassDevice)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.