-
Notifications
You must be signed in to change notification settings - Fork 6
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
add support to ignore volumeless pods by Resiliency #137
Conversation
@@ -11,10 +11,12 @@ general: | |||
- CVE-2021-44568 | |||
- CVE-2022-0778 | |||
- CVE-2022-2526 | |||
- CVE-2022-27664 | |||
# Disputed CVEs | |||
- CVE-2019-1010022 |
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.
Should we take this opportunity to review this allowedList for CVEs?
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.
We have ubi image upgrade story, we should check in that story. I will add in acceptance criteria
// podToArrayIDs returns the array IDs used by the pod, along with pvCount, and error | ||
func (cm *PodMonitorType) podToArrayIDs(ctx context.Context, pod *v1.Pod) ([]string, int, error) { | ||
arrayIDs := make([]string, 0) | ||
pvlist, _ := K8sAPI.GetPersistentVolumesInPod(ctx, pod) |
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.
Does this return an error that is being discarded? Should it not be checked?
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.
Here we don't need, error will result in empty pvlist. We check for error where we need to, here for now not needed. When we add multi-array support, then we will need to check error and accordingly return error.
6414c50
Description
Ignore volumeless pods with Resiliency label.
GitHub Issues
List the GitHub issues impacted by this PR:
Checklist:
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
PASS
coverage: 92.3% of statements
status 0
ok podmon/internal/monitor 8.636s coverage: 92.3% of statements