mirror of https://github.com/k3s-io/k3s
20 lines
475 B
Go
20 lines
475 B
Go
//go:build linux
|
|
// +build linux
|
|
|
|
package config
|
|
|
|
import (
|
|
"path/filepath"
|
|
|
|
"github.com/k3s-io/k3s/pkg/daemons/config"
|
|
)
|
|
|
|
func applyContainerdStateAndAddress(nodeConfig *config.Node) {
|
|
nodeConfig.Containerd.State = "/run/k3s/containerd"
|
|
nodeConfig.Containerd.Address = filepath.Join(nodeConfig.Containerd.State, "containerd.sock")
|
|
}
|
|
|
|
func applyCRIDockerdAddress(nodeConfig *config.Node) {
|
|
nodeConfig.CRIDockerd.Address = "unix:///run/k3s/cri-dockerd/cri-dockerd.sock"
|
|
}
|