Skip to content

Commit 23cc4f3

Browse files
nilekhck8s-publishing-bot
authored andcommitted
feat: implements Storage Version Migration API in-tree
Signed-off-by: Nilekh Chaudhari <[email protected]> Kubernetes-commit: 91a7708cdcea8cdb1d7db2cc8a27c57741e0cddc
1 parent 170523f commit 23cc4f3

12 files changed

+2456
-0
lines changed

roundtrip_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ import (
7575
storagev1 "k8s.io/api/storage/v1"
7676
storagev1alpha1 "k8s.io/api/storage/v1alpha1"
7777
storagev1beta1 "k8s.io/api/storage/v1beta1"
78+
svmv1alpha1 "k8s.io/api/storagemigration/v1alpha1"
7879

7980
"github.com/stretchr/testify/require"
8081
"k8s.io/apimachinery/pkg/api/apitesting/fuzzer"
@@ -140,6 +141,7 @@ var groups = []runtime.SchemeBuilder{
140141
storagev1alpha1.SchemeBuilder,
141142
storagev1beta1.SchemeBuilder,
142143
storagev1.SchemeBuilder,
144+
svmv1alpha1.SchemeBuilder,
143145
}
144146

145147
func TestRoundTripExternalTypes(t *testing.T) {

storagemigration/v1alpha1/doc.go

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
/*
2+
Copyright 2024 The Kubernetes Authors.
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
*/
16+
17+
// +k8s:deepcopy-gen=package
18+
// +k8s:protobuf-gen=package
19+
// +k8s:openapi-gen=true
20+
// +k8s:prerelease-lifecycle-gen=true
21+
// +groupName=storagemigration.k8s.io
22+
23+
package v1alpha1 // import "k8s.io/api/storagemigration/v1alpha1"

0 commit comments

Comments
 (0)