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

feat: allow running EnvoyProxy as DaemonSet #4429

Merged
merged 13 commits into from
Oct 15, 2024

Conversation

jukie
Copy link
Contributor

@jukie jukie commented Oct 12, 2024

What type of PR is this?
feat: allow running EnvoyProxy as DaemonSet

What this PR does / why we need it:
Continuation of #3092 to finish all daemonset implementations and fix a bug where the gateway status never gets updated because the code only checks for deployments.

Which issue(s) this PR fixes:

Fixes #4416
Fixes #2969

jukie added 2 commits October 12, 2024 10:34
Signed-off-by: jukie <[email protected]>
Signed-off-by: jukie <[email protected]>
@jukie jukie marked this pull request as ready for review October 12, 2024 17:18
@jukie jukie requested a review from a team as a code owner October 12, 2024 17:18
@jukie jukie requested a review from zirain October 12, 2024 17:18
@jukie jukie changed the title WIP: Update status when running in daemonset mode Update gateway status when running EnvoyProxy in daemonset mode Oct 12, 2024
@jukie jukie changed the title Update gateway status when running EnvoyProxy in daemonset mode Fix: Update gateway status when running EnvoyProxy in daemonset mode Oct 12, 2024
jukie added 2 commits October 12, 2024 11:46
Signed-off-by: jukie <[email protected]>
@jukie jukie changed the title Fix: Update gateway status when running EnvoyProxy in daemonset mode fix: Update gateway status when running EnvoyProxy in daemonset mode Oct 12, 2024
Signed-off-by: jukie <[email protected]>
Copy link

codecov bot commented Oct 12, 2024

Codecov Report

Attention: Patch coverage is 68.23529% with 27 lines in your changes missing coverage. Please review.

Project coverage is 65.85%. Comparing base (c1f4837) to head (29425bc).
Report is 13 commits behind head on main.

Files with missing lines Patch % Lines
internal/provider/kubernetes/controller.go 31.57% 9 Missing and 4 partials ⚠️
internal/provider/kubernetes/predicates.go 61.90% 5 Missing and 3 partials ⚠️
internal/gatewayapi/status/gateway.go 66.66% 6 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4429      +/-   ##
==========================================
+ Coverage   65.82%   65.85%   +0.02%     
==========================================
  Files         200      200              
  Lines       24177    24226      +49     
==========================================
+ Hits        15915    15953      +38     
- Misses       7128     7134       +6     
- Partials     1134     1139       +5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jukie jukie changed the title fix: Update gateway status when running EnvoyProxy in daemonset mode feat: allow running EnvoyProxy as DaemonSet Oct 13, 2024
@zirain
Copy link
Contributor

zirain commented Oct 13, 2024

/retest

@jukie
Copy link
Contributor Author

jukie commented Oct 13, 2024

Should actually work this time 🤞

Signed-off-by: jukie <[email protected]>
@jukie jukie requested a review from shawnh2 October 13, 2024 04:23
@jukie
Copy link
Contributor Author

jukie commented Oct 13, 2024

/retest

Copy link
Contributor

@shawnh2 shawnh2 left a comment

Choose a reason for hiding this comment

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

Hi @jukie, thanks for implementing the rest part of daemonset deploy mode, code generally LGTM!

Got a question about EG and RateLimit both in daemonset settings: the EG and RL pod will be running on each node, does it mean the global rate limiting becomes per-node rate limiting?

api/v1alpha1/envoygateway_types.go Outdated Show resolved Hide resolved
@jukie
Copy link
Contributor Author

jukie commented Oct 13, 2024

/retest

@jukie jukie force-pushed the fix-daemonset-mode branch from 133cb21 to f3ec861 Compare October 13, 2024 06:23
@jukie jukie force-pushed the fix-daemonset-mode branch from f3ec861 to 36100da Compare October 13, 2024 06:26
@jukie jukie requested a review from shawnh2 October 13, 2024 06:28
@jukie
Copy link
Contributor Author

jukie commented Oct 13, 2024

/retest

2 similar comments
@jukie
Copy link
Contributor Author

jukie commented Oct 13, 2024

/retest

@jukie
Copy link
Contributor Author

jukie commented Oct 13, 2024

/retest

Copy link
Contributor

@arkodg arkodg left a comment

Choose a reason for hiding this comment

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

LGTM thanks !

@arkodg arkodg merged commit 8fc4ecb into envoyproxy:main Oct 15, 2024
24 checks passed
@jukie jukie deleted the fix-daemonset-mode branch October 15, 2024 20:03
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.

Gateways never become ready/programmed when running daemonset EnvoyProxy Run Envoy Gateway like DaemonSet
4 participants