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: add namespaced all proxies config dump support #1082

Merged
merged 1 commit into from
May 30, 2023

Conversation

Xunzhuo
Copy link
Member

@Xunzhuo Xunzhuo commented Feb 28, 2023

xref: #1069

@Xunzhuo Xunzhuo requested a review from a team as a code owner February 28, 2023 04:32
@Xunzhuo
Copy link
Member Author

Xunzhuo commented Feb 28, 2023

cc @zirain

@Xunzhuo Xunzhuo changed the title feat: add proxies config dump support feat: add namespaced all proxies config dump support Feb 28, 2023
@codecov-commenter
Copy link

codecov-commenter commented Feb 28, 2023

Codecov Report

Merging #1082 (b47f219) into main (1b565db) will decrease coverage by 0.10%.
The diff coverage is 36.58%.

@@            Coverage Diff             @@
##             main    #1082      +/-   ##
==========================================
- Coverage   61.49%   61.39%   -0.10%     
==========================================
  Files          79       79              
  Lines       11439    11465      +26     
==========================================
+ Hits         7034     7039       +5     
- Misses       3944     3966      +22     
+ Partials      461      460       -1     
Impacted Files Coverage Δ
internal/cmd/egctl/config_cmd.go 0.00% <0.00%> (ø)
...ternal/infrastructure/kubernetes/proxy/resource.go 91.44% <0.00%> (-3.76%) ⬇️
internal/cmd/egctl/config.go 38.70% <44.11%> (-1.74%) ⬇️

@Xunzhuo
Copy link
Member Author

Xunzhuo commented Feb 28, 2023

cc @arkodg, please take a look too.

@github-actions github-actions bot added the stale label Apr 9, 2023
@arkodg arkodg added this to the 0.5.0-rc1 milestone Apr 12, 2023
@github-actions github-actions bot removed the stale label Apr 12, 2023
@envoyproxy envoyproxy deleted a comment from github-actions bot May 26, 2023
@Xunzhuo
Copy link
Member Author

Xunzhuo commented May 26, 2023

When replicas is 1

image image image image

@Xunzhuo
Copy link
Member Author

Xunzhuo commented May 26, 2023

When replicas is 2

image image image image

Signed-off-by: bitliu <bitliu@tencent.com>
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.

🚀 ❤️

@Xunzhuo Xunzhuo requested review from a team, zhaohuabing, chauhanshubham and qicz and removed request for a team May 29, 2023 02:13
@@ -113,10 +113,28 @@ func retrieveConfigDump(args []string, includeEds bool, configType envoyConfigTy
// fetchRunningEnvoyPods gets the Pods, either based on the NamespacedName or the labelSelectors.
// It further filters out only those Pods that are in "Running" state.
// labelSelectors, if provided, take precedence over the pod NamespacedName.
func fetchRunningEnvoyPods(c kube.CLIClient, nn types.NamespacedName, labelSelectors []string) ([]types.NamespacedName, error) {
func fetchRunningEnvoyPods(c kube.CLIClient, nn types.NamespacedName, labelSelectors []string, allNamespaces bool) ([]types.NamespacedName, error) {
Copy link
Member

@qicz qicz May 29, 2023

Choose a reason for hiding this comment

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

IMO nn is not readable , prefer name or namespacedName

Copy link
Member Author

Choose a reason for hiding this comment

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

I did not change the previous vars, I think this is nit and not a blocker for this PR.

Copy link
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.

LGTM
some nit

@Xunzhuo Xunzhuo merged commit 1eee5d8 into envoyproxy:main May 30, 2023
17 of 18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants