Documentation
¶
Index ¶
- func RefreshCurrentSize(ctx context.Context, c client.Client, log logr.Logger, req *ctrl.Request, ...) error
- func ReportScalingOperation(ctx context.Context, c client.Client, log logr.Logger, req *ctrl.Request, ...) error
- func SetSelector(ctx context.Context, c client.Client, log logr.Logger, req *ctrl.Request) error
- func UpdateCondition(ctx context.Context, clnt client.Client, log logr.Logger, req *ctrl.Request, ...) error
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.
Click to show internal directories.
Click to hide internal directories.