Documentation
¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the autoscaling v1alpha1 API group +kubebuilder:object:generate=true +groupName=autoscaling.gardener.cloud
Index ¶
- Variables
- type PersistentVolumeClaimAutoscaler
- func (in *PersistentVolumeClaimAutoscaler) DeepCopy() *PersistentVolumeClaimAutoscaler
- func (in *PersistentVolumeClaimAutoscaler) DeepCopyInto(out *PersistentVolumeClaimAutoscaler)
- func (in *PersistentVolumeClaimAutoscaler) DeepCopyObject() runtime.Object
- func (r *PersistentVolumeClaimAutoscaler) Default(ctx context.Context, obj runtime.Object) error
- func (obj *PersistentVolumeClaimAutoscaler) SetCondition(ctx context.Context, klient client.Client, condition metav1.Condition) error
- func (r *PersistentVolumeClaimAutoscaler) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *PersistentVolumeClaimAutoscaler) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (r *PersistentVolumeClaimAutoscaler) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (r *PersistentVolumeClaimAutoscaler) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
- type PersistentVolumeClaimAutoscalerList
- type PersistentVolumeClaimAutoscalerSpec
- type PersistentVolumeClaimAutoscalerStatus
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "autoscaling.gardener.cloud", 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 PersistentVolumeClaimAutoscaler ¶
type PersistentVolumeClaimAutoscaler struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec PersistentVolumeClaimAutoscalerSpec `json:"spec,omitempty"` Status PersistentVolumeClaimAutoscalerStatus `json:"status,omitempty"` }
PersistentVolumeClaimAutoscaler is the Schema for the persistentvolumeclaimautoscalers API
func (*PersistentVolumeClaimAutoscaler) DeepCopy ¶
func (in *PersistentVolumeClaimAutoscaler) DeepCopy() *PersistentVolumeClaimAutoscaler
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PersistentVolumeClaimAutoscaler.
func (*PersistentVolumeClaimAutoscaler) DeepCopyInto ¶
func (in *PersistentVolumeClaimAutoscaler) DeepCopyInto(out *PersistentVolumeClaimAutoscaler)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PersistentVolumeClaimAutoscaler) DeepCopyObject ¶
func (in *PersistentVolumeClaimAutoscaler) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*PersistentVolumeClaimAutoscaler) Default ¶
Default implements webhook.CustomDefaulter so a webhook will be registered for the type
func (*PersistentVolumeClaimAutoscaler) SetCondition ¶
func (obj *PersistentVolumeClaimAutoscaler) SetCondition(ctx context.Context, klient client.Client, condition metav1.Condition) error
SetCondition sets the given metav1.Condition for the object.
func (*PersistentVolumeClaimAutoscaler) SetupWebhookWithManager ¶
func (r *PersistentVolumeClaimAutoscaler) SetupWebhookWithManager(mgr ctrl.Manager) error
SetupWebhookWithManager will setup the manager to manage the webhooks
func (*PersistentVolumeClaimAutoscaler) ValidateCreate ¶
func (r *PersistentVolumeClaimAutoscaler) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type
func (*PersistentVolumeClaimAutoscaler) ValidateDelete ¶
func (r *PersistentVolumeClaimAutoscaler) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the type
func (*PersistentVolumeClaimAutoscaler) ValidateUpdate ¶
func (r *PersistentVolumeClaimAutoscaler) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
ValidateUpdate implements webhook.CustomValidator so a webhook will be registered for the type
type PersistentVolumeClaimAutoscalerList ¶
type PersistentVolumeClaimAutoscalerList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []PersistentVolumeClaimAutoscaler `json:"items"` }
PersistentVolumeClaimAutoscalerList contains a list of PersistentVolumeClaimAutoscaler
func (*PersistentVolumeClaimAutoscalerList) DeepCopy ¶
func (in *PersistentVolumeClaimAutoscalerList) DeepCopy() *PersistentVolumeClaimAutoscalerList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PersistentVolumeClaimAutoscalerList.
func (*PersistentVolumeClaimAutoscalerList) DeepCopyInto ¶
func (in *PersistentVolumeClaimAutoscalerList) DeepCopyInto(out *PersistentVolumeClaimAutoscalerList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PersistentVolumeClaimAutoscalerList) DeepCopyObject ¶
func (in *PersistentVolumeClaimAutoscalerList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PersistentVolumeClaimAutoscalerSpec ¶
type PersistentVolumeClaimAutoscalerSpec struct { // IncreaseBy specifies an increase by percentage value (e.g. 10%, 20%, // etc.) by which the Persistent Volume Claim storage will be resized. IncreaseBy string `json:"increaseBy,omitempty"` // Threshold specifies the threshold value in percentage (e.g. 10%, 20%, // etc.) for the PVC. Once the available capacity (free space) for the // PVC reaches or drops below the specified threshold this will trigger // a resize operation by the controller. Threshold string `json:"threshold,omitempty"` // MaxCapacity specifies the maximum capacity up to which a PVC is // allowed to be extended. The max capacity is specified as a // [k8s.io/apimachinery/pkg/api/resource.Quantity] value. MaxCapacity resource.Quantity `json:"maxCapacity,omitempty"` // ScaleTargetRef specifies the reference to the PVC which will be // managed by the controller. ScaleTargetRef corev1.LocalObjectReference `json:"scaleTargetRef,omitempty"` }
PersistentVolumeClaimAutoscalerSpec defines the desired state of PersistentVolumeClaimAutoscaler
func (*PersistentVolumeClaimAutoscalerSpec) DeepCopy ¶
func (in *PersistentVolumeClaimAutoscalerSpec) DeepCopy() *PersistentVolumeClaimAutoscalerSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PersistentVolumeClaimAutoscalerSpec.
func (*PersistentVolumeClaimAutoscalerSpec) DeepCopyInto ¶
func (in *PersistentVolumeClaimAutoscalerSpec) DeepCopyInto(out *PersistentVolumeClaimAutoscalerSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PersistentVolumeClaimAutoscalerStatus ¶
type PersistentVolumeClaimAutoscalerStatus struct { // LastCheck specifies the last time the PVC was checked by the controller. LastCheck metav1.Time `json:"lastCheck,omitempty"` // NextCheck specifies the next scheduled check of the PVC by the // controller. NextCheck metav1.Time `json:"nextCheck,omitempty"` // UsedSpacePercentage specifies the last observed used space of the PVC // as a percentage. UsedSpacePercentage string `json:"usedSpacePercentage,omitempty"` // FreeSpacePercentage specifies the last observed free space of the PVC // as a percentage. FreeSpacePercentage string `json:"freeSpacePercentage,omitempty"` // UsedInodesPercentage specifies the last observed used inodes of the // PVC as a percentage. UsedInodesPercentage string `json:"usedInodesPercentage,omitempty"` // FreeInodesPercentage specifies the last observed free inodes of the // PVC as a percentage. FreeInodesPercentage string `json:"freeInodesPercentage,omitempty"` // PrevSize specifies the previous .status.capacity.storage value of the // PVC, just before resizing it. PrevSize resource.Quantity `json:"prevSize,omitempty"` // NewSize specifies the new size to which the PVC will be resized. NewSize resource.Quantity `json:"newSize,omitempty"` // Conditions specifies the status conditions. Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,1,rep,name=conditions"` }
PersistentVolumeClaimAutoscalerStatus defines the observed state of PersistentVolumeClaimAutoscaler
func (*PersistentVolumeClaimAutoscalerStatus) DeepCopy ¶
func (in *PersistentVolumeClaimAutoscalerStatus) DeepCopy() *PersistentVolumeClaimAutoscalerStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PersistentVolumeClaimAutoscalerStatus.
func (*PersistentVolumeClaimAutoscalerStatus) DeepCopyInto ¶
func (in *PersistentVolumeClaimAutoscalerStatus) DeepCopyInto(out *PersistentVolumeClaimAutoscalerStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.