Re: [kubernetes/kubernetes] Remove storage class beta annotations. (#51440)

4 views
Skip to first unread message

Timothy St. Clair

unread,
Sep 14, 2017, 10:42:06 AM9/14/17
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

/cc @kubernetes/sig-storage-pr-reviews


You are receiving this because you are on a team that was mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

Michelle Au

unread,
Sep 14, 2017, 2:35:42 PM9/14/17
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

Have we announced deprecation on the beta annotation? The deprecation policy says support can be removed 3 months or 1 release from announcement.

Matthew Wong

unread,
Sep 14, 2017, 4:08:59 PM9/14/17
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

No. I'm sure the intention to deprecate it in 1.7 is buried somewhere but that probably doesn't constitute an announcement, somebody with authority please make an announcement soon so we can remove this for 1.9? : ]

Peter (XiangPeng) Zhao

unread,
Oct 9, 2017, 2:27:19 AM10/9/17
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

I send a PR #53580 to mark it as deprecated. Do we want to cherry-pick it to 1.8?

Michelle Au

unread,
Oct 9, 2017, 11:29:24 AM10/9/17
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

I don't think we can cherry pick deprecation notices. So we can remove this in 1.10.

Kubernetes Submit Queue

unread,
Oct 17, 2017, 4:22:08 AM10/17/17
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

@xiangpengzhao PR needs rebase

k8s-ci-robot

unread,
Oct 17, 2017, 7:01:16 AM10/17/17
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

@xiangpengzhao: The following test failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pull-kubernetes-e2e-gce-bazel 34a0f2a link /test pull-kubernetes-e2e-gce-bazel

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

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. I understand the commands that are listed here.

k8s-ci-robot

unread,
Oct 17, 2017, 7:01:34 AM10/17/17
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

@xiangpengzhao: The following tests failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pull-kubernetes-e2e-gce-bazel 34a0f2a link /test pull-kubernetes-e2e-gce-bazel
pull-kubernetes-e2e-gce-gpu 34a0f2a link /test pull-kubernetes-e2e-gce-gpu

k8s-ci-robot

unread,
Oct 17, 2017, 7:02:57 AM10/17/17
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

@xiangpengzhao: The following tests failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pull-kubernetes-e2e-gce-bazel 34a0f2a link /test pull-kubernetes-e2e-gce-bazel
pull-kubernetes-e2e-gce-gpu 34a0f2a link /test pull-kubernetes-e2e-gce-gpu
pull-kubernetes-bazel-test 34a0f2a link /test pull-kubernetes-bazel-test
pull-kubernetes-bazel-build 34a0f2a link /test pull-kubernetes-bazel-build
pull-kubernetes-node-e2e 34a0f2a link /test pull-kubernetes-node-e2e

k8s-ci-robot

unread,
Oct 17, 2017, 7:03:16 AM10/17/17
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

@xiangpengzhao: The following tests failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pull-kubernetes-e2e-gce-bazel 34a0f2a link /test pull-kubernetes-e2e-gce-bazel
pull-kubernetes-e2e-gce-gpu 34a0f2a link /test pull-kubernetes-e2e-gce-gpu
pull-kubernetes-bazel-test 34a0f2a link /test pull-kubernetes-bazel-test

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

k8s-ci-robot

unread,
Oct 17, 2017, 7:03:22 AM10/17/17
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

@xiangpengzhao: The following tests failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pull-kubernetes-e2e-gce-bazel 34a0f2a link /test pull-kubernetes-e2e-gce-bazel
pull-kubernetes-e2e-gce-gpu 34a0f2a link /test pull-kubernetes-e2e-gce-gpu
pull-kubernetes-bazel-test 34a0f2a link /test pull-kubernetes-bazel-test
pull-kubernetes-bazel-build 34a0f2a link /test pull-kubernetes-bazel-build

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

k8s-ci-robot

unread,
Oct 17, 2017, 7:05:44 AM10/17/17
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

