-
Notifications
You must be signed in to change notification settings - Fork 263
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
Add revision information to service list #441
Conversation
The following is the coverage report on the affected files.
|
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.
I agree that showing the latest revision makes more sense than showing the generation, but I doubt that we show latestCreatedRevision, as this should be typically the same as latestReadyRevision and if not, Ready
would be false and show up in kn service list
anyway. For further investigation a kn service describe
is needed then.
I would call the column just LATEST then.
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.
Minor nit...
@rhuss @maximilien Thank you for the reviewing. Considering your comments, I'm going to keep only lastReadyRevision as
|
/retest |
I think it's ready for a second round review. @maximilien @rhuss Thanks. |
@@ -30,7 +30,7 @@ func ServiceListHandlers(h hprinters.PrintHandler) { | |||
{Name: "Namespace", Type: "string", Description: "Namespace of the Knative service", Priority: 0}, | |||
{Name: "Name", Type: "string", Description: "Name of the Knative service.", Priority: 1}, | |||
{Name: "Url", Type: "string", Description: "URL of the Knative service.", Priority: 1}, | |||
{Name: "Generation", Type: "integer", Description: "Sequence number of 'Generation' of the service that was last processed by the controller.", Priority: 1}, | |||
{Name: "Latest Revision", Type: "string", Description: "Name of the latest revision.", Priority: 1}, |
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.
Should we have space in column names? Can we change the column name to Latest
as suggested in review?
Also per changes, the description should read, "Name of the latest ready revision."
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.
NAME URL LATEST REVISION AGE CONDITIONS READY REASON
random http://random.default.example.com random-kndhm-4 8d 1 OK / 3 False RevisionMissing : Revision "random-yylcn-2" referenced in traffic not found.
The header looks a bit confusing when there is a space (looks like two column headers). So please either LATEST
or LATESTREVISION
. Both would be ok for me (so the former is easier to ea IMO)
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.
Changed to Latest
. The comment is changed to Name of the latest ready revision.
.
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.
minor nit (backing @navidshaikh comment), otherwise looks good to me.
@@ -30,7 +30,7 @@ func ServiceListHandlers(h hprinters.PrintHandler) { | |||
{Name: "Namespace", Type: "string", Description: "Namespace of the Knative service", Priority: 0}, | |||
{Name: "Name", Type: "string", Description: "Name of the Knative service.", Priority: 1}, | |||
{Name: "Url", Type: "string", Description: "URL of the Knative service.", Priority: 1}, | |||
{Name: "Generation", Type: "integer", Description: "Sequence number of 'Generation' of the service that was last processed by the controller.", Priority: 1}, | |||
{Name: "Latest Revision", Type: "string", Description: "Name of the latest revision.", Priority: 1}, |
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.
NAME URL LATEST REVISION AGE CONDITIONS READY REASON
random http://random.default.example.com random-kndhm-4 8d 1 OK / 3 False RevisionMissing : Revision "random-yylcn-2" referenced in traffic not found.
The header looks a bit confusing when there is a space (looks like two column headers). So please either LATEST
or LATESTREVISION
. Both would be ok for me (so the former is easier to ea IMO)
thank you @navidshaikh and @rhuss . It's ready to review again. |
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.
/lgtm
/assign @rhuss
/hold
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.
/approve
/lgtm
/hold cancel
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: daisy-ycguo, navidshaikh, rhuss The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Fixes #360
Proposed Changes
LATESTCREATED
andLATESTREADY
to the output ofkn service list
Generation
from the output ofkn service list