clusterconfig

package
v0.0.0-...-2c83561 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UnknownSize ClusterSize = iota
	Evaluation
	Production

	ProductionClusterCpuThreshold      int64 = 5
	ProductionClusterMemoryThresholdGi int64 = 10
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterSize

type ClusterSize int

func EvaluateClusterSize

func EvaluateClusterSize(ctx context.Context, k8sClient client.Client) (ClusterSize, error)

EvaluateClusterSize counts the entire capacity of cpu and memory in the cluster and returns Evaluation if the total capacity of any of the resources is lower than ProductionClusterCpuThreshold or ProductionClusterMemoryThresholdGi

func (ClusterSize) String

func (s ClusterSize) String() string

Jump to

Keyboard shortcuts

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