Skip to content

Remove migration of deprecated generation labels and annotation - #3335

Merged
knative-prow-robot merged 1 commit into
knative:masterfrom
joshrider:remove-migration
Mar 25, 2019
Merged

knative-prow-robot merged 1 commit into
knative:masterfrom
joshrider:remove-migration

Conversation

@joshrider

Copy link
Copy Markdown
Contributor

Addresses #643

Drops the migration code used for the jump from 0.3 to 0.4.

Functional dependency on /configurationMetadataGeneration is dropped
in #3325.

Addresses knative#643

In 0.4, Revisions had generation labels migrated toward use of
`/configurationGeneration` label to determine a Configuration's
latest created Revision.

This commit leaves the deprecated `/configurationMetadataGeneration`
label intact to allow rollback to 0.4, but removes the migration
of the deprecated label, along with the deletion of an annotation
previously used for the same purpose.

Functional dependency on `/configurationMetadataGeneration` is dropped
in knative#3325.
@googlebot

Copy link
Copy Markdown

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please visit https://cla.developers.google.com/ to sign.

Once you've signed (or fixed any issues), please reply here (e.g. I signed it!) and we'll verify it.


What to do if you already signed the CLA

Individual signers
Corporate signers

ℹ️ Googlers: Go here for more info.

@knative-prow-robot knative-prow-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Feb 27, 2019

@knative-prow-robot knative-prow-robot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@pivotal-joshua-rider: 0 warnings.

Details

In response to this:

Addresses #643

Drops the migration code used for the jump from 0.3 to 0.4.

Functional dependency on /configurationMetadataGeneration is dropped
in #3325.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@knative-prow-robot knative-prow-robot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Feb 27, 2019
@dprotaso

dprotaso commented Feb 27, 2019 via email

Copy link
Copy Markdown
Member

@knative-prow-robot knative-prow-robot removed the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Feb 27, 2019
@knative-metrics-robot

Copy link
Copy Markdown

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

File Old Coverage New Coverage Delta
pkg/reconciler/v1alpha1/revision/revision.go 90.4% 91.2% 0.9

@dprotaso

Copy link
Copy Markdown
Member

/retest

@joshrider

Copy link
Copy Markdown
Contributor Author

I signed it!

@googlebot

Copy link
Copy Markdown

CLAs look good, thanks!

ℹ️ Googlers: Go here for more info.

@joshrider

Copy link
Copy Markdown
Contributor Author

/assign @tcnghia

@tcnghia

tcnghia commented Mar 19, 2019

Copy link
Copy Markdown
Contributor

/assign @dgerd

@mattmoor mattmoor added this to the Serving 0.5 milestone Mar 19, 2019
}

// TODO(643) Change this logic in 0.5 to only drop the deprecated label
// Delete this logic in 0.6

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is not what this change does. cc @dprotaso

@dprotaso dprotaso Mar 20, 2019 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The comments are wrong.

In 0.4 there is actually a functional dependency on the deprecated label. That's being dropped for 0.5 here: #3325

So the earliest time we could add code to remove the 'deprecated label' is 0.6 - then in 0.7 delete the removal logic.

@pivotal-joshua-rider and I were thinking it's not a real issue to have the deprecated label /configurationMetadataGeneration around given that it should be the same value as the non-deprecated label /configurationGeneration.

Then we don't need to make work for ourselves in 0.6 and 0.7 wrt to this migration code.

@mattmoor

Copy link
Copy Markdown
Contributor

/lgtm
/approve

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Mar 25, 2019
@knative-prow-robot

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mattmoor, pivotal-joshua-rider

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 Mar 25, 2019
@joshrider

Copy link
Copy Markdown
Contributor Author

/test pull-knative-serving-upgrade-tests

2 similar comments
@joshrider

Copy link
Copy Markdown
Contributor Author

/test pull-knative-serving-upgrade-tests

@joshrider

Copy link
Copy Markdown
Contributor Author

/test pull-knative-serving-upgrade-tests

@knative-prow-robot
knative-prow-robot merged commit d3556e1 into knative:master Mar 25, 2019
@joshrider
joshrider deleted the remove-migration branch August 6, 2019 15:17
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. 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.

8 participants