-
Notifications
You must be signed in to change notification settings - Fork 261
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
Adds more columns in revision get command output #70
Conversation
2970e9f
to
edacc08
Compare
/ok-to-test |
@navidshaikh: The following tests failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
} | ||
|
||
func TestRevisionListDefaultOutput(t *testing.T) { | ||
foo_label := make(map[string]string) |
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.
some more camel casing needed.
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.
fixed
t.Fatal(err) | ||
} | ||
// each line's tab/spaces are replaced by comma | ||
expected := []string{"NAME,SERVICE,AGE,TRAFFIC", |
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.
is there a test with multiple routes for one 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.
@cppforlife: updated tests to reflect same
pkg/serving/constants.go
Outdated
GroupName = "serving.knative.dev" | ||
|
||
//ConfigurationLabelKey indicates the Configuration revision is created from. | ||
ConfigurationLabelKey = GroupName + "/service" |
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.
is this something we can pull in from client package instead of duplicating here?
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.
fixed
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: navidshaikh If they are not already assigned, you can assign the PR to them by writing 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 |
This commit adds basic details about service in service list command output. text/tabwriter is used to print columns on stdout. Fixes #knative#40
This commit adds AGE column representing the resources' age in human readable format calculated from CreationTimestamp field of service.
Now if list is empty, we print "No resources found." string. This commit updates the respective unit test.
Doesn't check the argument length after `service get` to leave room for filtering based on argument.
Fixes knative#41 Adds Name, Service, Age and Traffic column in the revision list output.
also updates the invocation to CalculateAge utility
Closing the PR in favor of PR #90 |
Closing in favor of #97 |
Added few columns in the output as below