2022-03-02 23:47:27 +00:00
|
|
|
//go:build linux
|
2021-06-10 19:27:00 +00:00
|
|
|
// +build linux
|
|
|
|
|
|
|
|
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 = "/run/k3s/containerd"
|
|
|
|
nodeConfig.Containerd.Address = filepath.Join(nodeConfig.Containerd.State, "containerd.sock")
|
|
|
|
}
|
2021-12-16 20:00:40 +00:00
|
|
|
|
|
|
|
func applyCRIDockerdAddress(nodeConfig *config.Node) {
|
|
|
|
nodeConfig.CRIDockerd.Address = "unix:///run/k3s/cri-dockerd/cri-dockerd.sock"
|
|
|
|
}
|