diff --git a/pkg/config/config.go b/pkg/config/config.go index 9c8d2e30e..ea59db575 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -235,7 +235,7 @@ type PluginConfig struct { // TolerateMissingHugePagesCgroupController if set to false will error out on create/update // container requests with huge page limits if the cgroup controller for hugepages is not present. // This helps with supporting Kubernetes <=1.18 out of the box. (default is `true`) - TolerateMissingHugePagesCgroupController bool `toml:"tolerate_missing_hugepages_controller" json:"tolerateMissingHugePagesCgroupController"` + TolerateMissingHugePagesCgroupController bool `toml:"tolerate_missing_hugepages_cgroup_controller" json:"tolerateMissingHugePagesCgroupController"` // IgnoreImageDefinedVolumes ignores volumes defined by the image. Useful for better resource // isolation, security and early detection of issues in the mount configuration when using // ReadOnlyRootFilesystem since containers won't silently mount a temporary volume. diff --git a/pkg/containerd/opts/spec_unix.go b/pkg/containerd/opts/spec_unix.go index d72d81562..18a88da50 100644 --- a/pkg/containerd/opts/spec_unix.go +++ b/pkg/containerd/opts/spec_unix.go @@ -461,7 +461,7 @@ func WithResources(resources *runtime.LinuxContainerResources, tolerateMissingHu } else { if !tolerateMissingHugePagesCgroupController { return errors.Errorf("huge pages limits are specified but hugetlb cgroup controller is missing. " + - "Please set tolerate_missing_hugepages_controller to `true` to ignore this error") + "Please set tolerate_missing_hugepages_cgroup_controller to `true` to ignore this error") } logrus.Warn("hugetlb cgroup controller is absent. skipping huge pages limits") }