mirror of https://github.com/k3s-io/k3s
Adds a warning about editing to the containerd config.toml file (#7076)
* Add a warning to the config.toml file Signed-off-by: Derek Nola <derek.nola@suse.com> Co-authored-by: Brad Davidson <brad@oatmail.org>pull/7105/head
parent
41c24b6a88
commit
7fee87d976
|
@ -66,6 +66,7 @@ func setupContainerdConfig(ctx context.Context, cfg *config.Node) error {
|
|||
EnableUnprivileged: kernel.CheckKernelVersion(4, 11, 0),
|
||||
PrivateRegistryConfig: privRegistries.Registry,
|
||||
ExtraRuntimes: findNvidiaContainerRuntimes(os.DirFS(string(os.PathSeparator))),
|
||||
Program: version.Program,
|
||||
}
|
||||
|
||||
selEnabled, selConfigured, err := selinuxStatus()
|
||||
|
|
|
@ -19,4 +19,5 @@ type ContainerdConfig struct {
|
|||
EnableUnprivileged bool
|
||||
PrivateRegistryConfig *registries.Registry
|
||||
ExtraRuntimes map[string]ContainerdRuntimeConfig
|
||||
Program string
|
||||
}
|
||||
|
|
|
@ -8,6 +8,7 @@ import (
|
|||
)
|
||||
|
||||
const ContainerdConfigTemplate = `
|
||||
# File generated by {{ .Program }}. DO NOT EDIT. Use config.toml.tmpl instead.
|
||||
version = 2
|
||||
|
||||
[plugins."io.containerd.internal.v1.opt"]
|
||||
|
|
Loading…
Reference in New Issue