这是indexloc提供的服务,不要输入任何密码
Skip to content

Relax validation to allow Ref to be things other than Ksvc #10210

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

Merged
merged 1 commit into from
Nov 29, 2020

Conversation

julz
Copy link
Member

@julz julz commented Nov 26, 2020

Something something #9713.

Relaxes the validation since we now support DomainMapping targets that aren't KSvcs.

As well as relaxing the api type validation, this also relaxes the validation in the reconciler to permit a single '/' for the Path, since it turns out the addressable resolver returns this for services.

Release Note

DomainMappings now support arbitrary target references, rather than only Knative Services. The target must conform to the Addressable contract (including Kubernetes Services), and the resolved URI must be of the form `{name}.{namespace}.svc.{cluster-suffix}`.

/assign @mattmoor @vagababov

As well as removing the validation, this required changing the
validation in the reconciler to permit '/' as the Path, since it turns
out the addressable resolver adds this for services.
@google-cla google-cla bot added the cla: yes Indicates the PR's author has signed the CLA. label Nov 26, 2020
@knative-prow-robot knative-prow-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. area/API API objects and controllers labels Nov 26, 2020
@codecov
Copy link

codecov bot commented Nov 26, 2020

Codecov Report

Merging #10210 (a5290b4) into master (772caec) will increase coverage by 0.08%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #10210      +/-   ##
==========================================
+ Coverage   88.10%   88.18%   +0.08%     
==========================================
  Files         184      184              
  Lines        8615     8606       -9     
==========================================
- Hits         7590     7589       -1     
+ Misses        789      784       -5     
+ Partials      236      233       -3     
Impacted Files Coverage Δ
.../apis/serving/v1alpha1/domainmapping_validation.go 100.00% <100.00%> (ø)
pkg/reconciler/domainmapping/reconciler.go 89.18% <100.00%> (ø)
pkg/autoscaler/statforwarder/forwarder.go 82.44% <0.00%> (+1.06%) ⬆️
pkg/reconciler/autoscaling/kpa/scaler.go 90.00% <0.00%> (+1.42%) ⬆️
pkg/reconciler/configuration/configuration.go 88.28% <0.00%> (+1.56%) ⬆️
pkg/autoscaler/scaling/multiscaler.go 89.65% <0.00%> (+1.72%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 772caec...78441b9. Read the comment docs.

Copy link
Contributor

@markusthoemmes markusthoemmes left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

@knative-prow-robot knative-prow-robot added lgtm Indicates that a PR is ready to be merged. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Nov 26, 2020
@markusthoemmes
Copy link
Contributor

/hold

For the actual reviewers :)

@knative-prow-robot knative-prow-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Nov 26, 2020
Copy link
Contributor

@vagababov vagababov left a comment

Choose a reason for hiding this comment

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

/lgtm
/unhold
/approve

@knative-prow-robot knative-prow-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Nov 29, 2020
@knative-prow-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: julz, markusthoemmes, vagababov

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@knative-prow-robot knative-prow-robot merged commit 45afb29 into knative:master Nov 29, 2020
nak3 pushed a commit to nak3/serving that referenced this pull request Jan 21, 2021
…0210)

As well as removing the validation, this required changing the
validation in the reconciler to permit '/' as the Path, since it turns
out the addressable resolver adds this for services.
nak3 pushed a commit to nak3/serving that referenced this pull request Jan 21, 2021
…0210)

As well as removing the validation, this required changing the
validation in the reconciler to permit '/' as the Path, since it turns
out the addressable resolver adds this for services.
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. area/API API objects and controllers cla: yes Indicates the PR's author has signed the CLA. lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants