vas

package
v1.11.3 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

Types

type RefreshCurrentSizeReconciler

type RefreshCurrentSizeReconciler struct {
	VRec *VerticaAutoscalerReconciler
	Vas  *vapi.VerticaAutoscaler
}

RefreshCurrentSizeReconciler will refresh the currentSize status field in the CR.

func (*RefreshCurrentSizeReconciler) Reconcile

Reconcile will handle updating the currentSize in the status field

type RefreshSelectorReconciler

type RefreshSelectorReconciler struct {
	VRec *VerticaAutoscalerReconciler
	Vas  *vapi.VerticaAutoscaler
}

RefreshSelectorReconciler is a reconciler to update the pod selector in the status field

func (*RefreshSelectorReconciler) Reconcile

Reconcile will handle updating the selector in the status portion of a VerticaAutoscaler

type SubclusterResizeReconciler

type SubclusterResizeReconciler struct {
	VRec *VerticaAutoscalerReconciler
	Vas  *vapi.VerticaAutoscaler
	Vdb  *vapi.VerticaDB
}

SubclusterResizeReconciler will grow/shrink existing subclusters based on the target pod count in the CR.

func (*SubclusterResizeReconciler) Reconcile

Reconcile will grow/shrink an existing subcluste based on the target pod count

type SubclusterScaleReconciler

type SubclusterScaleReconciler struct {
	VRec *VerticaAutoscalerReconciler
	Vas  *vapi.VerticaAutoscaler
	Vdb  *vapi.VerticaDB
}

SubclusterScaleReconciler will scale a VerticaDB by adding or removing subclusters.

func (*SubclusterScaleReconciler) Reconcile

Reconcile will grow/shrink the VerticaDB passed on the target pod count.

type TargetSizeInitializerReconciler

type TargetSizeInitializerReconciler struct {
	VRec *VerticaAutoscalerReconciler
	Vas  *vapi.VerticaAutoscaler
}

func (*TargetSizeInitializerReconciler) Reconcile

Reconcile will update the targetSize in a Vas if not already initialized

type VDBVerifyReconciler

type VDBVerifyReconciler struct {
	VRec *VerticaAutoscalerReconciler
	Vas  *vapi.VerticaAutoscaler
	Vdb  *vapi.VerticaDB
}

VDBVerifyReconciler will verify the VerticaDB in the VAS CR exists

func (*VDBVerifyReconciler) Reconcile

func (s *VDBVerifyReconciler) Reconcile(ctx context.Context, _ *ctrl.Request) (ctrl.Result, error)

Reconcile will verify the VerticaDB in the VAS CR exists

type VerticaAutoscalerReconciler

type VerticaAutoscalerReconciler struct {
	client.Client
	Scheme *runtime.Scheme
	Log    logr.Logger
	EVRec  record.EventRecorder
}

VerticaAutoscalerReconciler reconciles a VerticaAutoscaler object

func (*VerticaAutoscalerReconciler) Reconcile

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.11.0/pkg/reconcile

func (*VerticaAutoscalerReconciler) SetupWithManager

func (r *VerticaAutoscalerReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

Jump to

Keyboard shortcuts

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