Documentation
¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the ocs v1alpha1 API group +kubebuilder:object:generate=true +groupName=ocs.openshift.io
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "ocs.openshift.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 CephResourcesSpec ¶
type CephResourcesSpec struct {
// Kind describes the kind of created ceph resource
Kind string `json:"kind,omitempty"`
// Name describes the name of created ceph resource
Name string `json:"name,omitempty"`
// Phase describes the phase of created ceph resource
Phase string `json:"status,omitempty"`
// CephClients holds the name of CephClients mapped to the created ceph resource
CephClients map[string]string `json:"cephClients,omitempty"`
}
CephResourcesSpec hold details of created ceph resources required for external storage
func (*CephResourcesSpec) DeepCopy ¶
func (in *CephResourcesSpec) DeepCopy() *CephResourcesSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CephResourcesSpec.
func (*CephResourcesSpec) DeepCopyInto ¶
func (in *CephResourcesSpec) DeepCopyInto(out *CephResourcesSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type StorageConsumer ¶
type StorageConsumer struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec StorageConsumerSpec `json:"spec,omitempty"`
Status StorageConsumerStatus `json:"status,omitempty"`
}
StorageConsumer is the Schema for the storageconsumers API
func (*StorageConsumer) DeepCopy ¶
func (in *StorageConsumer) DeepCopy() *StorageConsumer
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StorageConsumer.
func (*StorageConsumer) DeepCopyInto ¶
func (in *StorageConsumer) DeepCopyInto(out *StorageConsumer)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*StorageConsumer) DeepCopyObject ¶
func (in *StorageConsumer) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type StorageConsumerList ¶
type StorageConsumerList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []StorageConsumer `json:"items"`
}
StorageConsumerList contains a list of StorageConsumer
func (*StorageConsumerList) DeepCopy ¶
func (in *StorageConsumerList) DeepCopy() *StorageConsumerList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StorageConsumerList.
func (*StorageConsumerList) DeepCopyInto ¶
func (in *StorageConsumerList) DeepCopyInto(out *StorageConsumerList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*StorageConsumerList) DeepCopyObject ¶
func (in *StorageConsumerList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type StorageConsumerSpec ¶
type StorageConsumerSpec struct {
// Capacity is the total quota size allocated to a consumer.
Capacity resource.Quantity `json:"capacity"`
// Enable flag ignores a reconcile if set to false
Enable bool `json:"enable,omitempty"`
}
StorageConsumerSpec defines the desired state of StorageConsumer
func (*StorageConsumerSpec) DeepCopy ¶
func (in *StorageConsumerSpec) DeepCopy() *StorageConsumerSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StorageConsumerSpec.
func (*StorageConsumerSpec) DeepCopyInto ¶
func (in *StorageConsumerSpec) DeepCopyInto(out *StorageConsumerSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type StorageConsumerState ¶
type StorageConsumerState string
StorageConsumerState represent a StorageConsumer's state
const ( // StorageConsumerStateReady represents Ready state of StorageConsumer StorageConsumerStateReady StorageConsumerState = "Ready" // StorageConsumerStateConfiguring represents Configuring state of StorageConsumer StorageConsumerStateConfiguring StorageConsumerState = "Configuring" // StorageConsumerStateDeleting represents Deleting state of StorageConsumer StorageConsumerStateDeleting StorageConsumerState = "Deleting" // StorageConsumerStateFailed represents Failed state of StorageConsumer StorageConsumerStateFailed StorageConsumerState = "Failed" // StorageConsumerStateDisabled represents Disabled state of StorageConsumer StorageConsumerStateDisabled StorageConsumerState = "Disabled" )
type StorageConsumerStatus ¶
type StorageConsumerStatus struct {
// State describes the state of StorageConsumer
State StorageConsumerState `json:"state,omitempty"`
// GrantedCapacity holds granted capacity value for the consumer
GrantedCapacity resource.Quantity `json:"grantedCapacity,omitempty"`
// CephResources provide details of created ceph resources required for external storage
CephResources []*CephResourcesSpec `json:"cephResources,omitempty"`
}
StorageConsumerStatus defines the observed state of StorageConsumer
func (*StorageConsumerStatus) DeepCopy ¶
func (in *StorageConsumerStatus) DeepCopy() *StorageConsumerStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StorageConsumerStatus.
func (*StorageConsumerStatus) DeepCopyInto ¶
func (in *StorageConsumerStatus) DeepCopyInto(out *StorageConsumerStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.