From 0f7cd149596ee5e2eefaeb75e3005e3da22eca24 Mon Sep 17 00:00:00 2001 From: carlory Date: Mon, 28 Jul 2025 11:52:12 +0800 Subject: [PATCH] Fix prerelease-lifecycle for volumeattributesclass --- staging/src/k8s.io/api/storage/v1alpha1/types.go | 4 +++- .../storage/v1alpha1/zz_generated.prerelease-lifecycle.go | 8 +++++++- staging/src/k8s.io/api/storage/v1beta1/types.go | 2 ++ .../storage/v1beta1/zz_generated.prerelease-lifecycle.go | 6 ++++++ 4 files changed, 18 insertions(+), 2 deletions(-) diff --git a/staging/src/k8s.io/api/storage/v1alpha1/types.go b/staging/src/k8s.io/api/storage/v1alpha1/types.go index 62dbdb53662..2785b01d4a2 100644 --- a/staging/src/k8s.io/api/storage/v1alpha1/types.go +++ b/staging/src/k8s.io/api/storage/v1alpha1/types.go @@ -261,6 +261,8 @@ type CSIStorageCapacityList struct { // +genclient // +genclient:nonNamespaced // +k8s:prerelease-lifecycle-gen:introduced=1.29 +// +k8s:prerelease-lifecycle-gen:deprecated=1.32 +// +k8s:prerelease-lifecycle-gen:replacement=storage.k8s.io,v1,VolumeAttributesClass // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // VolumeAttributesClass represents a specification of mutable volume attributes @@ -296,7 +298,7 @@ type VolumeAttributesClass struct { // +k8s:prerelease-lifecycle-gen:introduced=1.29 // +k8s:prerelease-lifecycle-gen:deprecated=1.32 -// +k8s:prerelease-lifecycle-gen:replacement=storage.k8s.io,v1,VolumeAttributesClass +// +k8s:prerelease-lifecycle-gen:replacement=storage.k8s.io,v1,VolumeAttributesClassList // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // VolumeAttributesClassList is a collection of VolumeAttributesClass objects. diff --git a/staging/src/k8s.io/api/storage/v1alpha1/zz_generated.prerelease-lifecycle.go b/staging/src/k8s.io/api/storage/v1alpha1/zz_generated.prerelease-lifecycle.go index 3048374c937..765e65881f3 100644 --- a/staging/src/k8s.io/api/storage/v1alpha1/zz_generated.prerelease-lifecycle.go +++ b/staging/src/k8s.io/api/storage/v1alpha1/zz_generated.prerelease-lifecycle.go @@ -133,6 +133,12 @@ func (in *VolumeAttributesClass) APILifecycleDeprecated() (major, minor int) { return 1, 32 } +// APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. +// It is controlled by "k8s:prerelease-lifecycle-gen:replacement=,," tags in types.go. +func (in *VolumeAttributesClass) APILifecycleReplacement() schema.GroupVersionKind { + return schema.GroupVersionKind{Group: "storage.k8s.io", Version: "v1", Kind: "VolumeAttributesClass"} +} + // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *VolumeAttributesClass) APILifecycleRemoved() (major, minor int) { @@ -154,7 +160,7 @@ func (in *VolumeAttributesClassList) APILifecycleDeprecated() (major, minor int) // APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. // It is controlled by "k8s:prerelease-lifecycle-gen:replacement=,," tags in types.go. func (in *VolumeAttributesClassList) APILifecycleReplacement() schema.GroupVersionKind { - return schema.GroupVersionKind{Group: "storage.k8s.io", Version: "v1", Kind: "VolumeAttributesClass"} + return schema.GroupVersionKind{Group: "storage.k8s.io", Version: "v1", Kind: "VolumeAttributesClassList"} } // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. diff --git a/staging/src/k8s.io/api/storage/v1beta1/types.go b/staging/src/k8s.io/api/storage/v1beta1/types.go index 86123cf1d9f..4f350b0b73c 100644 --- a/staging/src/k8s.io/api/storage/v1beta1/types.go +++ b/staging/src/k8s.io/api/storage/v1beta1/types.go @@ -775,6 +775,8 @@ type VolumeAttributesClass struct { } // +k8s:prerelease-lifecycle-gen:introduced=1.31 +// +k8s:prerelease-lifecycle-gen:deprecated=1.34 +// +k8s:prerelease-lifecycle-gen:replacement=storage.k8s.io,v1,VolumeAttributesClassList // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // VolumeAttributesClassList is a collection of VolumeAttributesClass objects. diff --git a/staging/src/k8s.io/api/storage/v1beta1/zz_generated.prerelease-lifecycle.go b/staging/src/k8s.io/api/storage/v1beta1/zz_generated.prerelease-lifecycle.go index 825ce4b5563..26b93db0dc0 100644 --- a/staging/src/k8s.io/api/storage/v1beta1/zz_generated.prerelease-lifecycle.go +++ b/staging/src/k8s.io/api/storage/v1beta1/zz_generated.prerelease-lifecycle.go @@ -301,6 +301,12 @@ func (in *VolumeAttributesClassList) APILifecycleDeprecated() (major, minor int) return 1, 34 } +// APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type. +// It is controlled by "k8s:prerelease-lifecycle-gen:replacement=,," tags in types.go. +func (in *VolumeAttributesClassList) APILifecycleReplacement() schema.GroupVersionKind { + return schema.GroupVersionKind{Group: "storage.k8s.io", Version: "v1", Kind: "VolumeAttributesClassList"} +} + // APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. // It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor. func (in *VolumeAttributesClassList) APILifecycleRemoved() (major, minor int) {