diff --git a/pkg/agent/containerd/config_linux.go b/pkg/agent/containerd/config_linux.go index 2930b9a045..f5d5cdf98c 100644 --- a/pkg/agent/containerd/config_linux.go +++ b/pkg/agent/containerd/config_linux.go @@ -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() diff --git a/pkg/agent/templates/templates.go b/pkg/agent/templates/templates.go index e8c98136e1..a9317ea8f1 100644 --- a/pkg/agent/templates/templates.go +++ b/pkg/agent/templates/templates.go @@ -19,4 +19,5 @@ type ContainerdConfig struct { EnableUnprivileged bool PrivateRegistryConfig *registries.Registry ExtraRuntimes map[string]ContainerdRuntimeConfig + Program string } diff --git a/pkg/agent/templates/templates_linux.go b/pkg/agent/templates/templates_linux.go index 3a95cbdb4e..2cd4516f1c 100644 --- a/pkg/agent/templates/templates_linux.go +++ b/pkg/agent/templates/templates_linux.go @@ -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"]