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

Add filtering before DeleteOrEvictPods #1106

Merged
merged 3 commits into from
Dec 31, 2024
Merged

Conversation

tiationg-kho
Copy link
Contributor

Issue #, if available:
#1097

Description of changes:

  • Add filtering before DeleteOrEvictPods

How you tested your changes:
Environment (Linux / Windows): Linux
Kubernetes Version: 1.31

Set use-apiserver-cache: true and emit-kubernetes-events: true then toggle the ignore-daemon-sets flag to test protect daemonset pods or not.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@tiationg-kho tiationg-kho requested a review from a team as a code owner December 16, 2024 18:02
Copy link
Contributor

@LikithaVemulapalli LikithaVemulapalli left a comment

Choose a reason for hiding this comment

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

quick question: Is there existing test to test the functionality locally either in test or internal-test? If test doesn't exist can we test this locally by having a mock setup?

@tiationg-kho
Copy link
Contributor Author

quick question: Is there existing test to test the functionality locally either in test or internal-test? If test doesn't exist can we test this locally by having a mock setup?

Add a unit test case for FilterOutDaemonSetPods method.

Copy link
Contributor

@LikithaVemulapalli LikithaVemulapalli left a comment

Choose a reason for hiding this comment

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

/lgtm

},
},
},
}
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: indentation seems off

@tiationg-kho tiationg-kho merged commit 90f6262 into aws:main Dec 31, 2024
11 checks passed
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.

2 participants