2022-03-02 23:47:27 +00:00
|
|
|
//go:build windows
|
2021-07-04 16:47:56 +00:00
|
|
|
// +build windows
|
|
|
|
|
2021-06-10 19:27:00 +00:00
|
|
|
package config
|
|
|
|
|
|
|
|
import (
|
|
|
|
"path/filepath"
|
|
|
|
|
2022-03-02 23:47:27 +00:00
|
|
|
"github.com/k3s-io/k3s/pkg/daemons/config"
|
2021-06-10 19:27:00 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
func applyContainerdStateAndAddress(nodeConfig *config.Node) {
|
|
|
|
nodeConfig.Containerd.State = filepath.Join(nodeConfig.Containerd.Root, "state")
|
2021-07-07 19:50:18 +00:00
|
|
|
nodeConfig.Containerd.Address = "npipe:////./pipe/containerd-containerd"
|
2021-06-10 19:27:00 +00:00
|
|
|
}
|