Skip to content

fix(sfcompute-v2): update sfc-go, adopt capacities -> pools rename#5

Open
Sladuca wants to merge 3 commits into
mainfrom
seb/sfcompute-v2-pools-rename
Open

fix(sfcompute-v2): update sfc-go, adopt capacities -> pools rename#5
Sladuca wants to merge 3 commits into
mainfrom
seb/sfcompute-v2-pools-rename

Conversation

@Sladuca

@Sladuca Sladuca commented Jun 26, 2026

Copy link
Copy Markdown

This PR makes two updates to the sfcompute-v2 provider, which is built against our preview v2 API.

  1. We made some breaking schema changes to fields that brev doesn't use, but sfc-go would fail deserializing. We separately pushed an update to sfc-go - this PR updates to the new version.
  2. We renamed Capacities to Pools. While this is not breaking (we still support the old name), we can take the opportunity here to adopt the new naming.

Sladuca and others added 2 commits June 26, 2026 12:33
sfc-go renamed the Capacities resource to Pools (capResp.PoolResponse,
client.Pools.Fetch) and the instance create/list filter field from
capacity to pool (ListInstancesRequest.Pool is now a repeatable []string).
Update the V2 integration to the new SDK shape.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The pool rename also changed the resource-path prefix from sfc:capacity:
to sfc:pool:. Update GetDefaultPoolResourcePath (renamed from
GetDefaultCapacityResourcePath) so the path the API receives is valid.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@semanticdiff-com

semanticdiff-com Bot commented Jun 26, 2026

Copy link
Copy Markdown

Review changes with  SemanticDiff

Changed Files
File Status
  go.mod Unsupported file format
  go.sum Unsupported file format
  v1/providers/sfcomputev2/brev_constants.go  0% smaller
  v1/providers/sfcomputev2/instance.go  0% smaller
  v1/providers/sfcomputev2/instancetype.go  0% smaller

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@Sladuca Sladuca changed the title feat(sfcompute-v2): adopt sfc-go Capacities to Pools rename feat(sfcompute-v2): update sfc-go, adopt sfc-go Capacities to Pools rename Jun 26, 2026
@Sladuca Sladuca changed the title feat(sfcompute-v2): update sfc-go, adopt sfc-go Capacities to Pools rename fix(sfcompute-v2): update sfc-go, adopt capacities -> pools rename Jun 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant