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
Use CRD v1 API for KafkaChannel, KafkaSource and KafkaBinding #132
Use CRD v1 API for KafkaChannel, KafkaSource and KafkaBinding #132
Conversation
Codecov Report
@@ Coverage Diff @@
## master #132 +/- ##
==========================================
+ Coverage 75.99% 76.04% +0.04%
==========================================
Files 112 112
Lines 4274 4274
==========================================
+ Hits 3248 3250 +2
+ Misses 831 829 -2
Partials 195 195
Continue to review full report at Codecov.
|
/hold we need upgrade tests for that I think @aliok has some reference GH issue for this, what all needs to be done |
@matzew, would you mind helping me understand why? |
If we tackle this - can we also tackle the source ? Does it work when applying the I think when I did that for "eventing" repo, the tests there were useful |
@pierDipi Getting back to this. We we structure those CRDs, like we have them on "eventing" repo ? Like:
Can we also have the same lifting for the binding, the source and the distributed channel? |
Does that make sense @pierDipi ? |
name: kafka-webhook | ||
namespace: knative-eventing | ||
webhook: | ||
conversionReviewVersions: [ "v1", "v1beta1" ] |
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.
@pierDipi
Please only change the CRD to use Kube's v1 ApiExtensions.
Bumping the version of messaging.knative.dev
to v1
is a separate work.
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.
This refers to the conversion review version.
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.
# conversionReviewVersions indicates what ConversionReview versions are understood/preferred by the webhook.
# The first version in the list understood by the API server is sent to the webhook.
# The webhook must respond with a ConversionReview object in the same version it received.
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.
Ok, so, not related to KafkaChannel's version (messaging.knative.dev)?
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.
Yes, it's unrelated, see https://github.com/knative/eventing/blob/master/config/core/resources/eventtype.yaml, EventType
is in v1alpha1
and v1beta1
and the conversionReviewVersions is set to [ "v1", "v1beta1" ]
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.
ha, ok.
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.
Isn't that the conversion of the CRD api itself ?
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.
Nope, they are versions of the conversion request and response, see https://github.com/kubernetes/apiextensions-apiserver/blob/1fa7e1a40da83d381ce598c1dc4095debc040c60/pkg/apis/apiextensions/v1/types.go#L434-L476 and https://github.com/kubernetes/apiextensions-apiserver/blob/1fa7e1a40da83d381ce598c1dc4095debc040c60/pkg/apis/apiextensions/v1beta1/types.go#L475-L522
v1alpha1
version has never been created, (first CRDs release branch) https://github.com/kubernetes/apiextensions-apiserver/tree/release-1.7/pkg/apis/apiextensions
@matzew it makes sense to me. |
/retest |
@pierDipi I think this needs a rebase |
Signed-off-by: Pierangelo Di Pilato <pierangelodipilato@gmail.com>
Signed-off-by: Pierangelo Di Pilato <pierangelodipilato@gmail.com>
Signed-off-by: Pierangelo Di Pilato <pierangelodipilato@gmail.com>
Signed-off-by: Pierangelo Di Pilato <pierangelodipilato@gmail.com>
d6fe2b2
to
a7c1078
Compare
Flaky, I opened an issue: #218 |
VEry cool! |
Seem fine to me! I had the same questions regarding |
/lgtm /assign for @aliok to approve and unhold |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: aliok, 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 |
/unhold |
…xtensions#132) * Channel upgrade tests structure and smoke test * Code reformat * Executing shell scripts to install eventing core * Eventing Core installs well * Fix add_trap function * Install latest release and HEAD of consolidated channel * Install channel from release works * Format code * Default a KafkaChannel in upgrade tests * Continual tests * Update configmap instead of patch * Removal of strict mode from e2e-common as it fails current code :-( * Reformatting * Invoke upgrade tests while testing consolidated * Proper invocation od e2e-upgrade-tests * Move strict mode after souring the library * Move strict mode lower * Reference the eventing-core wathola test images * Run post-scripts * Move strict mode lower * Remove strict mode from scripts :-/ * Raise unavailable period to report to 40 sec * Shorter name of main test method * Commenting out run_postinstall_jobs to pass mt-source job See reported issue: knative-extensions#495 * Removing temporal invocation of upgrade tests
CRD v1beta1 API is deprecated and will be removed in k8s 1.22.
Similar to knative/eventing#3360.
Webhook API bump in a follow-up.
Proposed Changes
Release Note
/cc slinkydeveloper matzew