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 support for egctl x status #2550

Merged
merged 5 commits into from
Feb 6, 2024
Merged

Conversation

shawnh2
Copy link
Contributor

@shawnh2 shawnh2 commented Feb 1, 2024

What type of PR is this?

feature: add egctl x status subcommand

What this PR does / why we need it:

some examples:

image image

Which issue(s) this PR fixes:

Fixes #2463

Copy link

codecov bot commented Feb 1, 2024

Codecov Report

Attention: 198 lines in your changes are missing coverage. Please review.

Comparison is base (1754679) 64.50% compared to head (0dc0d7b) 63.93%.
Report is 2 commits behind head on main.

Files Patch % Lines
internal/cmd/egctl/status.go 30.00% 158 Missing and 10 partials ⚠️
internal/cmd/egctl/utils.go 36.58% 26 Missing ⚠️
internal/cmd/egctl/experimental.go 0.00% 3 Missing ⚠️
internal/cmd/egctl/stats.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2550      +/-   ##
==========================================
- Coverage   64.50%   63.93%   -0.58%     
==========================================
  Files         116      117       +1     
  Lines       17757    18057     +300     
==========================================
+ Hits        11455    11545      +90     
- Misses       5560     5760     +200     
- Partials      742      752      +10     

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

@shawnh2 shawnh2 marked this pull request as ready for review February 2, 2024 10:38
@shawnh2 shawnh2 requested a review from a team as a code owner February 2, 2024 10:38
@shawnh2 shawnh2 requested a review from a team February 2, 2024 10:38
internal/cmd/egctl/status.go Outdated Show resolved Hide resolved
internal/cmd/egctl/status.go Outdated Show resolved Hide resolved
namespace = ""
}

switch strings.ToLower(resourceType) {
Copy link
Contributor

Choose a reason for hiding this comment

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

something for the future, dont want to block this PR, but all can be helpful here to fetch statuses of all CRDs at once

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sure, i will add this in a follow-up PR

@arkodg
Copy link
Contributor

arkodg commented Feb 2, 2024

this PR looks good @shawnh ! added a minor comment

@shawnh2
Copy link
Contributor Author

shawnh2 commented Feb 3, 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 f21f9ff into envoyproxy:main Feb 6, 2024
19 of 20 checks passed
@shawnh2 shawnh2 deleted the egctl-x-status branch February 6, 2024 23:57
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.

Surface resource status summary in egctl
3 participants