Documentation ¶
Index ¶
- func BuildAutoscalerOptions(spec *ocm.AutoscalerConfig, prefix string) string
- func CreateAutoscalerConfig(args *AutoscalerArgs) (*ocm.AutoscalerConfig, error)
- func IsAutoscalerSetViaCLI(cmd *pflag.FlagSet, prefix string) bool
- type AutoscalerArgs
- type ResourceLimits
- type ResourceRange
- type ScaleDownConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildAutoscalerOptions ¶
func BuildAutoscalerOptions(spec *ocm.AutoscalerConfig, prefix string) string
func CreateAutoscalerConfig ¶
func CreateAutoscalerConfig(args *AutoscalerArgs) (*ocm.AutoscalerConfig, error)
Types ¶
type AutoscalerArgs ¶
type AutoscalerArgs struct { BalanceSimilarNodeGroups bool SkipNodesWithLocalStorage bool LogVerbosity int MaxPodGracePeriod int PodPriorityThreshold int IgnoreDaemonsetsUtilization bool MaxNodeProvisionTime string BalancingIgnoredLabels []string ResourceLimits ResourceLimits ScaleDown ScaleDownConfig }
func AddClusterAutoscalerFlags ¶
func AddClusterAutoscalerFlags(cmd *cobra.Command, prefix string) *AutoscalerArgs
func GetAutoscalerOptions ¶
func GetAutoscalerOptions( cmd *pflag.FlagSet, prefix string, confirmBeforeAllArgs bool, autoscalerArgs *AutoscalerArgs, ) (*AutoscalerArgs, error)
type ResourceLimits ¶
type ResourceLimits struct { MaxNodesTotal int Cores ResourceRange Memory ResourceRange GPULimits []string }
type ResourceRange ¶
Click to show internal directories.
Click to hide internal directories.