Skip to content

Implement Watch Namespaces#1610

Merged
arkodg merged 3 commits intoenvoyproxy:mainfrom
arkodg:watch-namespace
Jul 4, 2023
Merged

Implement Watch Namespaces#1610
arkodg merged 3 commits intoenvoyproxy:mainfrom
arkodg:watch-namespace

Conversation

@arkodg
Copy link
Copy Markdown
Contributor

@arkodg arkodg commented Jun 30, 2023

Relates to #1117

Relates to envoyproxy#1117

Signed-off-by: Arko Dasgupta <arko@tetrate.io>
@arkodg arkodg requested a review from a team as a code owner June 30, 2023 07:34
@arkodg arkodg marked this pull request as draft June 30, 2023 07:34
Signed-off-by: Arko Dasgupta <arko@tetrate.io>
@codecov
Copy link
Copy Markdown

codecov bot commented Jun 30, 2023

Codecov Report

Merging #1610 (0958467) into main (81cdde6) will increase coverage by 0.12%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #1610      +/-   ##
==========================================
+ Coverage   61.86%   61.98%   +0.12%     
==========================================
  Files          81       81              
  Lines       12032    12036       +4     
==========================================
+ Hits         7443     7460      +17     
+ Misses       4131     4121      -10     
+ Partials      458      455       -3     
Impacted Files Coverage Δ
internal/provider/kubernetes/kubernetes.go 64.58% <100.00%> (+6.04%) ⬆️

... and 3 files with indirect coverage changes

Signed-off-by: Arko Dasgupta <arko@tetrate.io>
@arkodg arkodg marked this pull request as ready for review July 1, 2023 00:26
@arkodg arkodg requested review from a team, Xunzhuo, qicz and zhaohuabing and removed request for a team July 1, 2023 00:30
svr.EnvoyGateway.Provider.Kubernetes != nil &&
(svr.EnvoyGateway.Provider.Kubernetes.Watch != nil) &&
(len(svr.EnvoyGateway.Provider.Kubernetes.Watch.Namespaces) > 0) {
mgrOpts.Cache.Namespaces = svr.EnvoyGateway.Provider.Kubernetes.Watch.Namespaces
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

will EG only get resources from WatchNamespaces?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

yes if this field is set, the test case reflects this

@arkodg arkodg requested a review from zirain July 3, 2023 17:23
@arkodg arkodg mentioned this pull request Jul 3, 2023
Copy link
Copy Markdown
Member

@qicz qicz left a comment

Choose a reason for hiding this comment

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

it's great, it is better for EG memory occupied.

LGTM

@arkodg arkodg merged commit 3892d90 into envoyproxy:main Jul 4, 2023
@arkodg arkodg deleted the watch-namespace branch July 4, 2023 01:12
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