-
Notifications
You must be signed in to change notification settings - Fork 503
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
optim egctl get httpserver to show port and https #1248
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #1248 +/- ##
==========================================
+ Coverage 79.48% 79.50% +0.01%
==========================================
Files 152 152
Lines 17295 17295
==========================================
+ Hits 13747 13750 +3
+ Misses 2879 2877 -2
+ Partials 669 668 -1 ☔ View full report in Codecov by Sentry. |
cmd/client/resources/object.go
Outdated
for namespace, metas := range metas { | ||
if namespace == DefaultNamespace { | ||
continue | ||
} | ||
for _, meta := range metas { | ||
table = append(table, []string{meta.Name, meta.Kind, namespace, getAgeFromMetaSpec(meta)}) | ||
if meta.Kind == "HTTPServer" { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is common for each object to have its representation, so a well-designed framework is needed to handle the difference.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated, please check
cmd/client/resources/spec.go
Outdated
} | ||
|
||
// ObjectSpec is the interface of the object spec. | ||
type ObjectSpec interface { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's best to give a meaningful name to intuitively describe its usage
No description provided.