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
View Source
var LimitSizeToRequestSize = map[string]string{ SizeXSmall: SizeSmall, SizeSmall: SizeMedium, SizeMedium: SizeLarge, SizeLarge: SizeXLarge, }
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.
Click to show internal directories.
Click to hide internal directories.