validation

package
v0.0.0-...-108fdf7 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MinMaxMemoryPercentage = 0.8
)

Variables

View Source
var (
	MinMemoryLimits        = resource.NewQuantity(1<<25, resource.BinarySI)
	WarningMinMemoryLimits = resource.NewQuantity(1<<27, resource.BinarySI)
	WarningMaxMemoryLimits = resource.NewQuantity(1<<35, resource.BinarySI)
)

Functions

func ValidateActiveRedisService

func ValidateActiveRedisService(f bool, serviceID *int32, warns *admission.Warnings) (err error)

func ValidateClusterScalingResource

func ValidateClusterScalingResource(shards int32, resReq *corev1.ResourceRequirements, datasets []int64, warns *admission.Warnings) (err error)

ValidateClusterScaling validates the scaling of a cluster

func ValidatePasswordSecret

func ValidatePasswordSecret(namespace, secretName string, mgrClient client.Client, warns *admission.Warnings) error

func ValidateReplicationScalingResource

func ValidateReplicationScalingResource(resReq *corev1.ResourceRequirements, datasets int64, warns *admission.Warnings) (err error)

ValidateReplicationScaling validates the scaling of a single replication

Types

This section is empty.

Jump to

Keyboard shortcuts

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