Documentation
¶
Index ¶
- Constants
- func DetermineAutoNodeMode(autoNodeChanged bool, flagValue string) string
- func ValidateAutoNodeConfiguration(autoNodeChanged, roleArnChanged, currentEnabled bool, roleArnValue string) error
- func ValidateAutoNodeValue(value string) error
- func ValidateRoleARN(roleArn string) error
- type AutoNodeConfig
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" AutoNodeModeEnabled = "enabled" )
Variables ¶
This section is empty.
Functions ¶
func DetermineAutoNodeMode ¶
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 ¶
ValidateAutoNodeValue validates the autonode flag value
func ValidateRoleARN ¶
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
Click to show internal directories.
Click to hide internal directories.