-
Notifications
You must be signed in to change notification settings - Fork 40.1k
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
Add a new API version apps/v1beta2 #48746
Conversation
38f2b3c
to
a926fde
Compare
@kubernetes/sig-apps-api-reviews This is ready for review. |
pkg/apis/apps/v1beta2/conversion.go
Outdated
"fmt" | ||
|
||
appsv1beta2 "k8s.io/api/apps/v1beta2" | ||
|
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.
kill this newline
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.
Done
/approve |
/assign @smarterclayton |
/approve |
/retest |
/test pull-kubernetes-e2e-gce-etcd3 Seems like a test infra problem: #49320
|
Apps clientset refers to AppsV1beta2 after apps/v1beta2 is created. Use AppsV1beta1 for now before switching everything to AppsV1beta2.
/test pull-kubernetes-e2e-gce-etcd3 |
Finally, all green again 😄 |
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
pkg/master/master.go
Outdated
@@ -390,7 +389,8 @@ func DefaultAPIResourceConfigSource() *serverstorage.ResourceConfig { | |||
authenticationv1beta1.SchemeGroupVersion, | |||
autoscalingapiv1.SchemeGroupVersion, | |||
appsv1beta1.SchemeGroupVersion, | |||
appsv1beta2.SchemeGroupVersion, | |||
// TODO: enable apps/v1beta2 by default before 1.8 release, after the API changes are done | |||
// appsv1beta2.SchemeGroupVersion, |
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.
Turned off by default +1.
@@ -29,13 +29,15 @@ const ( | |||
StatefulSetRevisionLabel = ControllerRevisionHashLabelKey | |||
) | |||
|
|||
// WIP: This is not ready to be used and we plan to make breaking changes to it. |
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.
Everything looks marked as WIP. +1
Thanks much. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bgrant0607, erictune, janetkuo, kow3ns Associated issue: 49135 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 |
The |
Automatic merge from submit-queue |
Automatic merge from submit-queue Deprecate Deployment .spec.rollbackTo field ~Depends on #48746~ (merged) xref: #46934, #49135 1. Deprecate Deployment field `.spec.rollbackTo` in `extensions/v1beta1` and `apps/v1beta1`, and remove the same field and `/rollback` endpoint from `apps/v1beta2` Deployment. 1. Add an annotation `deprecated.deployment.rollback.to` in `apps/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. ```release-note Deprecate Deployment .spec.rollbackTo field ```
xref: #49135
This PR adds a new API version
apps/v1beta2
which contains a copy (of types, conversions, and defaults) ofapps/v1beta1
StatefulSet, Deployment, and their subresources. Note thatapps/v1beta2
is still WIP and we will make breaking changes to it before releasing 1.8.Moving core controllers (StatefulSet, Deployment, ReplicaSet, DaemonSet) to
apps/v1beta2
is the first step of moving them toapps/v1
(GA).This PR is a starting point for DaemonSet and ReplicaSet to move from
/extensions
to/apps
and for Deployment and StatefulSet to make some breaking changes (e.g. new defaults and/or remove deprecated fields).