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

config-br-defaults set delivery spec defaults #4328

Conversation

runzexia
Copy link
Contributor

@runzexia runzexia commented Oct 15, 2020

Signed-off-by: runzexia root@junwuhui.cn

Fixes #4172

Proposed Changes

  • 🎁 Add new feature

Release Note

config-br-defaults support setting delivery spec defaults

Docs

@knative-prow-robot knative-prow-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Oct 15, 2020
@google-cla google-cla bot added the cla: yes Indicates the PR's author has signed the CLA. label Oct 15, 2020
@knative-prow-robot knative-prow-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Oct 15, 2020
@knative-prow-robot
Copy link
Contributor

Hi @runzexia. Thanks for your PR.

I'm waiting for a knative member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

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 the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Oct 15, 2020
*duckv1.KReference `json:",inline"`
Delivery *eventingduckv1.DeliverySpec `json:"delivery,omitempty"`
Copy link
Contributor Author

@runzexia runzexia Oct 15, 2020

Choose a reason for hiding this comment

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

I have questions about this place.
If I use v1Delivery, I need to convert v1Delivery to v1beta1Delivery.

@codecov
Copy link

codecov bot commented Oct 15, 2020

Codecov Report

Merging #4328 into master will increase coverage by 0.05%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #4328      +/-   ##
==========================================
+ Coverage   80.73%   80.79%   +0.05%     
==========================================
  Files         287      287              
  Lines        7870     7877       +7     
==========================================
+ Hits         6354     6364      +10     
+ Misses       1135     1132       -3     
  Partials      381      381              
Impacted Files Coverage Δ
pkg/apis/config/defaults.go 85.71% <100.00%> (ø)
pkg/apis/eventing/v1/broker_defaults.go 100.00% <100.00%> (ø)
pkg/apis/eventing/v1beta1/broker_defaults.go 100.00% <100.00%> (ø)
pkg/tracing/attributes.go 100.00% <0.00%> (+50.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 d8212a8...1e1b99a. Read the comment docs.

@knative-prow-robot knative-prow-robot 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 Oct 15, 2020
@runzexia runzexia changed the title [WIP] config-br-defaults should setting delivery spec defaults [WIP] config-br-defaults set delivery spec defaults Oct 15, 2020
@runzexia runzexia force-pushed the config-br-defaults-support-setting-delivery- branch from 8100086 to 9aba2db Compare October 15, 2020 13:05
@knative-prow-robot knative-prow-robot added the area/test-and-release Test infrastructure, tests or release label Oct 15, 2020
@runzexia runzexia force-pushed the config-br-defaults-support-setting-delivery- branch from 9aba2db to 545b4cc Compare October 15, 2020 13:10
@knative-prow-robot knative-prow-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Oct 15, 2020
Signed-off-by: RyderXia <ryder.xia@sap.com>
@runzexia runzexia force-pushed the config-br-defaults-support-setting-delivery- branch from 545b4cc to 55f7b84 Compare October 15, 2020 13:14
@knative-prow-robot knative-prow-robot 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 Oct 15, 2020
@runzexia runzexia changed the title [WIP] config-br-defaults set delivery spec defaults config-br-defaults set delivery spec defaults Oct 15, 2020
@knative-prow-robot knative-prow-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Oct 15, 2020
Copy link
Contributor

@vaikas vaikas left a comment

Choose a reason for hiding this comment

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

Thanks so much!

pkg/apis/config/defaults.go Outdated Show resolved Hide resolved
@vaikas
Copy link
Contributor

vaikas commented Oct 16, 2020

/ok-to-test

@knative-prow-robot knative-prow-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Oct 16, 2020
Signed-off-by: runzexi <root@junwuhui.cn>
Copy link
Contributor

@vaikas vaikas left a comment

Choose a reason for hiding this comment

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

Thanks!

pkg/apis/config/defaults.go Outdated Show resolved Hide resolved
Signed-off-by: runzexi <root@junwuhui.cn>
@vaikas
Copy link
Contributor

vaikas commented Oct 19, 2020

/lgtm
/approve

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

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: runzexia, vaikas

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 Oct 19, 2020
@knative-prow-robot knative-prow-robot merged commit e9a5f00 into knative:master Oct 19, 2020
@runzexia runzexia deleted the config-br-defaults-support-setting-delivery- branch October 19, 2020 08:47
Copy link
Member

@pierDipi pierDipi left a comment

Choose a reason for hiding this comment

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

@runzexia We should document this feature, would you mind opening an issue in docs?

@runzexia
Copy link
Contributor Author

@pierDipi created issue knative/docs#2944 😊

@pierDipi
Copy link
Member

Thank you!

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. area/test-and-release Test infrastructure, tests or release cla: yes Indicates the PR's author has signed the CLA. lgtm Indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. 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.

config-br-defaults should support setting delivery spec defaults
4 participants