mirror of
https://github.com/siderolabs/talos.git
synced 2025-08-16 03:27:12 +02:00
refactor: set CRI config to /etc/cri/containerd.toml
This changes the CRI specific containerd instance's config to a different path. Signed-off-by: Andrew Rynhard <andrew@andrewrynhard.com>
This commit is contained in:
parent
9d9b958fba
commit
d4c202438c
@ -239,7 +239,7 @@ COPY images/networkd.tar /rootfs/usr/images/
|
||||
# symlinks to avoid accidentally cleaning them up.
|
||||
COPY ./hack/cleanup.sh /toolchain/bin/cleanup.sh
|
||||
RUN cleanup.sh /rootfs
|
||||
COPY hack/containerd.toml /rootfs/etc/containerd/cri.toml
|
||||
COPY hack/containerd.toml /rootfs/etc/cri/containerd.toml
|
||||
RUN touch /rootfs/etc/resolv.conf
|
||||
RUN touch /rootfs/etc/hosts
|
||||
RUN touch /rootfs/etc/os-release
|
||||
|
@ -76,7 +76,7 @@ func (suite *ContainerdSuite) SetupSuite() {
|
||||
"--address", suite.containerdAddress,
|
||||
"--state", stateDir,
|
||||
"--root", rootDir,
|
||||
"--config", "/etc/containerd/cri.toml",
|
||||
"--config", constants.CRIContainerdConfig,
|
||||
},
|
||||
}
|
||||
|
||||
|
@ -67,7 +67,7 @@ func (suite *CRISuite) SetupSuite() {
|
||||
"--address", suite.containerdAddress,
|
||||
"--state", stateDir,
|
||||
"--root", rootDir,
|
||||
"--config", "/etc/containerd/cri.toml",
|
||||
"--config", constants.CRIContainerdConfig,
|
||||
},
|
||||
}
|
||||
|
||||
|
@ -61,7 +61,7 @@ func (c *Containerd) Runner(config runtime.Configurator) (runner.Runner, error)
|
||||
"--address",
|
||||
constants.ContainerdAddress,
|
||||
"--config",
|
||||
"/etc/containerd/cri.toml",
|
||||
constants.CRIContainerdConfig,
|
||||
},
|
||||
}
|
||||
|
||||
|
@ -92,7 +92,7 @@ func (suite *ContainerdSuite) SetupSuite() {
|
||||
"--address", suite.containerdAddress,
|
||||
"--state", stateDir,
|
||||
"--root", rootDir,
|
||||
"--config", "/etc/containerd/cri.toml",
|
||||
"--config", constants.CRIContainerdConfig,
|
||||
},
|
||||
}
|
||||
|
||||
|
@ -75,7 +75,7 @@ func (suite *CRISuite) SetupSuite() {
|
||||
"--address", suite.containerdAddress,
|
||||
"--state", stateDir,
|
||||
"--root", rootDir,
|
||||
"--config", "/etc/containerd/cri.toml",
|
||||
"--config", constants.CRIContainerdConfig,
|
||||
},
|
||||
}
|
||||
|
||||
|
@ -65,7 +65,7 @@ func (suite *CRISuite) SetupSuite() {
|
||||
"--address", suite.containerdAddress,
|
||||
"--state", stateDir,
|
||||
"--root", rootDir,
|
||||
"--config", "/etc/containerd/cri.toml",
|
||||
"--config", constants.CRIContainerdConfig,
|
||||
},
|
||||
}
|
||||
|
||||
|
@ -194,6 +194,9 @@ const (
|
||||
// SystemContainerdAddress is the path to the system containerd socket.
|
||||
SystemContainerdAddress = SystemRunPath + "/containerd/containerd.sock"
|
||||
|
||||
// CRIContainerdConfig is the path to the config for the containerd instance that provides the CRI.
|
||||
CRIContainerdConfig = "/etc/cri/containerd.toml"
|
||||
|
||||
// TalosConfigEnvVar is the environment variable for setting the Talos configuration file path.
|
||||
TalosConfigEnvVar = "TALOSCONFIG"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user