-
Notifications
You must be signed in to change notification settings - Fork 4
feat: [ENG-2395] sf nodes create accepts the --any-zone flag for --auto nodes
#231
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Changed Files
|
Greptile OverviewGreptile SummaryThis PR introduces a new
The implementation follows established CLI patterns using Commander.js conflicts() and maintains consistency with the existing codebase structure. This feature is currently feature-flagged for internal testing and provides users with greater flexibility for cost optimization and availability. Important Files Changed
Confidence score: 4/5
Sequence DiagramsequenceDiagram
participant User
participant CLI
participant PostHog
participant NodesClient as "Nodes SDK Client"
participant API as "SF Compute API"
User->>CLI: "sf nodes create --auto --any-zone -n 1 --max-price 12.50"
CLI->>PostHog: "Check feature flag 'custom-vm-images'"
PostHog-->>CLI: "Feature flag status"
CLI->>CLI: "Validate command options and arguments"
CLI->>CLI: "Hook preAction: validate any-zone with auto flag"
CLI->>NodesClient: "Create nodes client instance"
NodesClient-->>CLI: "Client ready"
CLI->>CLI: "Build NodeCreateParams with any_zone=true"
User->>CLI: "Confirm node creation"
CLI->>NodesClient: "nodes.create(createParams)"
NodesClient->>API: "POST /nodes with any_zone=true"
API-->>NodesClient: "Created nodes response"
NodesClient-->>CLI: "Nodes creation result"
CLI->>CLI: "Display success message and nodes table"
CLI->>User: "Show created nodes and next steps"
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
4 files reviewed, 2 comments
andreaanez
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
be3b97a to
2ac4c0b
Compare
Allows users to specify a colocation strategy of
anywhereon their auto-reserved nodes if they don't care about which zone matching their requirements they land on each hour.Currently this flag is feature flagged for internal testing.