Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions v1/providers/sfcompute/instancetype.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import (
"context"
"fmt"
"slices"
"strings"
"time"

Expand All @@ -24,8 +23,6 @@
diskTypeSSD = "ssd"
)

var allowedZones = []string{"hayesvalley", "yerba"}

func makeDefaultInstanceTypePrice(amount string, currencyCode string) currency.Amount {
instanceTypePrice, err := currency.NewAmount(amount, currencyCode)
if err != nil {
Expand Down Expand Up @@ -185,11 +182,7 @@
}

zones := make([]sfcnodes.ZoneListResponseData, 0, len(resp.Data))
for _, zone := range resp.Data {

Check failure on line 185 in v1/providers/sfcompute/instancetype.go

View workflow job for this annotation

GitHub Actions / Test and Lint

unnecessary leading newline (whitespace)
// If the zone is not allowed, skip it
if !slices.Contains(allowedZones, strings.ToLower(zone.Name)) {
continue
}

// If the there is no available capacity, and skip it
if len(zone.AvailableCapacity) == 0 && !includeUnavailable {
Expand Down
1 change: 1 addition & 0 deletions v1/providers/sfcompute/validation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ func TestValidationFunctions(t *testing.T) {
StableIDs: []v1.InstanceTypeID{
"hayesvalley-noSub-h100",
"yerba-noSub-h100",
"richmond-noSub-h100",
},
}

Expand Down
Loading