autonode

package
v1.2.59 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 18, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// AutoNodeFlagName is the flag name for enabling/configuring AutoNode
	AutoNodeFlagName = "autonode"
	// AutoNodeIAMRoleArnFlagName is the flag name for the AutoNode IAM role ARN
	AutoNodeIAMRoleArnFlagName = "autonode-iam-role-arn"
)

Variables

This section is empty.

Functions

func DetermineAutoNodeMode

func DetermineAutoNodeMode(autoNodeChanged bool, flagValue string) string

DetermineAutoNodeMode determines the AutoNode mode to set

func ValidateAutoNodeConfiguration

func ValidateAutoNodeConfiguration(autoNodeChanged, roleArnChanged, currentEnabled bool, roleArnValue string) error

ValidateAutoNodeConfiguration validates the overall AutoNode configuration state

func ValidateAutoNodeValue

func ValidateAutoNodeValue(value string) error

ValidateAutoNodeValue validates the autonode flag value

func ValidateRoleARN

func ValidateRoleARN(roleArn string) error

ValidateRoleARN validates the IAM role ARN format

Types

type AutoNodeConfig

type AutoNodeConfig struct {
	// Input parameters
	AutoNodeFlag string // Value from --autonode flag
	RoleARNFlag  string // Value from --autonode-iam-role-arn flag

	// Output values
	AutoNodeMode    string // AutoNode mode to set (e.g., "enabled")
	AutoNodeRoleARN string // IAM role ARN to use
}

AutoNodeConfig holds AutoNode configuration parameters and results

func InteractivePrompt

func InteractivePrompt(r *rosa.Runtime, cmd *cobra.Command, cluster *cmv1.Cluster) (*AutoNodeConfig, error)

InteractivePrompt handles interactive mode for AutoNode configuration

func SetAutoNode

func SetAutoNode(r *rosa.Runtime, cmd *cobra.Command, cluster *cmv1.Cluster, flagValue string, roleArnValue string) (*AutoNodeConfig, error)

SetAutoNode validates and sets AutoNode configuration for a cluster

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL