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

v1.14 Backports 2024-03-25 #31585

Merged
merged 2 commits into from Mar 28, 2024
Merged

v1.14 Backports 2024-03-25 #31585

merged 2 commits into from Mar 28, 2024

Conversation

sayboras
Copy link
Member

@sayboras sayboras commented Mar 25, 2024

Once this PR is merged, a GitHub action will update the labels of these PRs:

 27351

@maintainer-s-little-helper maintainer-s-little-helper bot added backport/1.14 This PR represents a backport for Cilium 1.14.x of a PR that was merged to main. kind/backports This PR provides functionality previously merged into master. labels Mar 25, 2024
@sayboras
Copy link
Member Author

/test-backport-1.14

@sayboras sayboras marked this pull request as ready for review March 25, 2024 08:45
@sayboras sayboras requested review from a team as code owners March 25, 2024 08:45
Copy link
Member

@gandro gandro left a comment

Choose a reason for hiding this comment

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

The batch delete PR looks good to me, with one thing that needs to be changed. I assume the only conflicts were in OpenAPI files?

plugins/cilium-cni/main.go Outdated Show resolved Hide resolved
gandro and others added 2 commits March 27, 2024 23:26
[upstream commit a0ba133]

This commit adds and implements a new endpoint batch deletion request.
This allows the deletion of all endpoints associated with a particular
containerID, which simplifies the CNI DEL logic for the CNI plugin if
more than one endpoint are attached to a particular container.

Co-authored-by: Tobias Klauser <tobias@isovalent.com>
Signed-off-by: Sebastian Wicki <sebastian@isovalent.com>
Signed-off-by: Tobias Klauser <tobias@isovalent.com>
[upstream commit 7666581]

This commit adds support for the batch delete API call in the endpoint
deletion queue. The endpoint deletion queue is used to enqueue endpoint
deletion requests in CNI DEL when cilium-agent is unavailable.

Support for batch deletion in the deletion queue is particularly
important, because if cilium-agent is unavailable, we cannot query it
for endpoints which belong to a particular container.

Before this commit, a endpoint deletion queue entry just contained a
string that represented a unique endpoint identifier. To support more
flexible batch deletion requests, we now instead serialize the full HTTP
API `EndpointDeleteRequest` as JSON. The new format is more flexible, as
it allows us to add more fields in the future. The old format (the
endpoint ID as a plain string) is still supported for
backwards-compatibility.

Co-authored-by: Tobias Klauser <tobias@isovalent.com>
Signed-off-by: Sebastian Wicki <sebastian@isovalent.com>
Signed-off-by: Tobias Klauser <tobias@isovalent.com>
Signed-off-by: Tam Mach <tam.mach@cilium.io>
@sayboras
Copy link
Member Author

/test-backport-1.14

Copy link
Member

@gandro gandro left a comment

Choose a reason for hiding this comment

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

Awesome, this looks good to me!

Copy link
Member

@tklauser tklauser left a comment

Choose a reason for hiding this comment

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

The PR description mentions that there were several conflicts but the commit messages don't contain any backporter notes section mentioning how they were resolved. If you recall the resolutions, would you mind adding a small section to each commit?

The changes themselves look good to me.

@sayboras sayboras added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Mar 27, 2024
@maintainer-s-little-helper maintainer-s-little-helper bot removed the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Mar 28, 2024
@maintainer-s-little-helper maintainer-s-little-helper bot added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Mar 28, 2024
@sayboras sayboras merged commit 369dfbe into v1.14 Mar 28, 2024
222 checks passed
@sayboras sayboras deleted the tam/backport-27351-1.14 branch March 28, 2024 22:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport/1.14 This PR represents a backport for Cilium 1.14.x of a PR that was merged to main. kind/backports This PR provides functionality previously merged into master. ready-to-merge This PR has passed all tests and received consensus from code owners to merge.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants