Skip to content

Commit b69d7bd

Browse files
committed
config: fix TOML tag for TolerateMissingHugePagesCgroupController
Signed-off-by: Akihiro Suda <[email protected]>
1 parent 8e0b789 commit b69d7bd

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

pkg/config/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ type PluginConfig struct {
235235
// TolerateMissingHugePagesCgroupController if set to false will error out on create/update
236236
// container requests with huge page limits if the cgroup controller for hugepages is not present.
237237
// This helps with supporting Kubernetes <=1.18 out of the box. (default is `true`)
238-
TolerateMissingHugePagesCgroupController bool `toml:"tolerate_missing_hugepages_controller" json:"tolerateMissingHugePagesCgroupController"`
238+
TolerateMissingHugePagesCgroupController bool `toml:"tolerate_missing_hugepages_cgroup_controller" json:"tolerateMissingHugePagesCgroupController"`
239239
// IgnoreImageDefinedVolumes ignores volumes defined by the image. Useful for better resource
240240
// isolation, security and early detection of issues in the mount configuration when using
241241
// ReadOnlyRootFilesystem since containers won't silently mount a temporary volume.

pkg/containerd/opts/spec_unix.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ func WithResources(resources *runtime.LinuxContainerResources, tolerateMissingHu
461461
} else {
462462
if !tolerateMissingHugePagesCgroupController {
463463
return errors.Errorf("huge pages limits are specified but hugetlb cgroup controller is missing. " +
464-
"Please set tolerate_missing_hugepages_controller to `true` to ignore this error")
464+
"Please set tolerate_missing_hugepages_cgroup_controller to `true` to ignore this error")
465465
}
466466
logrus.Warn("hugetlb cgroup controller is absent. skipping huge pages limits")
467467
}

0 commit comments

Comments
 (0)