Skip to content

Commit aea6ef8

Browse files
author
Dongsu Park
authored
Support Flatcar in Packet cloud provider (#802)
To allow Flatcar to be used as one of the operating systems, we need to update `getNameForOS()` so it also accepts the input value `flatcar` in `operatingSystem` of the provider config. Signed-off-by: Dongsu Park <[email protected]>
1 parent 3a1878b commit aea6ef8

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

pkg/cloudprovider/provider/packet/provider.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -429,6 +429,8 @@ func getNameForOS(os providerconfigtypes.OperatingSystem) (string, error) {
429429
return "centos_7", nil
430430
case providerconfigtypes.OperatingSystemCoreos:
431431
return "coreos_stable", nil
432+
case providerconfigtypes.OperatingSystemFlatcar:
433+
return "flatcar_stable", nil
432434
}
433435
return "", providerconfigtypes.ErrOSNotSupported
434436
}

test/e2e/provisioning/all_e2e_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ func TestPacketProvisioningE2E(t *testing.T) {
371371
t.Fatal("unable to run the test suite, PACKET_PROJECT_ID environment variable cannot be empty")
372372
}
373373

374-
selector := Not(OsSelector("sles", "rhel", "flatcar"))
374+
selector := Not(OsSelector("sles", "rhel"))
375375

376376
// act
377377
params := []string{

0 commit comments

Comments
 (0)