Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CgroupHasHugetlb ¶
func CgroupHasHugetlb() bool
CgroupHasHugetlb returns whether the hugetlb controller is present
func CgroupHasMemorySwap ¶
func CgroupHasMemorySwap() bool
CgroupHasMemorySwap returns whether the memory swap controller is present
func CgroupHasPid ¶
func CgroupHasPid() bool
CgroupHasPid returns whether the pid controller is present
func CgroupIsV2 ¶
func CgroupIsV2() bool
func SystemdHasAllowedCPUs ¶
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.