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

Propagate Ingress status to DomainMapping #9752

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 2 commits into from
Oct 12, 2020

Conversation

julz
Copy link
Member

@julz julz commented Oct 9, 2020

Third part of #9713.

This gets things working end-to-end (without domain claims, validation, ability to set ingress class etc etc of course), so should be able to land the initial conformance test after this.

/assign @mattmoor @dprotaso

@google-cla google-cla bot added the cla: yes Indicates the PR's author has signed the CLA. label Oct 9, 2020
@knative-prow-robot knative-prow-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Oct 9, 2020
@knative-prow-robot knative-prow-robot added the area/API API objects and controllers label Oct 9, 2020
@codecov
Copy link

codecov bot commented Oct 9, 2020

Codecov Report

Merging #9752 into master will decrease coverage by 0.00%.
The diff coverage is 65.21%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #9752      +/-   ##
==========================================
- Coverage   87.77%   87.77%   -0.01%     
==========================================
  Files         180      180              
  Lines        8499     8521      +22     
==========================================
+ Hits         7460     7479      +19     
- Misses        792      793       +1     
- Partials      247      249       +2     
Impacted Files Coverage Δ
...g/apis/serving/v1alpha1/domainmapping_lifecycle.go 70.58% <64.28%> (+3.92%) ⬆️
pkg/reconciler/domainmapping/reconciler.go 85.00% <66.66%> (+13.12%) ⬆️
pkg/reconciler/autoscaling/kpa/scaler.go 88.57% <0.00%> (-1.43%) ⬇️

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 436cfe1...922a494. Read the comment docs.

@julz julz mentioned this pull request Oct 9, 2020
14 tasks
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
just nits

Comment on lines +83 to +85
if ingress.GetObjectMeta().GetGeneration() != ingress.Status.ObservedGeneration {
dm.Status.MarkIngressNotConfigured()
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd add a comment that it's ingress we're looking at, since it took me a moment to see that it's different object from above 😊

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 is copied from https://github.com/knative/serving/blob/master/pkg/reconciler/route/route.go#L161 which also doesn't have comment, but sure I'll add one

@knative-prow-robot knative-prow-robot added lgtm Indicates that a PR is ready to be merged. and removed lgtm Indicates that a PR is ready to be merged. labels Oct 9, 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

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Oct 9, 2020
@mattmoor
Copy link
Member

Needs a rebase :(

@knative-prow-robot knative-prow-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Oct 12, 2020
@julz julz force-pushed the domainmappingpropagate branch from b10192f to 922a494 Compare October 12, 2020 18:46
@knative-prow-robot knative-prow-robot removed lgtm Indicates that a PR is ready to be merged. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. labels Oct 12, 2020
@julz
Copy link
Member Author

julz commented Oct 12, 2020

rebased.

Copy link
Member

@mattmoor mattmoor left a comment

Choose a reason for hiding this comment

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

/lgtm

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Oct 12, 2020
@knative-prow-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: julz, mattmoor

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 added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 12, 2020
@knative-prow-robot knative-prow-robot merged commit d6c6984 into knative:master Oct 12, 2020
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