Implement KReference.Group resolution for Subscriber.Ref#5440
Implement KReference.Group resolution for Subscriber.Ref#5440knative-prow-robot merged 23 commits intoknative:mainfrom
KReference.Group resolution for Subscriber.Ref#5440Conversation
c5bcca8 to
e1224b2
Compare
|
/hold This requires the lazy consensus approval per https://github.com/knative/eventing/blob/main/docs/experimental-features.md#feature-proposal-development-and-graduation-process |
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
* Added tristate flags Renamed experimental features config map Signed-off-by: Francesco Guardiani <francescoguard@gmail.com> * Update doc Signed-off-by: Francesco Guardiani <francescoguard@gmail.com> * goimports Signed-off-by: Francesco Guardiani <francescoguard@gmail.com> * Added some nits from #5440 Signed-off-by: Francesco Guardiani <francescoguard@gmail.com> * Boilerplate Signed-off-by: Francesco Guardiani <francescoguard@gmail.com> * Fixed bad links in the doc and bad name Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
e1224b2 to
62761f8
Compare
| channelGroup := channelGVK.GroupKind().Group | ||
| channelAPIVersion, imcKind := channelGVK.ToAPIVersionAndKind() | ||
|
|
||
| channelAName := feature.MakeRandomK8sName("channel-a") |
There was a problem hiding this comment.
This code is much more clear if you use the prober code. See the broker/channel conformance tests for an example.
|
|
||
| f.Setup("Install channel A -> channel B subscription", func(ctx context.Context, t feature.T) { | ||
| namespace := environment.FromContext(ctx).Namespace() | ||
| _, err := eventingclient.Get(ctx).MessagingV1().Subscriptions(namespace).Create(ctx, |
There was a problem hiding this comment.
Rather than do this, you can use the subscription.Install resource package?
There was a problem hiding this comment.
TBH I think this code is cleaner. Also I was worried to use it, because in order to do so, I need to modify the template to allow for the new group field. I would rather keep it this way and revisit in future.
| @@ -24,7 +24,7 @@ import ( | |||
| "testing" | |||
There was a problem hiding this comment.
This file needs a build flag set on it, maybe +build e2e,experimental
There was a problem hiding this comment.
Do we need to have another flag, given we already have e2e? Isn't that enough? I see we don't make difference between e2e/conformance/rekt in terms of build flags, they all use e2e
|
Depends on #5479 |
c677412 to
6772bb3
Compare
322132f to
7f2cc7b
Compare
|
pkg PR is merged, I've added the new changes here but I probably need to let #5495 go in before updating this one deps |
…conformance tests Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
Fix e2e tests Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
7f2cc7b to
539d817
Compare
|
The following is the coverage report on the affected files.
|
Codecov Report
@@ Coverage Diff @@
## main #5440 +/- ##
==========================================
- Coverage 82.69% 82.62% -0.08%
==========================================
Files 198 198
Lines 6098 6117 +19
==========================================
+ Hits 5043 5054 +11
- Misses 731 737 +6
- Partials 324 326 +2
Continue to review full report at Codecov.
|
|
/unhold This is now ready to be merged |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: matzew, slinkydeveloper 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 |
|
/hold |
| data: | ||
| # ALPHA feature: The kreference-group allows you to use the Group field in KReferences. | ||
| # For more details: https://github.com/knative/eventing/issues/5086 | ||
| kreference-group: "disabled" |
There was a problem hiding this comment.
It's probably fine for now but eventually it should look more like https://github.com/knative/serving/blob/main/config/core/configmaps/features.yaml.
There was a problem hiding this comment.
Mhh yeah seems like we don't have the example, but do we really need it? Isn't simpler for the user to have the flags already configured? Also, considering at some point some of them will become enabled by default?
|
This is great, thanks for doing this! /lgtm |
|
/unhold |
|
/retest |
…native#5440)" This reverts commit 6adafe5
Part of the experimental feature #5086
Requires knative/pkg#2127
Proposed Changes
kreference-groupKReference.Groupresolution forSubscriber.RefPre-review Checklist
Release Note