Skip to content

Commit 4f8f16a

Browse files
Merge pull request #40 from chickenkiller/feat/enable-arm
Enable arm architecture
2 parents e2fcb61 + a27716b commit 4f8f16a

File tree

2 files changed

+0
-19
lines changed

2 files changed

+0
-19
lines changed

provider/provider.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,6 @@ type azureProvider struct {
5555

5656
// CreateInstance creates a new compute instance in the provider.
5757
func (a *azureProvider) CreateInstance(ctx context.Context, bootstrapParams params.BootstrapInstance) (params.ProviderInstance, error) {
58-
if bootstrapParams.OSArch != params.Amd64 {
59-
// x86_64 only for now. Azure does seem to support arm64, which we will look at at a later time.
60-
return params.ProviderInstance{}, fmt.Errorf("invalid architecture %s (supported: %s)", bootstrapParams.OSArch, params.Amd64)
61-
}
62-
6358
runnerSpec, err := spec.GetRunnerSpecFromBootstrapParams(bootstrapParams, a.controllerID, a.cfg)
6459
if err != nil {
6560
return params.ProviderInstance{}, fmt.Errorf("failed to generate spec: %w", err)

provider/provider_test.go

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -186,20 +186,6 @@ func TestCreateInstance(t *testing.T) {
186186
},
187187
errString: "",
188188
},
189-
{
190-
name: "invalid architecture",
191-
respCodeSKU: 200,
192-
respCodeRG: 200,
193-
respCodePubIP: 200,
194-
respCodeSG: 200,
195-
respCodeVNet: 200,
196-
respCodeSubNet: 200,
197-
respCodeNIC: 200,
198-
respCodeVM: 200,
199-
osArch: params.Arm,
200-
expected: params.ProviderInstance{},
201-
errString: "invalid architecture",
202-
},
203189
{
204190
name: "failed to get max ephemeral disk size",
205191
respCodeSKU: 404,

0 commit comments

Comments
 (0)