Documentation
¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the ocs v1alpha1 API group +kubebuilder:object:generate=true +groupName=ocs.openshift.io
Index ¶
Constants ¶
const ( // StorageClassClaimInitializing represents Initializing state of StorageClassClaim StorageClassClaimInitializing storageClassClaimState = "Initializing" // StorageClassClaimValidating represents Validating state of StorageClassClaim StorageClassClaimValidating storageClassClaimState = "Validating" // StorageClassClaimFailed represents Failed state of StorageClassClaim StorageClassClaimFailed storageClassClaimState = "Failed" // StorageClassClaimCreating represents Configuring state of StorageClassClaim StorageClassClaimCreating storageClassClaimState = "Creating" // StorageClassClaimConfiguring represents Configuring state of StorageClassClaim StorageClassClaimConfiguring storageClassClaimState = "Configuring" // StorageClassClaimReady represents Ready state of StorageClassClaim StorageClassClaimReady storageClassClaimState = "Ready" // StorageClassClaimDeleting represents Deleting state of StorageClassClaim StorageClassClaimDeleting storageClassClaimState = "Deleting" )
const ( StorageClassClaimFinalizer = "storageclassclaim.ocs.openshift.io" StorageClassClaimAnnotation = "ocs.openshift.io.storagesclassclaim" )
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 StorageClassClaim ¶ added in v0.4.11
type StorageClassClaim struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec StorageClassClaimSpec `json:"spec,omitempty"`
Status StorageClassClaimStatus `json:"status,omitempty"`
}
StorageClassClaim is the Schema for the storageclassclaims API
func (*StorageClassClaim) DeepCopy ¶ added in v0.4.11
func (in *StorageClassClaim) DeepCopy() *StorageClassClaim
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StorageClassClaim.
func (*StorageClassClaim) DeepCopyInto ¶ added in v0.4.11
func (in *StorageClassClaim) DeepCopyInto(out *StorageClassClaim)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*StorageClassClaim) DeepCopyObject ¶ added in v0.4.11
func (in *StorageClassClaim) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type StorageClassClaimList ¶ added in v0.4.11
type StorageClassClaimList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []StorageClassClaim `json:"items"`
}
StorageClassClaimList contains a list of StorageClassClaim
func (*StorageClassClaimList) DeepCopy ¶ added in v0.4.11
func (in *StorageClassClaimList) DeepCopy() *StorageClassClaimList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StorageClassClaimList.
func (*StorageClassClaimList) DeepCopyInto ¶ added in v0.4.11
func (in *StorageClassClaimList) DeepCopyInto(out *StorageClassClaimList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*StorageClassClaimList) DeepCopyObject ¶ added in v0.4.11
func (in *StorageClassClaimList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type StorageClassClaimSpec ¶ added in v0.4.11
type StorageClassClaimSpec struct {
//+kubebuilder:validation:Enum=blockpool;sharedfilesystem
Type string `json:"type"`
EncryptionMethod string `json:"encryptionMethod,omitempty"`
}
StorageClassClaimSpec defines the desired state of StorageClassClaim
func (*StorageClassClaimSpec) DeepCopy ¶ added in v0.4.11
func (in *StorageClassClaimSpec) DeepCopy() *StorageClassClaimSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StorageClassClaimSpec.
func (*StorageClassClaimSpec) DeepCopyInto ¶ added in v0.4.11
func (in *StorageClassClaimSpec) DeepCopyInto(out *StorageClassClaimSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type StorageClassClaimStatus ¶ added in v0.4.11
type StorageClassClaimStatus struct {
Phase storageClassClaimState `json:"phase,omitempty"`
// CephResources provide details of created ceph resources required for external storage
CephResources []*CephResourcesSpec `json:"cephResources,omitempty"`
}
StorageClassClaimStatus defines the observed state of StorageClassClaim
func (*StorageClassClaimStatus) DeepCopy ¶ added in v0.4.11
func (in *StorageClassClaimStatus) DeepCopy() *StorageClassClaimStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StorageClassClaimStatus.
func (*StorageClassClaimStatus) DeepCopyInto ¶ added in v0.4.11
func (in *StorageClassClaimStatus) DeepCopyInto(out *StorageClassClaimStatus)
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"`
// Timestamp of last heartbeat received from consumer
LastHeartbeat metav1.Time `json:"lastHeartbeat,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.