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

Avoid panic when network policy agent is disabled #323

Merged
merged 4 commits into from
Nov 5, 2024

Conversation

jaydeokar
Copy link
Contributor

@jaydeokar jaydeokar commented Oct 23, 2024

Issue #, if available:
Fixes -> #258

Description of changes:
When Network Policy Agent is disabled, but there are still some Policy Endpoints in the cluster, the agent fails. This was an intentional behavior to let the user know about cleaning up the stale policy endpoints in the cluster.
With this change, the agent panic is removed and the reconciliation of policyendpoints is ignored when the agent is disabled.
This is to support use case where a user needs to migrate from one NP implementation to another gradually.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@jaydeokar jaydeokar marked this pull request as ready for review October 29, 2024 01:57
@jaydeokar jaydeokar requested a review from a team as a code owner October 29, 2024 01:57
yash97
yash97 previously approved these changes Oct 29, 2024
Copy link
Contributor

@yash97 yash97 left a comment

Choose a reason for hiding this comment

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

lgtm 🚀

@jaydeokar jaydeokar merged commit c0e486b into aws:main Nov 5, 2024
4 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.

3 participants