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
- func PrintHypershiftAutoscaler(a *cmv1.ClusterAutoscaler) string
- func ValidateAutoscalerFlagsForHostedCp(prefix string, cmd *cobra.Command) (bool, error)
- 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 AutoscalerValidationArgs
- type ResourceLimits
- type ResourceRange
- type ScaleDownConfig
Constants ¶
View Source
const ( ClusterNotReadyMessage = "Cluster '%s' is not yet ready. Current state is '%s'" HcpError = "Unable to use flag '%s' when editing a Hosted Control Plane cluster autoscaler.\n" + "Supported flags are: '%s', '%s', '%s', '%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
func PrintHypershiftAutoscaler ¶ added in v1.2.51
func PrintHypershiftAutoscaler(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, autoscalerValidationArgs *AutoscalerValidationArgs) (*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 AutoscalerValidationArgs ¶ added in v1.2.50
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.