Skip to content

Commit 457df98

Browse files
Merge pull request #54463 from saad-ali/volumeAttachmentAPI
Automatic merge from submit-queue. 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>. Introduce new `VolumeAttachment` API Object **What this PR does / why we need it**: Introduce a new `VolumeAttachment` API Object. This object will be used by the CSI volume plugin to enable external attachers (see design [here](kubernetes/community#1258). In the future, existing volume plugins can be refactored to use this object as well. **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: Part of issue kubernetes/enhancements#178 **Special notes for your reviewer**: None **Release note**: ```release-note NONE ``` Kubernetes-commit: ebe8ea73fd1a961779242dfbb629befa153e96fc
2 parents 62d602d + 6052474 commit 457df98

27 files changed

+1580
-696
lines changed

Godeps/Godeps.json

+700-696
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

informers/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ go_library(
3333
"//vendor/k8s.io/api/scheduling/v1alpha1:go_default_library",
3434
"//vendor/k8s.io/api/settings/v1alpha1:go_default_library",
3535
"//vendor/k8s.io/api/storage/v1:go_default_library",
36+
"//vendor/k8s.io/api/storage/v1alpha1:go_default_library",
3637
"//vendor/k8s.io/api/storage/v1beta1:go_default_library",
3738
"//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
3839
"//vendor/k8s.io/apimachinery/pkg/runtime:go_default_library",

informers/generic.go

+5
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ import (
4040
scheduling_v1alpha1 "k8s.io/api/scheduling/v1alpha1"
4141
settings_v1alpha1 "k8s.io/api/settings/v1alpha1"
4242
storage_v1 "k8s.io/api/storage/v1"
43+
storage_v1alpha1 "k8s.io/api/storage/v1alpha1"
4344
storage_v1beta1 "k8s.io/api/storage/v1beta1"
4445
schema "k8s.io/apimachinery/pkg/runtime/schema"
4546
cache "k8s.io/client-go/tools/cache"
@@ -231,6 +232,10 @@ func (f *sharedInformerFactory) ForResource(resource schema.GroupVersionResource
231232
case storage_v1.SchemeGroupVersion.WithResource("storageclasses"):
232233
return &genericInformer{resource: resource.GroupResource(), informer: f.Storage().V1().StorageClasses().Informer()}, nil
233234

235+
// Group=storage.k8s.io, Version=v1alpha1
236+
case storage_v1alpha1.SchemeGroupVersion.WithResource("volumeattachments"):
237+
return &genericInformer{resource: resource.GroupResource(), informer: f.Storage().V1alpha1().VolumeAttachments().Informer()}, nil
238+
234239
// Group=storage.k8s.io, Version=v1beta1
235240
case storage_v1beta1.SchemeGroupVersion.WithResource("storageclasses"):
236241
return &genericInformer{resource: resource.GroupResource(), informer: f.Storage().V1beta1().StorageClasses().Informer()}, nil

informers/storage/BUILD

+2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ go_library(
1212
deps = [
1313
"//vendor/k8s.io/client-go/informers/internalinterfaces:go_default_library",
1414
"//vendor/k8s.io/client-go/informers/storage/v1:go_default_library",
15+
"//vendor/k8s.io/client-go/informers/storage/v1alpha1:go_default_library",
1516
"//vendor/k8s.io/client-go/informers/storage/v1beta1:go_default_library",
1617
],
1718
)
@@ -28,6 +29,7 @@ filegroup(
2829
srcs = [
2930
":package-srcs",
3031
"//staging/src/k8s.io/client-go/informers/storage/v1:all-srcs",
32+
"//staging/src/k8s.io/client-go/informers/storage/v1alpha1:all-srcs",
3133
"//staging/src/k8s.io/client-go/informers/storage/v1beta1:all-srcs",
3234
],
3335
tags = ["automanaged"],

informers/storage/interface.go

+8
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,16 @@ package storage
2121
import (
2222
internalinterfaces "k8s.io/client-go/informers/internalinterfaces"
2323
v1 "k8s.io/client-go/informers/storage/v1"
24+
v1alpha1 "k8s.io/client-go/informers/storage/v1alpha1"
2425
v1beta1 "k8s.io/client-go/informers/storage/v1beta1"
2526
)
2627

2728
// Interface provides access to each of this group's versions.
2829
type Interface interface {
2930
// V1 provides access to shared informers for resources in V1.
3031
V1() v1.Interface
32+
// V1alpha1 provides access to shared informers for resources in V1alpha1.
33+
V1alpha1() v1alpha1.Interface
3134
// V1beta1 provides access to shared informers for resources in V1beta1.
3235
V1beta1() v1beta1.Interface
3336
}
@@ -48,6 +51,11 @@ func (g *group) V1() v1.Interface {
4851
return v1.New(g.factory, g.namespace, g.tweakListOptions)
4952
}
5053

54+
// V1alpha1 returns a new v1alpha1.Interface.
55+
func (g *group) V1alpha1() v1alpha1.Interface {
56+
return v1alpha1.New(g.factory, g.namespace, g.tweakListOptions)
57+
}
58+
5159
// V1beta1 returns a new v1beta1.Interface.
5260
func (g *group) V1beta1() v1beta1.Interface {
5361
return v1beta1.New(g.factory, g.namespace, g.tweakListOptions)

informers/storage/v1alpha1/BUILD

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
load("@io_bazel_rules_go//go:def.bzl", "go_library")
2+
3+
go_library(
4+
name = "go_default_library",
5+
srcs = [
6+
"interface.go",
7+
"volumeattachment.go",
8+
],
9+
importpath = "k8s.io/client-go/informers/storage/v1alpha1",
10+
visibility = ["//visibility:public"],
11+
deps = [
12+
"//vendor/k8s.io/api/storage/v1alpha1:go_default_library",
13+
"//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
14+
"//vendor/k8s.io/apimachinery/pkg/runtime:go_default_library",
15+
"//vendor/k8s.io/apimachinery/pkg/watch:go_default_library",
16+
"//vendor/k8s.io/client-go/informers/internalinterfaces:go_default_library",
17+
"//vendor/k8s.io/client-go/kubernetes:go_default_library",
18+
"//vendor/k8s.io/client-go/listers/storage/v1alpha1:go_default_library",
19+
"//vendor/k8s.io/client-go/tools/cache:go_default_library",
20+
],
21+
)
22+
23+
filegroup(
24+
name = "package-srcs",
25+
srcs = glob(["**"]),
26+
tags = ["automanaged"],
27+
visibility = ["//visibility:private"],
28+
)
29+
30+
filegroup(
31+
name = "all-srcs",
32+
srcs = [":package-srcs"],
33+
tags = ["automanaged"],
34+
visibility = ["//visibility:public"],
35+
)
+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
/*
2+
Copyright 2017 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+
// This file was automatically generated by informer-gen
18+
19+
package v1alpha1
20+
21+
import (
22+
internalinterfaces "k8s.io/client-go/informers/internalinterfaces"
23+
)
24+
25+
// Interface provides access to all the informers in this group version.
26+
type Interface interface {
27+
// VolumeAttachments returns a VolumeAttachmentInformer.
28+
VolumeAttachments() VolumeAttachmentInformer
29+
}
30+
31+
type version struct {
32+
factory internalinterfaces.SharedInformerFactory
33+
namespace string
34+
tweakListOptions internalinterfaces.TweakListOptionsFunc
35+
}
36+
37+
// New returns a new Interface.
38+
func New(f internalinterfaces.SharedInformerFactory, namespace string, tweakListOptions internalinterfaces.TweakListOptionsFunc) Interface {
39+
return &version{factory: f, namespace: namespace, tweakListOptions: tweakListOptions}
40+
}
41+
42+
// VolumeAttachments returns a VolumeAttachmentInformer.
43+
func (v *version) VolumeAttachments() VolumeAttachmentInformer {
44+
return &volumeAttachmentInformer{factory: v.factory, tweakListOptions: v.tweakListOptions}
45+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
/*
2+
Copyright 2017 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+
// This file was automatically generated by informer-gen
18+
19+
package v1alpha1
20+
21+
import (
22+
storage_v1alpha1 "k8s.io/api/storage/v1alpha1"
23+
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
24+
runtime "k8s.io/apimachinery/pkg/runtime"
25+
watch "k8s.io/apimachinery/pkg/watch"
26+
internalinterfaces "k8s.io/client-go/informers/internalinterfaces"
27+
kubernetes "k8s.io/client-go/kubernetes"
28+
v1alpha1 "k8s.io/client-go/listers/storage/v1alpha1"
29+
cache "k8s.io/client-go/tools/cache"
30+
time "time"
31+
)
32+
33+
// VolumeAttachmentInformer provides access to a shared informer and lister for
34+
// VolumeAttachments.
35+
type VolumeAttachmentInformer interface {
36+
Informer() cache.SharedIndexInformer
37+
Lister() v1alpha1.VolumeAttachmentLister
38+
}
39+
40+
type volumeAttachmentInformer struct {
41+
factory internalinterfaces.SharedInformerFactory
42+
tweakListOptions internalinterfaces.TweakListOptionsFunc
43+
}
44+
45+
// NewVolumeAttachmentInformer constructs a new informer for VolumeAttachment type.
46+
// Always prefer using an informer factory to get a shared informer instead of getting an independent
47+
// one. This reduces memory footprint and number of connections to the server.
48+
func NewVolumeAttachmentInformer(client kubernetes.Interface, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer {
49+
return NewFilteredVolumeAttachmentInformer(client, resyncPeriod, indexers, nil)
50+
}
51+
52+
// NewFilteredVolumeAttachmentInformer constructs a new informer for VolumeAttachment type.
53+
// Always prefer using an informer factory to get a shared informer instead of getting an independent
54+
// one. This reduces memory footprint and number of connections to the server.
55+
func NewFilteredVolumeAttachmentInformer(client kubernetes.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer {
56+
return cache.NewSharedIndexInformer(
57+
&cache.ListWatch{
58+
ListFunc: func(options v1.ListOptions) (runtime.Object, error) {
59+
if tweakListOptions != nil {
60+
tweakListOptions(&options)
61+
}
62+
return client.StorageV1alpha1().VolumeAttachments().List(options)
63+
},
64+
WatchFunc: func(options v1.ListOptions) (watch.Interface, error) {
65+
if tweakListOptions != nil {
66+
tweakListOptions(&options)
67+
}
68+
return client.StorageV1alpha1().VolumeAttachments().Watch(options)
69+
},
70+
},
71+
&storage_v1alpha1.VolumeAttachment{},
72+
resyncPeriod,
73+
indexers,
74+
)
75+
}
76+
77+
func (f *volumeAttachmentInformer) defaultInformer(client kubernetes.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer {
78+
return NewFilteredVolumeAttachmentInformer(client, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions)
79+
}
80+
81+
func (f *volumeAttachmentInformer) Informer() cache.SharedIndexInformer {
82+
return f.factory.InformerFor(&storage_v1alpha1.VolumeAttachment{}, f.defaultInformer)
83+
}
84+
85+
func (f *volumeAttachmentInformer) Lister() v1alpha1.VolumeAttachmentLister {
86+
return v1alpha1.NewVolumeAttachmentLister(f.Informer().GetIndexer())
87+
}

kubernetes/BUILD

+2
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ go_library(
4040
"//vendor/k8s.io/client-go/kubernetes/typed/scheduling/v1alpha1:go_default_library",
4141
"//vendor/k8s.io/client-go/kubernetes/typed/settings/v1alpha1:go_default_library",
4242
"//vendor/k8s.io/client-go/kubernetes/typed/storage/v1:go_default_library",
43+
"//vendor/k8s.io/client-go/kubernetes/typed/storage/v1alpha1:go_default_library",
4344
"//vendor/k8s.io/client-go/kubernetes/typed/storage/v1beta1:go_default_library",
4445
"//vendor/k8s.io/client-go/rest:go_default_library",
4546
"//vendor/k8s.io/client-go/util/flowcontrol:go_default_library",
@@ -83,6 +84,7 @@ filegroup(
8384
"//staging/src/k8s.io/client-go/kubernetes/typed/scheduling/v1alpha1:all-srcs",
8485
"//staging/src/k8s.io/client-go/kubernetes/typed/settings/v1alpha1:all-srcs",
8586
"//staging/src/k8s.io/client-go/kubernetes/typed/storage/v1:all-srcs",
87+
"//staging/src/k8s.io/client-go/kubernetes/typed/storage/v1alpha1:all-srcs",
8688
"//staging/src/k8s.io/client-go/kubernetes/typed/storage/v1beta1:all-srcs",
8789
],
8890
tags = ["automanaged"],

kubernetes/clientset.go

+14
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ import (
4343
schedulingv1alpha1 "k8s.io/client-go/kubernetes/typed/scheduling/v1alpha1"
4444
settingsv1alpha1 "k8s.io/client-go/kubernetes/typed/settings/v1alpha1"
4545
storagev1 "k8s.io/client-go/kubernetes/typed/storage/v1"
46+
storagev1alpha1 "k8s.io/client-go/kubernetes/typed/storage/v1alpha1"
4647
storagev1beta1 "k8s.io/client-go/kubernetes/typed/storage/v1beta1"
4748
rest "k8s.io/client-go/rest"
4849
flowcontrol "k8s.io/client-go/util/flowcontrol"
@@ -101,6 +102,7 @@ type Interface interface {
101102
SettingsV1alpha1() settingsv1alpha1.SettingsV1alpha1Interface
102103
// Deprecated: please explicitly pick a version if possible.
103104
Settings() settingsv1alpha1.SettingsV1alpha1Interface
105+
StorageV1alpha1() storagev1alpha1.StorageV1alpha1Interface
104106
StorageV1beta1() storagev1beta1.StorageV1beta1Interface
105107
StorageV1() storagev1.StorageV1Interface
106108
// Deprecated: please explicitly pick a version if possible.
@@ -134,6 +136,7 @@ type Clientset struct {
134136
rbacV1alpha1 *rbacv1alpha1.RbacV1alpha1Client
135137
schedulingV1alpha1 *schedulingv1alpha1.SchedulingV1alpha1Client
136138
settingsV1alpha1 *settingsv1alpha1.SettingsV1alpha1Client
139+
storageV1alpha1 *storagev1alpha1.StorageV1alpha1Client
137140
storageV1beta1 *storagev1beta1.StorageV1beta1Client
138141
storageV1 *storagev1.StorageV1Client
139142
}
@@ -337,6 +340,11 @@ func (c *Clientset) Settings() settingsv1alpha1.SettingsV1alpha1Interface {
337340
return c.settingsV1alpha1
338341
}
339342

343+
// StorageV1alpha1 retrieves the StorageV1alpha1Client
344+
func (c *Clientset) StorageV1alpha1() storagev1alpha1.StorageV1alpha1Interface {
345+
return c.storageV1alpha1
346+
}
347+
340348
// StorageV1beta1 retrieves the StorageV1beta1Client
341349
func (c *Clientset) StorageV1beta1() storagev1beta1.StorageV1beta1Interface {
342350
return c.storageV1beta1
@@ -461,6 +469,10 @@ func NewForConfig(c *rest.Config) (*Clientset, error) {
461469
if err != nil {
462470
return nil, err
463471
}
472+
cs.storageV1alpha1, err = storagev1alpha1.NewForConfig(&configShallowCopy)
473+
if err != nil {
474+
return nil, err
475+
}
464476
cs.storageV1beta1, err = storagev1beta1.NewForConfig(&configShallowCopy)
465477
if err != nil {
466478
return nil, err
@@ -505,6 +517,7 @@ func NewForConfigOrDie(c *rest.Config) *Clientset {
505517
cs.rbacV1alpha1 = rbacv1alpha1.NewForConfigOrDie(c)
506518
cs.schedulingV1alpha1 = schedulingv1alpha1.NewForConfigOrDie(c)
507519
cs.settingsV1alpha1 = settingsv1alpha1.NewForConfigOrDie(c)
520+
cs.storageV1alpha1 = storagev1alpha1.NewForConfigOrDie(c)
508521
cs.storageV1beta1 = storagev1beta1.NewForConfigOrDie(c)
509522
cs.storageV1 = storagev1.NewForConfigOrDie(c)
510523

@@ -538,6 +551,7 @@ func New(c rest.Interface) *Clientset {
538551
cs.rbacV1alpha1 = rbacv1alpha1.New(c)
539552
cs.schedulingV1alpha1 = schedulingv1alpha1.New(c)
540553
cs.settingsV1alpha1 = settingsv1alpha1.New(c)
554+
cs.storageV1alpha1 = storagev1alpha1.New(c)
541555
cs.storageV1beta1 = storagev1beta1.New(c)
542556
cs.storageV1 = storagev1.New(c)
543557

kubernetes/fake/BUILD

+3
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ go_library(
3838
"//vendor/k8s.io/api/scheduling/v1alpha1:go_default_library",
3939
"//vendor/k8s.io/api/settings/v1alpha1:go_default_library",
4040
"//vendor/k8s.io/api/storage/v1:go_default_library",
41+
"//vendor/k8s.io/api/storage/v1alpha1:go_default_library",
4142
"//vendor/k8s.io/api/storage/v1beta1:go_default_library",
4243
"//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
4344
"//vendor/k8s.io/apimachinery/pkg/runtime:go_default_library",
@@ -95,6 +96,8 @@ go_library(
9596
"//vendor/k8s.io/client-go/kubernetes/typed/settings/v1alpha1/fake:go_default_library",
9697
"//vendor/k8s.io/client-go/kubernetes/typed/storage/v1:go_default_library",
9798
"//vendor/k8s.io/client-go/kubernetes/typed/storage/v1/fake:go_default_library",
99+
"//vendor/k8s.io/client-go/kubernetes/typed/storage/v1alpha1:go_default_library",
100+
"//vendor/k8s.io/client-go/kubernetes/typed/storage/v1alpha1/fake:go_default_library",
98101
"//vendor/k8s.io/client-go/kubernetes/typed/storage/v1beta1:go_default_library",
99102
"//vendor/k8s.io/client-go/kubernetes/typed/storage/v1beta1/fake:go_default_library",
100103
"//vendor/k8s.io/client-go/testing:go_default_library",

kubernetes/fake/clientset_generated.go

+7
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ import (
7070
fakesettingsv1alpha1 "k8s.io/client-go/kubernetes/typed/settings/v1alpha1/fake"
7171
storagev1 "k8s.io/client-go/kubernetes/typed/storage/v1"
7272
fakestoragev1 "k8s.io/client-go/kubernetes/typed/storage/v1/fake"
73+
storagev1alpha1 "k8s.io/client-go/kubernetes/typed/storage/v1alpha1"
74+
fakestoragev1alpha1 "k8s.io/client-go/kubernetes/typed/storage/v1alpha1/fake"
7375
storagev1beta1 "k8s.io/client-go/kubernetes/typed/storage/v1beta1"
7476
fakestoragev1beta1 "k8s.io/client-go/kubernetes/typed/storage/v1beta1/fake"
7577
"k8s.io/client-go/testing"
@@ -293,6 +295,11 @@ func (c *Clientset) Settings() settingsv1alpha1.SettingsV1alpha1Interface {
293295
return &fakesettingsv1alpha1.FakeSettingsV1alpha1{Fake: &c.Fake}
294296
}
295297

298+
// StorageV1alpha1 retrieves the StorageV1alpha1Client
299+
func (c *Clientset) StorageV1alpha1() storagev1alpha1.StorageV1alpha1Interface {
300+
return &fakestoragev1alpha1.FakeStorageV1alpha1{Fake: &c.Fake}
301+
}
302+
296303
// StorageV1beta1 retrieves the StorageV1beta1Client
297304
func (c *Clientset) StorageV1beta1() storagev1beta1.StorageV1beta1Interface {
298305
return &fakestoragev1beta1.FakeStorageV1beta1{Fake: &c.Fake}

kubernetes/fake/register.go

+2
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ import (
4141
schedulingv1alpha1 "k8s.io/api/scheduling/v1alpha1"
4242
settingsv1alpha1 "k8s.io/api/settings/v1alpha1"
4343
storagev1 "k8s.io/api/storage/v1"
44+
storagev1alpha1 "k8s.io/api/storage/v1alpha1"
4445
storagev1beta1 "k8s.io/api/storage/v1beta1"
4546
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
4647
runtime "k8s.io/apimachinery/pkg/runtime"
@@ -95,6 +96,7 @@ func AddToScheme(scheme *runtime.Scheme) {
9596
rbacv1alpha1.AddToScheme(scheme)
9697
schedulingv1alpha1.AddToScheme(scheme)
9798
settingsv1alpha1.AddToScheme(scheme)
99+
storagev1alpha1.AddToScheme(scheme)
98100
storagev1beta1.AddToScheme(scheme)
99101
storagev1.AddToScheme(scheme)
100102

kubernetes/scheme/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ go_library(
3737
"//vendor/k8s.io/api/scheduling/v1alpha1:go_default_library",
3838
"//vendor/k8s.io/api/settings/v1alpha1:go_default_library",
3939
"//vendor/k8s.io/api/storage/v1:go_default_library",
40+
"//vendor/k8s.io/api/storage/v1alpha1:go_default_library",
4041
"//vendor/k8s.io/api/storage/v1beta1:go_default_library",
4142
"//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
4243
"//vendor/k8s.io/apimachinery/pkg/runtime:go_default_library",

kubernetes/scheme/register.go

+2
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ import (
4141
schedulingv1alpha1 "k8s.io/api/scheduling/v1alpha1"
4242
settingsv1alpha1 "k8s.io/api/settings/v1alpha1"
4343
storagev1 "k8s.io/api/storage/v1"
44+
storagev1alpha1 "k8s.io/api/storage/v1alpha1"
4445
storagev1beta1 "k8s.io/api/storage/v1beta1"
4546
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
4647
runtime "k8s.io/apimachinery/pkg/runtime"
@@ -95,6 +96,7 @@ func AddToScheme(scheme *runtime.Scheme) {
9596
rbacv1alpha1.AddToScheme(scheme)
9697
schedulingv1alpha1.AddToScheme(scheme)
9798
settingsv1alpha1.AddToScheme(scheme)
99+
storagev1alpha1.AddToScheme(scheme)
98100
storagev1beta1.AddToScheme(scheme)
99101
storagev1.AddToScheme(scheme)
100102

0 commit comments

Comments
 (0)