Documentation ¶
Index ¶
- Constants
- Variables
- func AddToCreateClusterRequest(sizes map[string]string, request *model.CreateClusterRequest) error
- func AddToCreateNodegroupsRequest(sizes map[string]string, request *model.CreateNodegroupsRequest) error
- func ApplyToCreateClusterRequest(size string, request *model.CreateClusterRequest) error
- func ApplyToPatchClusterSizeRequest(size string, request *model.PatchClusterSizeRequest) error
- func IsValidClusterSize(size string) bool
Constants ¶
View Source
const ( // SizeAlefDev is the definition of a cluster supporting dev purposes. SizeAlefDev = "SizeAlefDev" // SizeAlef500 is the key representing a cluster supporting 500 users. SizeAlef500 = "SizeAlef500" // SizeAlef1000 is the key representing a cluster supporting 1000 users. SizeAlef1000 = "SizeAlef1000" // SizeAlef5000 is the key representing a cluster supporting 5000 users. SizeAlef5000 = "SizeAlef5000" // SizeAlef10000 is the key representing a cluster supporting 10000 users. SizeAlef10000 = "SizeAlef10000" )
Variables ¶
View Source
var ValidSizes = map[string]size{ SizeAlefDev: sizeAlefDev, SizeAlef500: sizeAlef500, SizeAlef1000: sizeAlef1000, SizeAlef5000: sizeAlef5000, SizeAlef10000: sizeAlef10000, }
ValidSizes is a mapping of a size keyword to kops cluster configuration.
Functions ¶
func AddToCreateClusterRequest ¶ added in v0.71.0
func AddToCreateClusterRequest(sizes map[string]string, request *model.CreateClusterRequest) error
AddToCreateClusterRequest takes a map of size keywords and adds the corresponding values to a CreateClusterRequest.
func AddToCreateNodegroupsRequest ¶ added in v0.71.0
func AddToCreateNodegroupsRequest(sizes map[string]string, request *model.CreateNodegroupsRequest) error
AddToCreateNodegroupsRequest takes a map of size keywords and adds the corresponding values to a CreateNodegroupsRequest.
func ApplyToCreateClusterRequest ¶
func ApplyToCreateClusterRequest(size string, request *model.CreateClusterRequest) error
ApplyToCreateClusterRequest takes a size keyword and applies the corresponding cluster values to a CreateClusterRequest.
func ApplyToPatchClusterSizeRequest ¶
func ApplyToPatchClusterSizeRequest(size string, request *model.PatchClusterSizeRequest) error
ApplyToPatchClusterSizeRequest takes a size keyword and applies the corresponding cluster values to a PatchClusterSizeRequest.
func IsValidClusterSize ¶
IsValidClusterSize returns true if the given size string is supported.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.