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"
|
|
|
|
|
2023-10-26 09:51:25 +00:00
|
|
|
"github.com/k3s-io/k3s/pkg/cli/cmds"
|
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
|
|
|
}
|
2021-12-16 20:00:40 +00:00
|
|
|
|
|
|
|
func applyCRIDockerdAddress(nodeConfig *config.Node) {
|
|
|
|
nodeConfig.CRIDockerd.Address = "npipe:////.pipe/cri-dockerd"
|
|
|
|
}
|
2023-10-26 09:51:25 +00:00
|
|
|
|
|
|
|
func applyContainerdQoSClassConfigFileIfPresent(envInfo *cmds.Agent, nodeConfig *config.Node) {
|
|
|
|
// QoS-class resource management not supported on windows.
|
|
|
|
}
|