@xiangpengzhao: The following tests failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pull-kubernetes-e2e-gce-bazel 34a0f2a link /test pull-kubernetes-e2e-gce-bazel
pull-kubernetes-e2e-gce-gpu 34a0f2a link /test pull-kubernetes-e2e-gce-gpu
pull-kubernetes-bazel-test 34a0f2a link /test pull-kubernetes-bazel-test
pull-kubernetes-bazel-build 34a0f2a link /test pull-kubernetes-bazel-build
pull-kubernetes-node-e2e 34a0f2a link /test pull-kubernetes-node-e2e
pull-kubernetes-e2e-kops-aws 34a0f2a link /test pull-kubernetes-e2e-kops-aws

k8s-ci-robot

unread,
Oct 17, 2017, 7:06:31 AM10/17/17
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention
pull-kubernetes-e2e-gce-etcd3 34a0f2a link /test pull-kubernetes-e2e-gce-etcd3

k8s-ci-robot

unread,
Oct 17, 2017, 7:06:47 AM10/17/17
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention
pull-kubernetes-kubemark-e2e-gce 34a0f2a link /test pull-kubernetes-kubemark-e2e-gce
pull-kubernetes-unit 34a0f2a link /test pull-kubernetes-unit

k8s-ci-robot

unread,
Oct 17, 2017, 7:07:03 AM10/17/17
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Jan Šafránek

unread,
Oct 18, 2017, 7:25:09 AM10/18/17
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

@jsafrane commented on this pull request.


In test/e2e/storage/volume_provisioning.go:

