From 565f86675268da3fdb815f6229c5923f4c1c8c16 Mon Sep 17 00:00:00 2001 From: Brian Lechthaler Date: Tue, 17 Feb 2026 15:51:23 -0800 Subject: [PATCH 1/2] add richmond region to stable types --- v1/providers/sfcompute/validation_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/v1/providers/sfcompute/validation_test.go b/v1/providers/sfcompute/validation_test.go index 196c7397..03d1609e 100644 --- a/v1/providers/sfcompute/validation_test.go +++ b/v1/providers/sfcompute/validation_test.go @@ -18,6 +18,7 @@ func TestValidationFunctions(t *testing.T) { StableIDs: []v1.InstanceTypeID{ "hayesvalley-noSub-h100", "yerba-noSub-h100", + "richmond-noSub-h100", }, } From e028b711694799606f5a839a29b6d8d2c3c72505 Mon Sep 17 00:00:00 2001 From: Brian Lechthaler Date: Tue, 17 Feb 2026 15:51:51 -0800 Subject: [PATCH 2/2] don't restrict which zones can be used, allow all zones --- v1/providers/sfcompute/instancetype.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/v1/providers/sfcompute/instancetype.go b/v1/providers/sfcompute/instancetype.go index 6858e93f..1b7a154e 100644 --- a/v1/providers/sfcompute/instancetype.go +++ b/v1/providers/sfcompute/instancetype.go @@ -3,7 +3,6 @@ package v1 import ( "context" "fmt" - "slices" "strings" "time" @@ -24,8 +23,6 @@ const ( diskTypeSSD = "ssd" ) -var allowedZones = []string{"hayesvalley", "yerba"} - func makeDefaultInstanceTypePrice(amount string, currencyCode string) currency.Amount { instanceTypePrice, err := currency.NewAmount(amount, currencyCode) if err != nil { @@ -186,10 +183,6 @@ func (c *SFCClient) getZones(ctx context.Context, includeUnavailable bool) ([]sf zones := make([]sfcnodes.ZoneListResponseData, 0, len(resp.Data)) for _, zone := range resp.Data { - // 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 {