Eks cmd now will prompt for region and profile only#106
Conversation
WalkthroughThe Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant EKSService
participant ConnProvider
participant AWSConfig
participant EKSClient
User->>EKSService: Run()
EKSService->>EKSService: HandleKubeconfigUpdate()
EKSService->>ConnProvider: GetDefaultRegion()
alt Region available
EKSService->>AWSConfig: LoadConfig(region, profile)
AWSConfig->>EKSService: Return config or error
EKSService->>EKSClient: ListClusters()
EKSClient->>EKSService: Return clusters or error
EKSService->>User: Prompt for cluster selection
else Region not available or error
EKSService->>User: Prompt for manual cluster input
end
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
Note 🎁 Summarized by CodeRabbit FreeYour organization is on the Free plan. CodeRabbit will generate a high-level summary and a walkthrough for each pull request. For a comprehensive line-by-line review, please upgrade your subscription to CodeRabbit Pro by visiting https://app.coderabbit.ai/login. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Join our Discord community for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Description
awsctl ekscommand now prompts for region and profile only when SSO is configured.Note: Profile selection has not been removed because multiple profiles may exist, and the EKS cluster is fetched dynamically based on the selected profile and region. If only one profile is available, it is automatically selected. If multiple profiles are configured, a list of available profiles is displayed for selection.
Summary by CodeRabbit
Refactor
Tests