v1alpha1

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 28, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the autoscaling v1alpha1 API group +kubebuilder:object:generate=true +groupName=autoscaling.gardener.cloud

Index

Constants

This section is empty.

Variables

View Source
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

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PersistentVolumeClaimAutoscaler.

func (*PersistentVolumeClaimAutoscaler) DeepCopyInto

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

ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type

func (*PersistentVolumeClaimAutoscaler) ValidateDelete

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

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PersistentVolumeClaimAutoscalerList.

func (*PersistentVolumeClaimAutoscalerList) DeepCopyInto

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

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PersistentVolumeClaimAutoscalerSpec.

func (*PersistentVolumeClaimAutoscalerSpec) DeepCopyInto

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

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PersistentVolumeClaimAutoscalerStatus.

func (*PersistentVolumeClaimAutoscalerStatus) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL