Skip to content
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

use stored mount or device count for ignorevolumeless pods for node cleanup #141

Merged
merged 2 commits into from
Oct 12, 2022

Conversation

alikdell
Copy link
Collaborator

@alikdell alikdell commented Oct 12, 2022

Description

use stored mount or device count for ignorevolumeless pods for node cleanup process.

GitHub Issues

List the GitHub issues impacted by this PR:

GitHub Issue #
#dell/csm#493

Checklist:

  • I have performed a self-review of my own code to ensure there are no formatting, vetting, linting, or security issues
  • I have verified that new and existing unit tests pass locally with my changes
  • I have not allowed coverage numbers to degenerate
  • I have maintained at least 90% code coverage
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • Backward compatibility is not broken

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Please also list any relevant details for your test configuration

  • short integration test and unit test
  • integration test on fix

@@ -12,6 +12,7 @@ general:
- CVE-2022-0778
- CVE-2022-2526
- CVE-2022-27664
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should CVE-2022-27664 be removed implementing the workaround found by the Yulan team?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes when we implement that

@alikdell alikdell merged commit e3e2a03 into main Oct 12, 2022
@alikdell alikdell deleted the ignorepods-node-clean branch October 12, 2022 14:18

// ignore volumeless pods if needed
if IgnoreVolumelessPods && len(podInfo.Mounts) == 0 && len(podInfo.Devices) == 0 {
log.Infof("IgnoreVolumelessPods %t mount %d device %d", IgnoreVolumelessPods, len(podInfo.Mounts), len(podInfo.Devices))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add the podkey to this log statement, similar to line 314 below. Otherwise good to go.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants