sizingconfig

package
v0.101.0 Latest Latest
Warning

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

Go to latest
Published: May 25, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package sizingconfig provides configuration management for resource sizing policies

Index

Constants

View Source
const (
	// SizeXSmall represents the x-small size designation
	SizeXSmall string = "x-small"
	// SizeSmall represents the small size designation
	SizeSmall string = "small"
	// SizeMedium represents the medium size designation
	SizeMedium string = "medium"
	// SizeLarge represents the large size designation
	SizeLarge string = "large"
	// SizeXLarge represents the x-large size designation
	SizeXLarge string = "x-large"
	// DefaultSizeVol is the default volume size when none is specified
	DefaultSizeVol = SizeXSmall
	// DefaultSizeCPURAM is the default CPU and memory size when none is specified
	DefaultSizeCPURAM = SizeXSmall
)

Variables

View Source
var CPUSizeToCapacity = map[string]string{
	SizeXSmall: "300m",
	SizeSmall:  "600m",
	SizeMedium: "1200m",
	SizeLarge:  "1800m",

	SizeXLarge: "2400m",
}

CPUSizeToCapacity maps CPU T-Shirt sizes to their capacities

LimitSizeToRequestSize maps request sizes to their corresponding limit sizes

View Source
var RAMSizeToCapacity = map[string]string{
	SizeXSmall: "512Mi",
	SizeSmall:  "1Gi",
	SizeMedium: "2Gi",
	SizeLarge:  "3Gi",
	SizeXLarge: "4Gi",
}

RAMSizeToCapacity maps RAM T-Shirt sizes to their capacities

View Source
var SizeIndex = map[string]int{
	SizeXSmall: 0,
	SizeSmall:  1,
	SizeMedium: 2,
	SizeLarge:  3,
	SizeXLarge: 4,
}

SizeIndex maps sizes to their numeric indices for comparison purposes

View Source
var VolSizeToCapacity = map[string]string{

	SizeXSmall: "1Gi",
	SizeSmall:  "2Gi",
	SizeMedium: "3Gi",
	SizeLarge:  "5Gi",
}

VolSizeToCapacity maps volume T-Shirt sizes to their capacities

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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