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

Harmonize list headers for trigger and sources #658

Merged
merged 1 commit into from
Feb 13, 2020

Conversation

daisy-ycguo
Copy link
Member

Fixes #567

Proposed Changes

  • Change SUBSCRIBER_URI to SINK in trigger list
  • Add CONDITIONS to trigger list
  • Add AGE to trigger and source ( cronjob, apiserver, binding ) list
  • Move SinkToString to package flags and reuse in trigger list

@googlebot googlebot added the cla: yes Indicates the PR's author has signed the CLA. label Feb 12, 2020
@knative-prow-robot knative-prow-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Feb 12, 2020
@daisy-ycguo
Copy link
Member Author

/test pull-knative-client-integration-tests

Copy link
Contributor

@rhuss rhuss left a comment

Choose a reason for hiding this comment

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

one minor comment, otherwise looks goot to me !

if sink.Ref.Kind == "Service" {
return fmt.Sprintf("svc:%s", sink.Ref.Name)
} else {
return fmt.Sprintf("%s:%s", sink.Ref.Kind, sink.Ref.Name)
Copy link
Contributor

Choose a reason for hiding this comment

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

can we make the kind lower case ? That's how we use it normally.

Copy link
Member Author

Choose a reason for hiding this comment

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

Done. covert to lower case in the latest version.

@knative-metrics-robot
Copy link

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

File Old Coverage New Coverage Delta
pkg/kn/commands/flags/sink.go 79.2% 61.3% -17.9
pkg/kn/commands/source/apiserver/flags.go 75.2% 75.5% 0.2
pkg/kn/commands/source/binding/binding.go 58.2% 60.0% 1.8
pkg/kn/commands/source/binding/flags.go 91.3% 91.7% 0.4
pkg/kn/commands/source/cronjob/flags.go 56.2% 57.1% 0.9
pkg/kn/commands/trigger/list_flags.go 81.6% 82.5% 0.9

@rhuss
Copy link
Contributor

rhuss commented Feb 13, 2020

thanks !

/lgtm

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Feb 13, 2020
@rhuss
Copy link
Contributor

rhuss commented Feb 13, 2020

/approve

@knative-prow-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: daisy-ycguo, 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 added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 13, 2020
@knative-prow-robot knative-prow-robot merged commit f9d907d into knative:master Feb 13, 2020
coryrc pushed a commit to coryrc/client that referenced this pull request May 14, 2020
* update boskos images and flags

Fixed knative#638

* use images that exists

also the most recent ones with the same tags
mgencur pushed a commit to openshift-knative/client that referenced this pull request Nov 21, 2022
[release-v0.19.1] Fix deprecated registry
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/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Harmonize list headers for "trigger list", "cronjob list" and "apiserver list"
5 participants