-
Notifications
You must be signed in to change notification settings - Fork 40k
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
Deprecate Deployment .spec.rollbackTo field #49340
Deprecate Deployment .spec.rollbackTo field #49340
Conversation
8830b2f
to
2e2bb14
Compare
2e2bb14
to
c281dea
Compare
@kubernetes/sig-apps-api-reviews |
c281dea
to
e8b731c
Compare
e8b731c
to
5580af1
Compare
5580af1
to
a6625e5
Compare
Seems a test-infra issue
/test pull-kubernetes-e2e-kops-aws |
The |
de0835b
to
8565fc7
Compare
/retest |
1 similar comment
/retest |
@@ -25,6 +25,7 @@ import ( | |||
const ( | |||
ControllerRevisionHashLabelKey = "controller-revision-hash" | |||
StatefulSetRevisionLabel = ControllerRevisionHashLabelKey | |||
DeprecatedRollbackTo = "deprecated.deployment.rollback.to" |
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.
Is this the right naming convention?
/lgtm |
/approve approved for API change |
1. Deprecate `.spec.rollbackTo` field in extensions/v1beta1 and apps/v1beta1 Deployments 2. Remove the same field from apps/v1beta2 Deployment, and remove its rollback subresource and endpoint
Need to convert deprecated .spec.rollbackTo field into an annotation in apps/v1beta2 Deployment for roundTrip
8565fc7
to
e245fbc
Compare
Just another rebase |
/test pull-kubernetes-e2e-gce-etcd3 |
This is fine. It could be implemented in an external controller using annotations, and consistency across the workload controllers is more important. /approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bgrant0607, erictune, janetkuo, kargakis, kow3ns Associated issue: 48746 The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
/retest |
/test all [submit-queue is verifying that this PR is safe to merge] |
Automatic merge from submit-queue |
Depends on #48746(merged)xref: #46934, #49135
.spec.rollbackTo
inextensions/v1beta1
andapps/v1beta1
, and remove the same field and/rollback
endpoint fromapps/v1beta2
Deployment.deprecated.deployment.rollback.to
inapps/v1beta2
for conversion to/from other versions.Note:
apps/v1beta2
is new in 1.8 (and WIP), so it is okay to make breaking changes to it.