Skip to content

Commit 9cb909a

Browse files
authored
feat(BREV-1640): Make Cloud Implementations Public (#35)
* feat(BREV-1640): Make Cloud Implementations Public * fix bad import * consolidate providers * fix github actions * go 1.24 * add json flag to shadeform credential * hardcode nvidia manufacturer * hardcode supported storage * omit instance type id * convert pem keys automatically * add http error to create instance failure * add http error to ssh key failure * include instancetypeid when returning created instance * honor new instance and instance type on update, not the old * use public IP as public DNS * comment * openapi upgrade shadeform * clean gpu name, add cloud broker
1 parent a83ca1e commit 9cb909a

328 files changed

Lines changed: 257 additions & 112 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/validation-lambdalabs.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ on:
88
# Allow manual triggering
99
pull_request:
1010
paths:
11-
- 'internal/lambdalabs/**'
11+
- 'v1/providers/lambdalabs/**'
1212
- 'internal/validation/**'
13-
- 'pkg/v1/**'
13+
- 'v1/**'
1414
branches: [ main ]
1515

1616
jobs:
@@ -47,7 +47,7 @@ jobs:
4747
TEST_PUBLIC_KEY_BASE64: ${{ secrets.TEST_PUBLIC_KEY_BASE64 }}
4848
VALIDATION_TEST: true
4949
run: |
50-
cd internal/lambdalabs
50+
cd v1/providers/lambdalabs
5151
go test -v -short=false -timeout=30m ./...
5252
5353
- name: Upload test results
@@ -56,4 +56,4 @@ jobs:
5656
with:
5757
name: lambdalabs-validation-results
5858
path: |
59-
internal/lambdalabs/coverage.out
59+
v1/providers/lambdalabs/coverage.out

.github/workflows/validation-shadeform.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ on:
88
# Allow manual triggering
99
pull_request:
1010
paths:
11-
- 'internal/shadeform/**'
11+
- 'v1/providers/shadeform/**'
1212
- 'internal/validation/**'
13-
- 'pkg/v1/**'
13+
- 'v1/**'
1414
branches: [ main ]
1515

1616
jobs:
@@ -47,7 +47,7 @@ jobs:
4747
TEST_PUBLIC_KEY_BASE64: ${{ secrets.TEST_PUBLIC_KEY_BASE64 }}
4848
VALIDATION_TEST: true
4949
run: |
50-
cd internal/shadeform
50+
cd v1/providers/shadeform
5151
go test -v -short=false -timeout=30m ./...
5252
5353
- name: Upload test results
@@ -56,4 +56,4 @@ jobs:
5656
with:
5757
name: shadeform-validation-results
5858
path: |
59-
internal/shadeform/coverage.out
59+
v1/providers/shadeform/coverage.out

go.mod

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
module github.com/brevdev/cloud
22

3-
go 1.25.0
3+
go 1.24.0
4+
5+
toolchain go1.24.6
46

57
require (
68
github.com/alecthomas/units v0.0.0-20240927000941-0f3dac36c52b
File renamed without changes.

internal/validation/suite.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import (
55
"testing"
66
"time"
77

8-
"github.com/brevdev/cloud/pkg/ssh"
9-
v1 "github.com/brevdev/cloud/pkg/v1"
8+
"github.com/brevdev/cloud/internal/ssh"
9+
"github.com/brevdev/cloud/v1"
1010
"github.com/stretchr/testify/require"
1111
)
1212

File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)