Documentation ¶
Index ¶
- Constants
- func BuildAutoscalerOptions(spec *ocm.AutoscalerConfig, prefix string) string
- func CreateAutoscalerConfig(args *AutoscalerArgs) (*ocm.AutoscalerConfig, error)
- func IsAutoscalerSetViaCLI(cmd *pflag.FlagSet, prefix string) bool
- func IsAutoscalerSupported(runtime *rosa.Runtime, cluster *cmv1.Cluster) error
- func PrintAutoscaler(a *cmv1.ClusterAutoscaler) string
- type AutoscalerArgs
- func AddClusterAutoscalerFlags(cmd *cobra.Command, prefix string) *AutoscalerArgs
- func GetAutoscalerOptions(cmd *pflag.FlagSet, prefix string, confirmBeforeAllArgs bool, ...) (*AutoscalerArgs, error)
- func PrefillAutoscalerArgs(cmd *cobra.Command, autoscalerArgs *AutoscalerArgs, ...) (*AutoscalerArgs, error)
- type ResourceLimits
- type ResourceRange
- type ScaleDownConfig
Constants ¶
View Source
const ( NoHCPAutoscalerSupportMessage = "Hosted Control Plane clusters do not support cluster-autoscaler configuration" ClusterNotReadyMessage = "Cluster '%s' is not yet ready. Current state is '%s'" )
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)
func IsAutoscalerSupported ¶ added in v1.2.38
func PrintAutoscaler ¶ added in v1.2.38
func PrintAutoscaler(a *cmv1.ClusterAutoscaler) string
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)
func PrefillAutoscalerArgs ¶ added in v1.2.45
func PrefillAutoscalerArgs(cmd *cobra.Command, autoscalerArgs *AutoscalerArgs, autoscaler *cmv1.ClusterAutoscaler) (*AutoscalerArgs, error)
PrefillAutoscalerArgs prefill autoscaler args from existing autoscaler in edit flow
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.