Subscription v1<>v1beta conversion#3421
Conversation
|
Skipping CI for Draft Pull Request. |
mattmoor
left a comment
There was a problem hiding this comment.
Produced via:
gofmt -s -w $(find -path './vendor' -prune -o -path './third_party' -prune -o -name '*.pb.go' -prune -o -type f -name '*.go' -print)
goimports -w $(find -name '*.go' | grep -v vendor | grep -v third_party | grep -v .pb.go | grep -v wire_gen.go)
mattmoor
left a comment
There was a problem hiding this comment.
Produced via:
gofmt -s -w $(find -path './vendor' -prune -o -path './third_party' -prune -o -name '*.pb.go' -prune -o -type f -name '*.go' -print)
goimports -w $(find -name '*.go' | grep -v vendor | grep -v third_party | grep -v .pb.go | grep -v wire_gen.go)
Unable to apply comments to the following files:
pkg/apis/eventing/v1beta1/broker_conversion_test.gopkg/apis/eventing/v1beta1/trigger_conversion_test.go
|
/assign @nlopezgi |
6ae9bcc to
37fa48b
Compare
|
The following is the coverage report on the affected files.
|
| "k8s.io/utils/pointer" | ||
| eventingduckv1 "knative.dev/eventing/pkg/apis/duck/v1" | ||
| duckv1beta1 "knative.dev/eventing/pkg/apis/duck/v1beta1" | ||
| v1 "knative.dev/eventing/pkg/apis/messaging/v1" |
There was a problem hiding this comment.
If you don't feel too strong about it, let's leave it as v1.
This test is about converting subscriptions from v1beta1 to v1. Name v1 is more understandable IMO as we're already in messaging v1beta1 package.
There was a problem hiding this comment.
matmoor's bot suggested to add v1, so I added the name :)
There was a problem hiding this comment.
Agree, but then we don't need to rename it, right?
There was a problem hiding this comment.
Now, I saw a similar pattern for the other conversion and there we don't include messaging* or eventing*, sorry for the noise :)
| duckv1 "knative.dev/eventing/pkg/apis/duck/v1" | ||
| duckv1beta1 "knative.dev/eventing/pkg/apis/duck/v1beta1" | ||
|
|
||
| v1 "knative.dev/eventing/pkg/apis/messaging/v1" |
|
/approve The webhook needs to be updated (separate PR) |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: aliok, lionelvillard, pierDipi The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
* Subscription v1<>v1beta conversion and simple tests * Subscription v1<>v1beta conversion roundtrip tests * Formatting stuff
Part of #3336
Proposed Changes
Release Note
Docs