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

Added delivery options to broker create #1670

Merged
merged 7 commits into from
May 26, 2022

Conversation

vyasgun
Copy link
Contributor

@vyasgun vyasgun commented May 2, 2022

Description

Added delivery options to kn broker create

Changes

  • Added --dl-sink, --timeout, --backoff-policy, backoff-delay, retry-after-max, --retry flags
  • Validation is on the server side for the values
  • Added unit test cases

Reference

Fixes #1557

Copy link

@knative-prow knative-prow bot left a comment

Choose a reason for hiding this comment

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

@vyasgun: 8 warnings.

In response to this:

Description

Added delivery options to kn broker create

Changes

  • Added --dl-sink, --timeout, --backoff-policy, backoff-delay, retry-after-max, --retry flags
  • Validation is on the server side for the values
  • Added unit test cases

Reference

Fixes #1557

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.

pkg/eventing/v1/client.go Show resolved Hide resolved
pkg/eventing/v1/client.go Show resolved Hide resolved
pkg/eventing/v1/client.go Show resolved Hide resolved
pkg/eventing/v1/client.go Show resolved Hide resolved
pkg/eventing/v1/client.go Show resolved Hide resolved
pkg/eventing/v1/client.go Show resolved Hide resolved
@knative-prow knative-prow bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label May 2, 2022
@codecov
Copy link

codecov bot commented May 2, 2022

Codecov Report

Merging #1670 (d087400) into main (736c7c2) will increase coverage by 0.21%.
The diff coverage is 92.71%.

@@            Coverage Diff             @@
##             main    #1670      +/-   ##
==========================================
+ Coverage   79.48%   79.70%   +0.21%     
==========================================
  Files         171      173       +2     
  Lines       12963    13173     +210     
==========================================
+ Hits        10304    10499     +195     
- Misses       1941     1951      +10     
- Partials      718      723       +5     
Impacted Files Coverage Δ
pkg/kn/commands/broker/create.go 69.64% <70.00%> (-1.41%) ⬇️
pkg/kn/commands/broker/update.go 86.36% <86.36%> (ø)
pkg/eventing/v1/client.go 91.00% <100.00%> (+3.73%) ⬆️
pkg/eventing/v1/client_mock.go 92.75% <100.00%> (+0.81%) ⬆️
pkg/kn/commands/broker/broker.go 100.00% <100.00%> (ø)
pkg/kn/commands/broker/delivery_option_flags.go 100.00% <100.00%> (ø)
pkg/kn/commands/trigger/update_flags.go 100.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 736c7c2...d087400. Read the comment docs.

Copy link
Contributor

@dsimansk dsimansk left a comment

Choose a reason for hiding this comment

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

Added a few comments around coverage and help messages, but otherwise looks OK.

@vyasgun vyasgun force-pushed the pr/broker/delivery-option branch from cf928ea to c2eaef0 Compare May 6, 2022 09:05
Copy link
Contributor

@dsimansk dsimansk left a comment

Choose a reason for hiding this comment

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

Added a short comment about validation.

There's another angle of this change I haven't noticed at first. Originally broker command groups didn't include update. There wasn't no options to modify, except from create/delete flow. However, it should be added probably with this addition flags.

@dsimansk
Copy link
Contributor

@vyasgun wrt my previous comment. IMO we can merge this PR and add broker update afterwards. Let me know what would you prefer. Otherwise looks ready to me.

@knative-prow knative-prow bot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels May 23, 2022
@vyasgun
Copy link
Contributor Author

vyasgun commented May 23, 2022

@dsimansk Sorry about the delay. I just added the update command to this PR.

@dsimansk
Copy link
Contributor

/test all

@vyasgun
Copy link
Contributor Author

vyasgun commented May 26, 2022

/retest

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented May 26, 2022

CLA Signed

The committers listed above are authorized under a signed CLA.

@dsimansk
Copy link
Contributor

/approve
/lgtm

@knative-prow knative-prow bot added the lgtm Indicates that a PR is ready to be merged. label May 26, 2022
@knative-prow
Copy link

knative-prow bot commented May 26, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dsimansk, vyasgun

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 knative-prow bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 26, 2022
@knative-prow knative-prow bot merged commit 2a56f07 into knative:main May 26, 2022
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. 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.

Add delivery options for "kn broker create"
2 participants