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 watch permission for CNINode resource #2681

Merged
merged 1 commit into from
Nov 27, 2023
Merged

Conversation

jdn5126
Copy link
Contributor

@jdn5126 jdn5126 commented Nov 27, 2023

What type of PR is this?
cleanup

Which issue does this PR fix:
#2680
#2589

What does this PR do / Why do we need it:
#2570 was not a complete fix to stop WATCH from being issued for CNINode resource. While we could create an entirely new scheme for the cache vs the client, it is easier to add the watch permission for CNINode resource. Though the IPAM daemon does not need to cache this resource, doing so does not require enough additional memory to be concerned.

If an issue # is not available please add repro steps and logs from IPAMD/CNI showing the issue:
N/A

Testing done on this change:

All unit tests and integration tests pass.

Will this PR introduce any new dependencies?:

No

Will this break upgrades or downgrades? Has updating a running cluster been tested?:
No, Yes

Does this change require updates to the CNI daemonset config files to work?:

No

Does this PR introduce any user-facing change?:

Yes

Add watch permission for CNINode resource

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

@jdn5126 jdn5126 requested a review from a team as a code owner November 27, 2023 17:20
Copy link
Contributor

@jchen6585 jchen6585 left a comment

Choose a reason for hiding this comment

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

lgtm

@jdn5126 jdn5126 merged commit d49c8a3 into aws:master Nov 27, 2023
6 checks passed
@jdn5126 jdn5126 deleted the cninode_watch branch November 27, 2023 21:30
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.

None yet

2 participants