vasstatus

package
v1.11.2 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RefreshCurrentSize

func RefreshCurrentSize(ctx context.Context, c client.Client, log logr.Logger, req *ctrl.Request, currentSize int32) error

RefreshCurrentSize sets the current size in the VerticaAutoscaler

func ReportScalingOperation

func ReportScalingOperation(ctx context.Context, c client.Client, log logr.Logger, req *ctrl.Request, currentSize int32) error

ReportScalingOperation bumps up the count in the status field about the number of times we have scaled the VerticaDB. This is intended to be called each time we change the pod count up or down.

func SetSelector

func SetSelector(ctx context.Context, c client.Client, log logr.Logger, req *ctrl.Request) error

func UpdateCondition

func UpdateCondition(ctx context.Context, clnt client.Client, log logr.Logger,
	req *ctrl.Request, condition vapi.VerticaAutoscalerCondition) error

UpdateCondition will update a condition status. This is a no-op if the status condition is already set.

Types

This section is empty.

Jump to

Keyboard shortcuts

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