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

List services sorted by alphabetical order #330

Merged
merged 1 commit into from
Aug 9, 2019

Conversation

daisy-ycguo
Copy link
Member

Fixes #324

Proposed Changes

  • kn service list lists services sorted by alphabetical order.

@googlebot googlebot added the cla: yes Indicates the PR's author has signed the CLA. label Aug 5, 2019
@knative-prow-robot knative-prow-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Aug 5, 2019
@navidshaikh
Copy link
Collaborator

/test pull-knative-client-integration-tests-latest-release

@navidshaikh
Copy link
Collaborator

@daisy-ycguo : I think the service list we receive from server comes sorted by name already, check #324 (comment)

@navidshaikh
Copy link
Collaborator

@daisy-ycguo : I think we could instead update this PR to ensure (by adding unit tests) that the list printed is sorted.

@navidshaikh
Copy link
Collaborator

I think we could instead update this PR to ensure (by adding unit tests) that the list printed is sorted.

@daisy-ycguo : Ignore this comment as mentioned on the issue that other implementation might not return the sorted service list.

@navidshaikh
Copy link
Collaborator

/lint

Copy link
Contributor

@knative-prow-robot knative-prow-robot left a comment

Choose a reason for hiding this comment

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

@navidshaikh: 0 warnings.

In response to this:

/lint

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.

@knative-prow-robot knative-prow-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Aug 8, 2019
@rhuss
Copy link
Contributor

rhuss commented Aug 8, 2019

The integration test flake

Failed to successfully execute 'kn service create hello --image gcr.io/knative-samples/helloworld-go -n kne2etests1': Execution error: stderr: 'RevisionFailed: Revision "hello-l58wg" failed with message: Unable to fetch image "gcr.io/knative-samples/helloworld-go": serviceaccounts "default" not found.

is really annoying. 'hope we get that fixed but no idea how (see #329 for tracking this). Seems that it happens more often recently.

@rhuss
Copy link
Contributor

rhuss commented Aug 8, 2019

/retest

1 similar comment
@rhuss
Copy link
Contributor

rhuss commented Aug 8, 2019

/retest

Copy link
Collaborator

@navidshaikh navidshaikh left a comment

Choose a reason for hiding this comment

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

@daisy-ycguo : Thanks! Please update the CHANGELOG.

@knative-prow-robot knative-prow-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 8, 2019
@daisy-ycguo
Copy link
Member Author

@daisy-ycguo : Thanks! Please update the CHANGELOG.

I did. Thanks for the instruction.

@knative-metrics-robot
Copy link

The following is the coverage report on pkg/.
Say /test pull-knative-client-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/kn/commands/service/service_list.go 86.7% 87.5% 0.8

@rhuss
Copy link
Contributor

rhuss commented Aug 9, 2019

thanks !

/lgtm
/approve

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Aug 9, 2019
@knative-prow-robot
Copy link
Contributor

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@knative-prow-robot knative-prow-robot merged commit 8c362f0 into knative:master Aug 9, 2019
coryrc pushed a commit to coryrc/client that referenced this pull request May 14, 2020
This will avoid issues with the automatic "latest" tagging when building new images.

The "stable" tag must be manually set (as explained in the documentation).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cla: yes Indicates the PR's author has signed the CLA. lgtm Indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

kn service list is not sorted
8 participants