Skip to content
This repository was archived by the owner on Jun 4, 2021. It is now read-only.

Soft-revert #137 "Use CR unstructured client for dynamic objects"#179

Closed
grantr wants to merge 2 commits into
knative:masterfrom
grantr:soft-revert-137
Closed

Soft-revert #137 "Use CR unstructured client for dynamic objects"#179
grantr wants to merge 2 commits into
knative:masterfrom
grantr:soft-revert-137

Conversation

@grantr
Copy link
Copy Markdown
Contributor

@grantr grantr commented Jan 11, 2019

This is an attempt to track down the issues caused by knative/eventing#718.

It creates two versions of GetSinkURI, pre-#137 (dynamic clients) and post-#137 (controller-runtime unstructured client). The older sources have been reverted to use the dynamic clients version. The cronjobsource and awssqssource never had dynamic client versions, so they still use the controller-runtime unstructured client version.

If the eventing e2e tests pass with this change, then it seems clear that #137 caused them.

The previous version that used the dynamic client is now called
GetSinkURI_DC. The new version that uses the controller-runtime client
is now called GetSinkURI_CR. GetSinkURI is now a reference to
GetSinkURI_DC because it's the only one known to work.
The controllers written before knative#137 are reverted to use the dynamic
client. More recent controllers cronjobsource and awssqssource use
the controller-runtime client still, since there was never a version of
them that used the dynamic client.
@knative-prow-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: grantr

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details 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 Jan 11, 2019
@knative-prow-robot knative-prow-robot added the size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. label Jan 11, 2019
@knative-metrics-robot
Copy link
Copy Markdown

The following is the coverage report on pkg/.
Say /test pull-knative-eventing-sources-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
contrib/gcppubsub/pkg/controller/reconcile.go 94.5% 94.7% 0.2
pkg/controller/containersource/reconcile.go 93.4% 93.7% 0.2
pkg/controller/cronjobsource/reconcile.go 87.3% 85.9% -1.4
pkg/controller/githubsource/reconcile.go 88.9% 89.2% 0.3
pkg/controller/sinks/sinks_cr.go Do not exist 94.1%
pkg/controller/sinks/sinks_dc.go Do not exist 95.5%

@evankanderson
Copy link
Copy Markdown
Member

Looks like this is not needed.

lionelvillard added a commit to lionelvillard/eventing-contrib that referenced this pull request Nov 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants