mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 15:05:27 +00:00
Merge pull request #53580 from xiangpengzhao/deprecated-beta-sc
Automatic merge from submit-queue (batch tested with PRs 53580, 55568). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Mark BetaStorageClassAnnotation as deprecated **What this PR does / why we need it**: Mark BetaStorageClassAnnotation as deprecated. **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes # ref: #51440 https://github.com/kubernetes/kubernetes/pull/51440#issuecomment-329594284 **Special notes for your reviewer**: /cc @wongma7 @msau42 **Release note**: ```release-note action required: The `storage.k8s.io/v1beta1` API and `volume.beta.kubernetes.io/storage-class` annotation are deprecated. They will be removed in a future release. Please use v1 API and field `v1.PersistentVolumeClaim.Spec.StorageClassName`/`v1.PersistentVolume.Spec.StorageClassName` instead. ```
This commit is contained in:
commit
9ce5d67088
@ -404,7 +404,7 @@ type PersistentVolumeClaimVolumeSource struct {
|
||||
|
||||
const (
|
||||
// BetaStorageClassAnnotation represents the beta/previous StorageClass annotation.
|
||||
// It's currently still used and will be held for backwards compatibility
|
||||
// It's deprecated and will be removed in a future release. (#51440)
|
||||
BetaStorageClassAnnotation = "volume.beta.kubernetes.io/storage-class"
|
||||
|
||||
// MountOptionAnnotation defines mount option annotation used in PVs
|
||||
|
Loading…
Reference in New Issue
Block a user