Merge pull request #13570 from rifelpet/sysctls

Include sysctls in toolbox dump
This commit is contained in:
Kubernetes Prow Robot 2022-04-28 21:25:14 -07:00 committed by GitHub
commit bcd8148a32
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -290,6 +290,9 @@ func (n *logDumperNode) dump(ctx context.Context) []error {
if err := n.shellToFile(ctx, "cat /etc/hosts", filepath.Join(n.dir, "etchosts")); err != nil {
errors = append(errors, err)
}
if err := n.shellToFile(ctx, "sysctl -a", filepath.Join(n.dir, "sysctls")); err != nil {
errors = append(errors, err)
}
return errors
}