Skip to content
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

Fallback to status.domainInternal if not Addressable #684

Merged
merged 1 commit into from
Dec 17, 2018

Conversation

evankanderson
Copy link
Member

Fixes #673

Proposed Changes

-Adds an additional fallback in target resolution

Release Note

* Fixes Subscription compatibility between and knative 0.2.0 and earlier (fixed in 0.2.1).

@knative-prow-robot knative-prow-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Dec 8, 2018
@googlebot googlebot added the cla: yes Indicates the PR's author has signed the CLA. label Dec 8, 2018
@knative-prow-robot knative-prow-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Dec 8, 2018
@knative-prow-robot knative-prow-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 8, 2018
@evankanderson evankanderson changed the title WIP: fallback to status.InternalDomain if not Addressable WIP: fallback to status.domainInternal if not Addressable Dec 8, 2018
@knative-prow-robot knative-prow-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Dec 8, 2018
@evankanderson evankanderson changed the title WIP: fallback to status.domainInternal if not Addressable Fallback to status.domainInternal if not Addressable Dec 8, 2018
@knative-prow-robot knative-prow-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Dec 8, 2018
@evankanderson
Copy link
Member Author

Unfortunately, we haven't picked up the fix from kubernetes/client-go#478 yet, so this test is the same as the other duck-typed tests.

Ready for review. Once this is submitted, I'll send a PR to copy the changes to the release-0.2 branch for inclusion in our next patch-fix.

@knative-metrics-robot
Copy link

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

File Old Coverage New Coverage Delta
pkg/controller/eventing/subscription/reconcile.go 78.1% 79.3% 1.1

if err != nil {
glog.Warningf("Failed to deserialize legacy target: %s", err)
return "", err
if err := duck.FromUnstructured(obj, &t); err == nil {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this err ever have useful information? If so, we should return it in some form (even if it is part of a larger message).

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This err would either be from obj.MarshallJSON or json.Unmarshall, which would suggest that the object wasn't JSON-able, which would make the "does not contain address" error below accurate.

@evankanderson
Copy link
Member Author

/assign @Harwayne

@vaikas
Copy link
Contributor

vaikas commented Dec 17, 2018

/lgtm
/approve

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Dec 17, 2018
@knative-prow-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: evankanderson, vaikas-google

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:
  • OWNERS [evankanderson,vaikas-google]

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 merged commit b432c14 into knative:master Dec 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cla: yes Indicates the PR's author has signed the CLA. lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot fetch service in subscription
6 participants