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

Add trigger update command #562

Merged
merged 2 commits into from
Dec 17, 2019
Merged

Conversation

daisy-ycguo
Copy link
Member

Proposed Changes

  • Add trigger update command

@googlebot googlebot added the cla: yes Indicates the PR's author has signed the CLA. label Dec 17, 2019
@knative-prow-robot knative-prow-robot added the size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. label Dec 17, 2019
@rhuss
Copy link
Contributor

rhuss commented Dec 17, 2019

/retest

}

// UpdateFilters to update the filters of trigger object
func (b *TriggerBuilder) UpdateFilters(toUpdate map[string]string, toRemove []string) *TriggerBuilder {
Copy link
Contributor

Choose a reason for hiding this comment

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

I wouldn't do any removal or change in the builder. Its about creating an immutable object, so would prefer to have just a Filter() method (as in my PR ;-) if you don't mind I would update that later.

Copy link
Member Author

@daisy-ycguo daisy-ycguo Dec 17, 2019

Choose a reason for hiding this comment

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

Fine. I don't mind. Feel free to update it in a following PR.

@daisy-ycguo daisy-ycguo force-pushed the trigger branch 2 times, most recently from c7ba214 to 95c023b Compare December 17, 2019 14:26
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.

/lgtm

}

// Sink to set the subscriber of trigger object
func (b *TriggerBuilder) Sink(sink *duckv1.Destination) *TriggerBuilder {
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's call it Subscriber like in the spec.

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Dec 17, 2019
@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 Dec 17, 2019
@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/eventing/v1alpha1/client.go 86.7% 78.6% -8.1
pkg/eventing/v1alpha1/client_mock.go 89.5% 90.9% 1.4
pkg/kn/commands/trigger/create.go 86.1% 82.5% -3.6
pkg/kn/commands/trigger/update.go Do not exist 84.6%
pkg/kn/commands/trigger/update_flags.go 93.8% 96.2% 2.4

@knative-prow-robot knative-prow-robot merged commit 8b1434b into knative:master Dec 17, 2019
coryrc pushed a commit to coryrc/client that referenced this pull request May 14, 2020
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/XL Denotes a PR that changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants