@@ -119,6 +119,12 @@ var (
119119 // The AWS marketplace ID from RedHat
120120 owner : "309956199498" ,
121121 },
122+ providerconfigtypes .OperatingSystemFlatcar : {
123+ // Be as precise as possible - otherwise we might get a nightly dev build
124+ description : "Flatcar Container Linux stable 2345.3.1 (HVM)" ,
125+ // The AWS marketplace ID from AWS
126+ owner : "075585003325" ,
127+ },
122128 }
123129
124130 // cacheLock protects concurrent cache misses against a single key. This usually happens when multiple machines get created simultaneously
@@ -237,6 +243,8 @@ func getDefaultRootDevicePath(os providerconfigtypes.OperatingSystem) (string, e
237243 return rootDevicePathCoreOSSLES , nil
238244 case providerconfigtypes .OperatingSystemRHEL :
239245 return rootDevicePathUbuntuCentOSRHEL , nil
246+ case providerconfigtypes .OperatingSystemFlatcar :
247+ return rootDevicePathCoreOSSLES , nil
240248 }
241249
242250 return "" , fmt .Errorf ("no default root path found for %s operating system" , os )
@@ -489,8 +497,9 @@ func (p *provider) Create(machine *v1alpha1.Machine, data *cloudprovidertypes.Pr
489497 }
490498 }
491499
492- if pc .OperatingSystem != providerconfigtypes .OperatingSystemCoreos {
493- // Gzip the userdata in case we don't use CoreOS.
500+ if pc .OperatingSystem != providerconfigtypes .OperatingSystemCoreos &&
501+ pc .OperatingSystem != providerconfigtypes .OperatingSystemFlatcar {
502+ // Gzip the userdata in case we don't use CoreOS and Flatcar
494503 userdata , err = convert .GzipString (userdata )
495504 if err != nil {
496505 return nil , fmt .Errorf ("failed to gzip the userdata" )
0 commit comments