config: fix TOML tag for TolerateMissingHugePagesCgroupController
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
This commit is contained in:
		| @@ -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. | ||||
|   | ||||
| @@ -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") | ||||
| 		} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Akihiro Suda
					Akihiro Suda