-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Refactor InitK8sSubsystem and adding unit tests #31645
Refactor InitK8sSubsystem and adding unit tests #31645
Conversation
Commit bb86cfd does not match "(?m)^Signed-off-by:". Please follow instructions provided in https://docs.cilium.io/en/stable/contributing/development/contributing_guide/#developer-s-certificate-of-origin |
Signed-off-by: Anubhab Majumdar <anmajumdar@microsoft.com>
bb86cfd
to
61060fe
Compare
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.
LGTM, just delete the commented out line.
/test |
Signed-off-by: Anubhab Majumdar <anmajumdar@microsoft.com>
Addressed comments, thanks for the review :-) |
/test |
Description
The current implementation of the
InitK8sSubsystem
function hardcodes the resources it will watch and sync. This is rather rigid and prevents development of effective unit-tests. Also, it's unclear from the function signature what exact resources are being watched/synced. Making this explicit will be helpful for the caller.In this change:
Fixes: N/A
Testing Done