mirror of
https://github.com/rancher/rke.git
synced 2025-08-18 14:57:03 +00:00
hosts: mapping Flatcar from the docker host info
This commit is contained in:
parent
e22c29e4bd
commit
4849c2fc2b
@ -52,14 +52,16 @@ const (
|
|||||||
LogCleanerContainerName = "rke-log-cleaner"
|
LogCleanerContainerName = "rke-log-cleaner"
|
||||||
RKELogsPath = "/var/lib/rancher/rke/log"
|
RKELogsPath = "/var/lib/rancher/rke/log"
|
||||||
|
|
||||||
B2DOS = "Boot2Docker"
|
B2DOS = "Boot2Docker"
|
||||||
B2DPrefixPath = "/mnt/sda1/rke"
|
B2DPrefixPath = "/mnt/sda1/rke"
|
||||||
ROS = "RancherOS"
|
ROS = "RancherOS"
|
||||||
ROSPrefixPath = "/opt/rke"
|
ROSPrefixPath = "/opt/rke"
|
||||||
CoreOS = "CoreOS"
|
CoreOS = "CoreOS"
|
||||||
CoreOSPrefixPath = "/opt/rke"
|
CoreOSPrefixPath = "/opt/rke"
|
||||||
WindowsOS = "Windows"
|
FlatcarOS = "Flatcar"
|
||||||
WindowsPrefixPath = "c:/"
|
FlatcarOSPrefixPath = "/opt/rke"
|
||||||
|
WindowsOS = "Windows"
|
||||||
|
WindowsPrefixPath = "c:/"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (h *Host) CleanUpAll(ctx context.Context, cleanerImage string, prsMap map[string]v3.PrivateRegistry, externalEtcd bool) error {
|
func (h *Host) CleanUpAll(ctx context.Context, cleanerImage string, prsMap map[string]v3.PrivateRegistry, externalEtcd bool) error {
|
||||||
@ -366,6 +368,8 @@ func (h *Host) SetPrefixPath(clusterPrefixPath string) {
|
|||||||
prefixPath = ROSPrefixPath
|
prefixPath = ROSPrefixPath
|
||||||
case strings.Contains(h.DockerInfo.OperatingSystem, CoreOS):
|
case strings.Contains(h.DockerInfo.OperatingSystem, CoreOS):
|
||||||
prefixPath = CoreOSPrefixPath
|
prefixPath = CoreOSPrefixPath
|
||||||
|
case strings.Contains(h.DockerInfo.OperatingSystem, FlatcarOS):
|
||||||
|
prefixPath = FlatcarOSPrefixPath
|
||||||
case strings.Contains(h.DockerInfo.OperatingSystem, WindowsOS):
|
case strings.Contains(h.DockerInfo.OperatingSystem, WindowsOS):
|
||||||
prefixPath = WindowsPrefixPath
|
prefixPath = WindowsPrefixPath
|
||||||
default:
|
default:
|
||||||
|
Loading…
Reference in New Issue
Block a user