Skip to content

Start executing rollout steps in the ingress reconcile#10106

Merged
knative-prow-robot merged 3 commits intoknative:masterfrom
vagababov:20201112-apply
Nov 16, 2020
Merged

Start executing rollout steps in the ingress reconcile#10106
knative-prow-robot merged 3 commits intoknative:masterfrom
vagababov:20201112-apply

Conversation

@vagababov
Copy link
Contributor

  • This applies rolledout reconcile to the annotaion (no ingress spec changes yet)
  • Moved the appllication from the createingress to route controller — since we need to compute diffs
    which makes things easier this way, because to do rollout we need to compare previous with the new one.

/assign @tcnghia mattmoor

For #9766

- This applies rolledout reconcile to the annotaion (no ingress spec changes yet)
- Moved the appllication from the createingress to route controller — since we need to compute diffs
  which makes things easier this way, because to do rollout we need to compare previous with the new one.

Change-Id: Iff42c7b5498e76ca0777908cac82f09b4c9794ca
@google-cla google-cla bot added the cla: yes Indicates the PR's author has signed the CLA. label Nov 13, 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 area/networking approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Nov 13, 2020
@codecov
Copy link

codecov bot commented Nov 13, 2020

Codecov Report

Merging #10106 (ef356ec) into master (1dd43e9) will decrease coverage by 0.02%.
The diff coverage is 68.57%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #10106      +/-   ##
==========================================
- Coverage   87.98%   87.96%   -0.03%     
==========================================
  Files         185      185              
  Lines        8717     8733      +16     
==========================================
+ Hits         7670     7682      +12     
- Misses        797      799       +2     
- Partials      250      252       +2     
Impacted Files Coverage Δ
pkg/reconciler/route/resources/ingress.go 100.00% <ø> (+3.25%) ⬆️
pkg/reconciler/route/reconcile_resources.go 76.19% <67.64%> (-4.40%) ⬇️
pkg/reconciler/route/route.go 75.52% <100.00%> (ø)
pkg/reconciler/autoscaling/kpa/scaler.go 88.57% <0.00%> (-1.43%) ⬇️
pkg/activator/net/revision_backends.go 91.40% <0.00%> (+0.90%) ⬆️
pkg/reconciler/configuration/configuration.go 88.28% <0.00%> (+1.56%) ⬆️

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 1dd43e9...cb9a6df. Read the comment docs.

Change-Id: I93082a41053183380589aa168e8355a2e282cb38
@vagababov
Copy link
Contributor Author

fixed the lint issues

@vagababov
Copy link
Contributor Author

/retest

@vagababov
Copy link
Contributor Author

/test pull-knative-serving-upgrade-tests

@vagababov
Copy link
Contributor Author

/retest

3 similar comments
@vagababov
Copy link
Contributor Author

/retest

@vagababov
Copy link
Contributor Author

/retest

@vagababov
Copy link
Contributor Author

/retest

func serializeRollout(ctx context.Context, r *traffic.Rollout) string {
sr, err := json.Marshal(r)
if err != nil {
// This must not never happen in the normal course of things.
Copy link
Contributor

Choose a reason for hiding this comment

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

super nit but I think this is a double negative and you actually want to say

Suggested change
// This must not never happen in the normal course of things.
// This should never happen in the normal course of things.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yep :) thanks.

Copy link
Contributor

@julz julz 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 Nov 16, 2020
@knative-prow-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

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

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

@vagababov
Copy link
Contributor Author

/retest

@knative-prow-robot knative-prow-robot merged commit 57f2ae7 into knative:master Nov 16, 2020
yangyunfeng007 pushed a commit to yangyunfeng007/serving that referenced this pull request Nov 19, 2020
* Start executing rollout steps in the ingress reconcile

- This applies rolledout reconcile to the annotaion (no ingress spec changes yet)
- Moved the appllication from the createingress to route controller — since we need to compute diffs
  which makes things easier this way, because to do rollout we need to compare previous with the new one.

Change-Id: Iff42c7b5498e76ca0777908cac82f09b4c9794ca

* use named fields

Change-Id: I93082a41053183380589aa168e8355a2e282cb38

* nit
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 area/networking 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