> @@ -419,9 +418,7 @@ var _ = SIGDescribe("Dynamic Provisioning", func() {
 				defer deleteStorageClass(c, class.Name)
 
 				claim := newClaim(*betaTest, ns, "beta")
-				claim.Annotations = map[string]string{

I think you should remove whole if betaTest != nil { branch as there is no need to test the beta.

Jan Šafránek

unread,
Oct 18, 2017, 7:27:09 AM10/18/17
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

Should we remove whole storage.k8s.io/v1beta1 API as well as part of this PR?

Peter (XiangPeng) Zhao

unread,
Oct 19, 2017, 3:59:57 AM10/19/17
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Push

@xiangpengzhao pushed 1 commit.

  • fc73f42 Clear other beta annotations


You are receiving this because you are subscribed to this thread.
View it on GitHub or mute the thread.

Peter (XiangPeng) Zhao

unread,
Oct 19, 2017, 4:03:48 AM10/19/17
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

Should we remove whole storage.k8s.io/v1beta1 API as well as part of this PR?

@jsafrane Do we still want to announce the deprecation of beta annotations first (#53580) and then remove the beta annotations as this PR does and then graduate from v1beta1 to v1 ?


You are receiving this because you are on a team that was mentioned.

Reply to this email directly, view it on GitHub, or mute the thread.

Peter (XiangPeng) Zhao

unread,
Oct 19, 2017, 4:05:16 AM10/19/17
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

@xiangpengzhao commented on this pull request.


In test/e2e/storage/volume_provisioning.go:

> @@ -419,9 +418,7 @@ var _ = SIGDescribe("Dynamic Provisioning", func() {
 				defer deleteStorageClass(c, class.Name)
 
 				claim := newClaim(*betaTest, ns, "beta")
-				claim.Annotations = map[string]string{

I will leave the test until we decide when to graduate v1beta1 to v1 :)

Jan Šafránek

unread,
Oct 19, 2017, 4:10:35 AM10/19/17
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

@xiangpengzhao, I think we should deprecate all in one release

Peter (XiangPeng) Zhao

unread,
Oct 19, 2017, 4:35:10 AM10/19/17
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

I think we should deprecate all in one release.

@jsafrane agree. So does that mean we should deprecate beta annotations and beta api (in #53580) in 1.9 (since we missed both the 1.7 and 1.8 trains), and then remove all the beta things (in this PR) in 1.10?

Jan Šafránek

unread,
Oct 30, 2017, 7:50:04 AM10/30/17
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

@jsafrane agree. So does that mean we should deprecate beta annotations and beta api (in #53580) in 1.9 (since we missed both the 1.7 and 1.8 trains), and then remove all the beta things (in this PR) in 1.10?

I am not familiar with beta deprecation conventions, but yes, that's how I understand it.

Kubernetes Submit Queue

unread,
Nov 9, 2017, 4:21:44 PM11/9/17
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

@xiangpengzhao PR needs rebase

Peter (XiangPeng) Zhao

unread,
Jan 8, 2018, 10:46:59 PM1/8/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

Ah sorry, I just checked the deprecation policy again. It says that for deprecating an API, it is 6 months/2 releases for beta, not 1 release like I originally thought.

@msau42 so we should remove the beta annotations in 1.11 since it's marked as deprecated in 1.9, right?

Also, regarding the release note, I think we should not deprecate the v1beta API group. We plan to reuse it for CSI.

Agreed. I have modified the PR title and release notes.

Michelle Au

unread,
Jan 9, 2018, 11:29:58 AM1/9/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

Yup, that's right.

Peter (XiangPeng) Zhao

unread,
Jan 9, 2018, 12:20:46 PM1/9/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

@msau42 thanks!
/hold
until 1.11 train starts.

Kubernetes Submit Queue

unread,
Jan 24, 2018, 3:18:40 AM1/24/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

@xiangpengzhao PR needs rebase

k8s-ci-robot

unread,
Apr 2, 2018, 10:15:57 PM4/2/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: gyliu513, xiangpengzhao
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approver: dchen1107

Assign the PR to them by writing /assign @dchen1107 in a comment when ready.

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

k8s-ci-robot

unread,
Apr 2, 2018, 10:19:18 PM4/2/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

@xiangpengzhao: The following test failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pull-kubernetes-bazel-build 1041fea link /test pull-kubernetes-bazel-build

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

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. I understand the commands that are listed here.

k8s-ci-robot

unread,
Apr 2, 2018, 10:19:44 PM4/2/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

@xiangpengzhao: The following tests failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pull-kubernetes-bazel-build 1041fea link /test pull-kubernetes-bazel-build
pull-kubernetes-e2e-gce-device-plugin-gpu 1041fea link /test pull-kubernetes-e2e-gce-device-plugin-gpu

k8s-ci-robot

unread,
Apr 2, 2018, 10:20:20 PM4/2/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

@xiangpengzhao: The following tests failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pull-kubernetes-bazel-build 1041fea link /test pull-kubernetes-bazel-build
pull-kubernetes-e2e-gce-device-plugin-gpu 1041fea link /test pull-kubernetes-e2e-gce-device-plugin-gpu
pull-kubernetes-e2e-kops-aws 1041fea link /test pull-kubernetes-e2e-kops-aws
pull-kubernetes-e2e-gce 1041fea link /test pull-kubernetes-e2e-gce
pull-kubernetes-node-e2e 1041fea link /test pull-kubernetes-node-e2e

k8s-ci-robot

unread,
Apr 2, 2018, 10:20:38 PM4/2/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

@xiangpengzhao: The following tests failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pull-kubernetes-bazel-build 1041fea link /test pull-kubernetes-bazel-build
pull-kubernetes-e2e-gce-device-plugin-gpu 1041fea link /test pull-kubernetes-e2e-gce-device-plugin-gpu
pull-kubernetes-e2e-kops-aws 1041fea link /test pull-kubernetes-e2e-kops-aws
pull-kubernetes-e2e-gce 1041fea link /test pull-kubernetes-e2e-gce

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

k8s-ci-robot

unread,
Apr 2, 2018, 10:20:43 PM4/2/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

@xiangpengzhao: The following tests failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pull-kubernetes-bazel-build 1041fea link /test pull-kubernetes-bazel-build
pull-kubernetes-e2e-gce-device-plugin-gpu 1041fea link /test pull-kubernetes-e2e-gce-device-plugin-gpu
pull-kubernetes-e2e-kops-aws 1041fea link /test pull-kubernetes-e2e-kops-aws

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

k8s-ci-robot

unread,
Apr 2, 2018, 10:20:52 PM4/2/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

@xiangpengzhao: The following tests failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pull-kubernetes-bazel-build 1041fea link /test pull-kubernetes-bazel-build
pull-kubernetes-e2e-gce-device-plugin-gpu 1041fea link /test pull-kubernetes-e2e-gce-device-plugin-gpu
pull-kubernetes-e2e-kops-aws 1041fea link /test pull-kubernetes-e2e-kops-aws
pull-kubernetes-e2e-gce 1041fea link /test pull-kubernetes-e2e-gce
pull-kubernetes-node-e2e 1041fea link /test pull-kubernetes-node-e2e
pull-kubernetes-integration 1041fea link /test pull-kubernetes-integration
pull-kubernetes-typecheck 1041fea link /test pull-kubernetes-typecheck

k8s-ci-robot

unread,
Apr 2, 2018, 10:21:27 PM4/2/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention
pull-kubernetes-bazel-test 1041fea link /test pull-kubernetes-bazel-test

k8s-ci-robot

unread,
Apr 2, 2018, 10:21:32 PM4/2/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

k8s-ci-robot

unread,
Apr 2, 2018, 10:21:48 PM4/2/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention
pull-kubernetes-typecheck 1041fea link /test pull-kubernetes-typecheck
pull-kubernetes-bazel-test 1041fea link /test pull-kubernetes-bazel-test
pull-kubernetes-kubemark-e2e-gce 1041fea link /test pull-kubernetes-kubemark-e2e-gce

Peter (XiangPeng) Zhao

unread,
Apr 2, 2018, 10:41:58 PM4/2/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

rebased & updated. @msau42 PTAL. Thanks!
/hold cancel

k8s-ci-robot

unread,
Apr 2, 2018, 10:46:20 PM4/2/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention
pull-kubernetes-bazel-test 1041fea link /test pull-kubernetes-bazel-test
pull-kubernetes-kubemark-e2e-gce 1041fea link /test pull-kubernetes-kubemark-e2e-gce
pull-kubernetes-typecheck 8833a3f link /test pull-kubernetes-typecheck

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

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. I understand the commands that are listed here.

k8s-ci-robot

unread,
Apr 2, 2018, 10:47:35 PM4/2/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention
pull-kubernetes-kubemark-e2e-gce 1041fea link /test pull-kubernetes-kubemark-e2e-gce
pull-kubernetes-typecheck 8833a3f link /test pull-kubernetes-typecheck
pull-kubernetes-bazel-test 8833a3f link /test pull-kubernetes-bazel-test

k8s-ci-robot

unread,
Apr 2, 2018, 11:20:17 PM4/2/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

@xiangpengzhao: The following tests failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pull-kubernetes-e2e-gce-device-plugin-gpu 1041fea link /test pull-kubernetes-e2e-gce-device-plugin-gpu
pull-kubernetes-e2e-gce 1041fea link /test pull-kubernetes-e2e-gce
pull-kubernetes-kubemark-e2e-gce 1041fea link /test pull-kubernetes-kubemark-e2e-gce
pull-kubernetes-typecheck 8833a3f link /test pull-kubernetes-typecheck
pull-kubernetes-bazel-test 8833a3f link /test pull-kubernetes-bazel-test
pull-kubernetes-verify 8833a3f link /test pull-kubernetes-verify

k8s-ci-robot

unread,
Apr 3, 2018, 2:27:20 AM4/3/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

@xiangpengzhao: The following tests failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pull-kubernetes-verify 8833a3f link /test pull-kubernetes-verify
pull-kubernetes-bazel-test b238668 link /test pull-kubernetes-bazel-test

Michelle Au

unread,
Apr 3, 2018, 2:28:29 PM4/3/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

@msau42 commented on this pull request.


In pkg/apis/core/validation/validation.go:

> @@ -1844,15 +1844,7 @@ func ValidatePersistentVolumeClaimUpdate(newPvc, oldPvc *core.PersistentVolumeCl
 		oldPvcClone.Spec.VolumeName = newPvcClone.Spec.VolumeName
 	}
 
-	if validateStorageClassUpgrade(oldPvcClone.Annotations, newPvcClone.Annotations,

We only provided an upgrade path in 1.10 even though we officially deprecated it in 1.9. Is it acceptable to remove support for this in 1.11?


In test/e2e/autoscaling/cluster_size_autoscaling.go:

>  		pvcConfig := framework.PersistentVolumeClaimConfig{
-			Annotations: map[string]string{

FYI we will need to backport all the e2e test fixes to 1.10 as well. Upgrade tests will run 1.10 versions of e2e tests against a 1.11 cluster.

Peter (XiangPeng) Zhao

unread,
Apr 9, 2018, 4:51:39 AM4/9/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

@xiangpengzhao commented on this pull request.


In pkg/apis/core/validation/validation.go:

> @@ -1844,15 +1844,7 @@ func ValidatePersistentVolumeClaimUpdate(newPvc, oldPvc *core.PersistentVolumeCl
 		oldPvcClone.Spec.VolumeName = newPvcClone.Spec.VolumeName
 	}
 
-	if validateStorageClassUpgrade(oldPvcClone.Annotations, newPvcClone.Annotations,

It'd be good to keep the annotations for another release as per this concern and #51440 (comment).
/hold

Michelle Au

unread,
Apr 9, 2018, 11:31:15 AM4/9/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

@msau42 commented on this pull request.


In pkg/apis/core/validation/validation.go:

> @@ -1844,15 +1844,7 @@ func ValidatePersistentVolumeClaimUpdate(newPvc, oldPvc *core.PersistentVolumeCl
 		oldPvcClone.Spec.VolumeName = newPvcClone.Spec.VolumeName
 	}
 
-	if validateStorageClassUpgrade(oldPvcClone.Annotations, newPvcClone.Annotations,

Can we make the e2e test update now, so that next release we don't need to backport?

Peter (XiangPeng) Zhao

unread,
Apr 9, 2018, 11:40:27 PM4/9/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

@xiangpengzhao commented on this pull request.


In pkg/apis/core/validation/validation.go:

> @@ -1844,15 +1844,7 @@ func ValidatePersistentVolumeClaimUpdate(newPvc, oldPvc *core.PersistentVolumeCl
 		oldPvcClone.Spec.VolumeName = newPvcClone.Spec.VolumeName
 	}
 
-	if validateStorageClassUpgrade(oldPvcClone.Annotations, newPvcClone.Annotations,

I guess I misread your previous comment. Did you mean that we can remove beta annotations but keep the validation (validateStorageClassUpgrade) and then update the e2e test as is done in this PR and backport it to 1.10?

Michelle Au

unread,
Apr 9, 2018, 11:50:07 PM4/9/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

@msau42 commented on this pull request.


In pkg/apis/core/validation/validation.go:

> @@ -1844,15 +1844,7 @@ func ValidatePersistentVolumeClaimUpdate(newPvc, oldPvc *core.PersistentVolumeCl
 		oldPvcClone.Spec.VolumeName = newPvcClone.Spec.VolumeName
 	}
 
-	if validateStorageClassUpgrade(oldPvcClone.Annotations, newPvcClone.Annotations,

I mean, we can change the e2e tests to not use the beta annotations in 1.11.

Then in 1.12, when beta annotations are removed, we don't have to modify 1.11 e2e tests in a patch release.

Peter (XiangPeng) Zhao

unread,
Apr 10, 2018, 3:38:28 AM4/10/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

@xiangpengzhao commented on this pull request.


In pkg/apis/core/validation/validation.go:

> @@ -1844,15 +1844,7 @@ func ValidatePersistentVolumeClaimUpdate(newPvc, oldPvc *core.PersistentVolumeCl
 		oldPvcClone.Spec.VolumeName = newPvcClone.Spec.VolumeName
 	}
 
-	if validateStorageClassUpgrade(oldPvcClone.Annotations, newPvcClone.Annotations,

Got it. I send a separate PR #62317 and a cherry-picking #62319. Please see if they're what you're expecting :) Thanks!

Michelle Au

unread,
Jun 12, 2018, 11:53:16 AM6/12/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

According to the updated deprecation policy, beta annotations are considered part of the API, so we cannot deprecate/remove this until we have core/v2

Peter (XiangPeng) Zhao

unread,
Jul 16, 2018, 2:18:39 AM7/16/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

Thanks @msau42 !
Then is it necessary to revert #62317 (Remove the use of storage class beta annotations in e2e tests) ?

Peter (XiangPeng) Zhao

unread,
Jul 16, 2018, 2:46:16 AM7/16/18
to kubernetes/kubernetes, k8s-mirror-storage-pr-reviews, Team mention

Closed #51440.

Reply all
Reply to author
Forward
0 new messages