Documentation
¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the storage v1alpha1 API group +kubebuilder:object:generate=true +groupName=storage.koor.tech
Index ¶
- Constants
- Variables
- type KoorCluster
- func (in *KoorCluster) DeepCopy() *KoorCluster
- func (in *KoorCluster) DeepCopyInto(out *KoorCluster)
- func (in *KoorCluster) DeepCopyObject() runtime.Object
- func (r *KoorCluster) Default()
- func (k *KoorCluster) IsBeingDeleted() bool
- func (r *KoorCluster) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *KoorCluster) ValidateCreate() error
- func (r *KoorCluster) ValidateDelete() error
- func (r *KoorCluster) ValidateUpdate(old runtime.Object) error
- type KoorClusterList
- type KoorClusterSpec
- type KoorClusterStatus
- type Resources
Constants ¶
const KoorClusterFinalizerName = "storage.koor.tech/finalizer"
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "storage.koor.tech", 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 KoorCluster ¶
type KoorCluster struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec KoorClusterSpec `json:"spec,omitempty"`
Status KoorClusterStatus `json:"status,omitempty"`
}
KoorCluster is the Schema for the koorclusters API
func (*KoorCluster) DeepCopy ¶
func (in *KoorCluster) DeepCopy() *KoorCluster
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KoorCluster.
func (*KoorCluster) DeepCopyInto ¶
func (in *KoorCluster) DeepCopyInto(out *KoorCluster)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*KoorCluster) DeepCopyObject ¶
func (in *KoorCluster) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*KoorCluster) Default ¶
func (r *KoorCluster) Default()
Default implements webhook.Defaulter so a webhook will be registered for the type
func (*KoorCluster) IsBeingDeleted ¶
func (k *KoorCluster) IsBeingDeleted() bool
func (*KoorCluster) SetupWebhookWithManager ¶
func (r *KoorCluster) SetupWebhookWithManager(mgr ctrl.Manager) error
func (*KoorCluster) ValidateCreate ¶
func (r *KoorCluster) ValidateCreate() error
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*KoorCluster) ValidateDelete ¶
func (r *KoorCluster) ValidateDelete() error
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
func (*KoorCluster) ValidateUpdate ¶
func (r *KoorCluster) ValidateUpdate(old runtime.Object) error
ValidateUpdate implements webhook.Validator so a webhook will be registered for the type
type KoorClusterList ¶
type KoorClusterList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []KoorCluster `json:"items"`
}
KoorClusterList contains a list of KoorCluster
func (*KoorClusterList) DeepCopy ¶
func (in *KoorClusterList) DeepCopy() *KoorClusterList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KoorClusterList.
func (*KoorClusterList) DeepCopyInto ¶
func (in *KoorClusterList) DeepCopyInto(out *KoorClusterList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*KoorClusterList) DeepCopyObject ¶
func (in *KoorClusterList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type KoorClusterSpec ¶
type KoorClusterSpec struct {
// Use all devices on nodes
UseAllDevices *bool `json:"useAllDevices,omitempty"`
// Enable monitoring. Requires Prometheus to be pre-installed.
MonitoringEnabled *bool `json:"monitoringEnabled,omitempty"`
// Enable the ceph dashboard for viewing cluster status
DashboardEnabled *bool `json:"dashboardEnabled,omitempty"`
// Installs a debugging toolbox deployment
ToolboxEnabled *bool `json:"toolboxEnabled,omitempty"`
}
KoorClusterSpec defines the desired state of KoorCluster
func (*KoorClusterSpec) DeepCopy ¶
func (in *KoorClusterSpec) DeepCopy() *KoorClusterSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KoorClusterSpec.
func (*KoorClusterSpec) DeepCopyInto ¶
func (in *KoorClusterSpec) DeepCopyInto(out *KoorClusterSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KoorClusterStatus ¶
type KoorClusterStatus struct {
// The total resources available in the cluster nodes
TotalResources Resources `json:"totalResources"`
// Does the cluster meet the minimum recommended resources
MeetsMinimumResources bool `json:"meetsMinimumResources"`
}
KoorClusterStatus defines the observed state of KoorCluster
func (*KoorClusterStatus) DeepCopy ¶
func (in *KoorClusterStatus) DeepCopy() *KoorClusterStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KoorClusterStatus.
func (*KoorClusterStatus) DeepCopyInto ¶
func (in *KoorClusterStatus) DeepCopyInto(out *KoorClusterStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Resources ¶
type Resources struct {
// The number of nodes in the cluster
Nodes *resource.Quantity `json:"nodesCount,omitempty"`
// Ephemeral Storage available
Storage *resource.Quantity `json:"storage,omitempty"`
// CPU cores available
Cpu *resource.Quantity `json:"cpu,omitempty"`
// Memory available
Memory *resource.Quantity `json:"memory,omitempty"`
}
func (*Resources) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Resources.
func (*Resources) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.