Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CgroupHasHugetlb ¶ added in v1.19.0
func CgroupHasHugetlb() bool
CgroupHasHugetlb returns whether the hugetlb controller is present
func CgroupHasMemorySwap ¶ added in v1.19.0
func CgroupHasMemorySwap() bool
CgroupHasMemorySwap returns whether the memory swap controller is present
func CgroupHasPid ¶ added in v1.19.0
func CgroupHasPid() bool
CgroupHasPid returns whether the pid controller is present
func CgroupIsV2 ¶ added in v1.19.0
func CgroupIsV2() bool
func SystemdHasAllowedCPUs ¶ added in v1.21.2
func SystemdHasAllowedCPUs() bool
func ValidateConfig ¶
func ValidateConfig() error
ValidateConfig initializes and validates all of the singleton variables that store the node's configuration. Currently, we check hugetlb, cgroup v1 or v2, pid and memory swap support for cgroups. We check the error at server configuration validation, and if we error, shutdown cri-o early, instead of when we're already trying to run containers.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.