-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Reclaim the use of the revision label configurationGeneration
#3204
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dprotaso: 0 warnings.
In response to this:
Addresses #643
- in 0.3 the value of this label was the configuration's
spec.generation
.- now (0.4) the value of this label is set to the configuration's
metadata.generation
We are not switching the latest created revision selection to key
off theconfigurationGeneration
label key since there may be a
'race' while migration occurs
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.
/test pull-knative-serving-integration-tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cosmetic.
/test pull-knative-serving-upgrade-tests |
- in 0.3 the value of this label was the configuration's `spec.generation`. - now (0.4) the value of this label is set to the configuration's `metadata.generation` We are not switching the latest created revision selection to key off the `configurationGeneration` label key since there may be a 'race' while migration occurs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
Made an issue for the flakey unit test - #3209 |
I notice the following: Really old revisions may have a This happens if they were created prior to 0.3. I'll add logic to 'drop' this label given it will probably confuse the user given the mismatch in value (ie. you'll see revisions with potentially the same label value) I also see 0.2 added spec.generation as an annotation - those aren't updated so I'll 'remove' those as well.
|
Depending on when the revision was created it could have the annotation or label /configurationGeneration that pointed to a config's spec.generation This is now dropped
/hold cancel |
/assign @mattmoor |
@@ -447,3 +455,43 @@ func (c *Reconciler) updateStatus(desired *v1alpha1.Revision) (*v1alpha1.Revisio | |||
existing.Status = desired.Status | |||
return c.ServingClientSet.ServingV1alpha1().Revisions(desired.Namespace).UpdateStatus(existing) | |||
} | |||
|
|||
// TODO(643) Change this logic in 0.5 to only drop the deprecated label | |||
// Delete this logic in 0.6 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't wait for the day!
Generally LGTM, but left a comment about better documenting the nuances of the migration code. |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dprotaso, 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 |
Addresses #643
spec.generation
.metadata.generation
We are not switching the latest created revision selection to key
off the
configurationGeneration
label key since there may be a'race' while migration occurs