-
Notifications
You must be signed in to change notification settings - Fork 600
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
Subscription v1<>v1beta conversion #3421
Subscription v1<>v1beta conversion #3421
Conversation
Skipping CI for Draft Pull Request. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.go
pkg/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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
messagingv1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
or remove the renaming
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
matmoor's bot suggested to add v1, so I added the name :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree, but then we don't need to rename it, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
messagingv1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/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
Needs 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