-
Notifications
You must be signed in to change notification settings - Fork 31
cgroup v1 and v2 kernel config check according to isCgroupV2 #52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,6 +23,8 @@ package system | |
|
||
var _ Validator = &CgroupsValidator{} | ||
|
||
const mountsFilePath = "" | ||
|
||
// CgroupsValidator validates cgroup configuration. | ||
type CgroupsValidator struct { | ||
Reporter Reporter | ||
|
@@ -37,3 +39,8 @@ func (c *CgroupsValidator) Validate(spec SysSpec) (warns, errs []error) { | |
func (c *CgroupsValidator) Name() string { | ||
return "cgroups" | ||
} | ||
|
||
// getUnifiedMountpoint is a no-op for non-Linux OSes. | ||
func getUnifiedMountpoint(path string) (string, bool, error) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. hm, how did this compile before? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
return "", false, nil | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is not needed? the definition of mountsFilePath is only required in the linux file, as far as i can tell.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
never mind, it's referenced in validators/kernel_validator.go