hosts: mapping Flatcar from the docker host info
@@ -58,6 +58,8 @@ const (
ROSPrefixPath = "/opt/rke"
CoreOS = "CoreOS"
CoreOSPrefixPath = "/opt/rke"
+ FlatcarOS = "Flatcar"
+ FlatcarOSPrefixPath = "/opt/rke"
WindowsOS = "Windows"
WindowsPrefixPath = "c:/"
)
@@ -366,6 +368,8 @@ func (h *Host) SetPrefixPath(clusterPrefixPath string) {
prefixPath = ROSPrefixPath
case strings.Contains(h.DockerInfo.OperatingSystem, CoreOS):
prefixPath = CoreOSPrefixPath
+ case strings.Contains(h.DockerInfo.OperatingSystem, FlatcarOS):
+ prefixPath = FlatcarOSPrefixPath
case strings.Contains(h.DockerInfo.OperatingSystem, WindowsOS):
prefixPath = WindowsPrefixPath
default:
