blob: 064c24d12e4c6c7ee83cb0164795bfc0d0b67d03 [file] [log] [blame]
Matteo Scandoloa4285862020-12-01 18:10:10 -08001/*
2Copyright The Kubernetes Authors.
3
4Licensed under the Apache License, Version 2.0 (the "License");
5you may not use this file except in compliance with the License.
6You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10Unless required by applicable law or agreed to in writing, software
11distributed under the License is distributed on an "AS IS" BASIS,
12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13See the License for the specific language governing permissions and
14limitations under the License.
15*/
16
17// Code generated by client-gen. DO NOT EDIT.
18
19package kubernetes
20
21import (
22 "fmt"
23
24 discovery "k8s.io/client-go/discovery"
25 admissionregistrationv1 "k8s.io/client-go/kubernetes/typed/admissionregistration/v1"
26 admissionregistrationv1beta1 "k8s.io/client-go/kubernetes/typed/admissionregistration/v1beta1"
27 appsv1 "k8s.io/client-go/kubernetes/typed/apps/v1"
28 appsv1beta1 "k8s.io/client-go/kubernetes/typed/apps/v1beta1"
29 appsv1beta2 "k8s.io/client-go/kubernetes/typed/apps/v1beta2"
30 authenticationv1 "k8s.io/client-go/kubernetes/typed/authentication/v1"
31 authenticationv1beta1 "k8s.io/client-go/kubernetes/typed/authentication/v1beta1"
32 authorizationv1 "k8s.io/client-go/kubernetes/typed/authorization/v1"
33 authorizationv1beta1 "k8s.io/client-go/kubernetes/typed/authorization/v1beta1"
34 autoscalingv1 "k8s.io/client-go/kubernetes/typed/autoscaling/v1"
35 autoscalingv2beta1 "k8s.io/client-go/kubernetes/typed/autoscaling/v2beta1"
36 autoscalingv2beta2 "k8s.io/client-go/kubernetes/typed/autoscaling/v2beta2"
37 batchv1 "k8s.io/client-go/kubernetes/typed/batch/v1"
38 batchv1beta1 "k8s.io/client-go/kubernetes/typed/batch/v1beta1"
39 batchv2alpha1 "k8s.io/client-go/kubernetes/typed/batch/v2alpha1"
40 certificatesv1 "k8s.io/client-go/kubernetes/typed/certificates/v1"
41 certificatesv1beta1 "k8s.io/client-go/kubernetes/typed/certificates/v1beta1"
42 coordinationv1 "k8s.io/client-go/kubernetes/typed/coordination/v1"
43 coordinationv1beta1 "k8s.io/client-go/kubernetes/typed/coordination/v1beta1"
44 corev1 "k8s.io/client-go/kubernetes/typed/core/v1"
45 discoveryv1alpha1 "k8s.io/client-go/kubernetes/typed/discovery/v1alpha1"
46 discoveryv1beta1 "k8s.io/client-go/kubernetes/typed/discovery/v1beta1"
47 eventsv1 "k8s.io/client-go/kubernetes/typed/events/v1"
48 eventsv1beta1 "k8s.io/client-go/kubernetes/typed/events/v1beta1"
49 extensionsv1beta1 "k8s.io/client-go/kubernetes/typed/extensions/v1beta1"
50 flowcontrolv1alpha1 "k8s.io/client-go/kubernetes/typed/flowcontrol/v1alpha1"
51 networkingv1 "k8s.io/client-go/kubernetes/typed/networking/v1"
52 networkingv1beta1 "k8s.io/client-go/kubernetes/typed/networking/v1beta1"
53 nodev1alpha1 "k8s.io/client-go/kubernetes/typed/node/v1alpha1"
54 nodev1beta1 "k8s.io/client-go/kubernetes/typed/node/v1beta1"
55 policyv1beta1 "k8s.io/client-go/kubernetes/typed/policy/v1beta1"
56 rbacv1 "k8s.io/client-go/kubernetes/typed/rbac/v1"
57 rbacv1alpha1 "k8s.io/client-go/kubernetes/typed/rbac/v1alpha1"
58 rbacv1beta1 "k8s.io/client-go/kubernetes/typed/rbac/v1beta1"
59 schedulingv1 "k8s.io/client-go/kubernetes/typed/scheduling/v1"
60 schedulingv1alpha1 "k8s.io/client-go/kubernetes/typed/scheduling/v1alpha1"
61 schedulingv1beta1 "k8s.io/client-go/kubernetes/typed/scheduling/v1beta1"
62 settingsv1alpha1 "k8s.io/client-go/kubernetes/typed/settings/v1alpha1"
63 storagev1 "k8s.io/client-go/kubernetes/typed/storage/v1"
64 storagev1alpha1 "k8s.io/client-go/kubernetes/typed/storage/v1alpha1"
65 storagev1beta1 "k8s.io/client-go/kubernetes/typed/storage/v1beta1"
66 rest "k8s.io/client-go/rest"
67 flowcontrol "k8s.io/client-go/util/flowcontrol"
68)
69
70type Interface interface {
71 Discovery() discovery.DiscoveryInterface
72 AdmissionregistrationV1() admissionregistrationv1.AdmissionregistrationV1Interface
73 AdmissionregistrationV1beta1() admissionregistrationv1beta1.AdmissionregistrationV1beta1Interface
74 AppsV1() appsv1.AppsV1Interface
75 AppsV1beta1() appsv1beta1.AppsV1beta1Interface
76 AppsV1beta2() appsv1beta2.AppsV1beta2Interface
77 AuthenticationV1() authenticationv1.AuthenticationV1Interface
78 AuthenticationV1beta1() authenticationv1beta1.AuthenticationV1beta1Interface
79 AuthorizationV1() authorizationv1.AuthorizationV1Interface
80 AuthorizationV1beta1() authorizationv1beta1.AuthorizationV1beta1Interface
81 AutoscalingV1() autoscalingv1.AutoscalingV1Interface
82 AutoscalingV2beta1() autoscalingv2beta1.AutoscalingV2beta1Interface
83 AutoscalingV2beta2() autoscalingv2beta2.AutoscalingV2beta2Interface
84 BatchV1() batchv1.BatchV1Interface
85 BatchV1beta1() batchv1beta1.BatchV1beta1Interface
86 BatchV2alpha1() batchv2alpha1.BatchV2alpha1Interface
87 CertificatesV1() certificatesv1.CertificatesV1Interface
88 CertificatesV1beta1() certificatesv1beta1.CertificatesV1beta1Interface
89 CoordinationV1beta1() coordinationv1beta1.CoordinationV1beta1Interface
90 CoordinationV1() coordinationv1.CoordinationV1Interface
91 CoreV1() corev1.CoreV1Interface
92 DiscoveryV1alpha1() discoveryv1alpha1.DiscoveryV1alpha1Interface
93 DiscoveryV1beta1() discoveryv1beta1.DiscoveryV1beta1Interface
94 EventsV1() eventsv1.EventsV1Interface
95 EventsV1beta1() eventsv1beta1.EventsV1beta1Interface
96 ExtensionsV1beta1() extensionsv1beta1.ExtensionsV1beta1Interface
97 FlowcontrolV1alpha1() flowcontrolv1alpha1.FlowcontrolV1alpha1Interface
98 NetworkingV1() networkingv1.NetworkingV1Interface
99 NetworkingV1beta1() networkingv1beta1.NetworkingV1beta1Interface
100 NodeV1alpha1() nodev1alpha1.NodeV1alpha1Interface
101 NodeV1beta1() nodev1beta1.NodeV1beta1Interface
102 PolicyV1beta1() policyv1beta1.PolicyV1beta1Interface
103 RbacV1() rbacv1.RbacV1Interface
104 RbacV1beta1() rbacv1beta1.RbacV1beta1Interface
105 RbacV1alpha1() rbacv1alpha1.RbacV1alpha1Interface
106 SchedulingV1alpha1() schedulingv1alpha1.SchedulingV1alpha1Interface
107 SchedulingV1beta1() schedulingv1beta1.SchedulingV1beta1Interface
108 SchedulingV1() schedulingv1.SchedulingV1Interface
109 SettingsV1alpha1() settingsv1alpha1.SettingsV1alpha1Interface
110 StorageV1beta1() storagev1beta1.StorageV1beta1Interface
111 StorageV1() storagev1.StorageV1Interface
112 StorageV1alpha1() storagev1alpha1.StorageV1alpha1Interface
113}
114
115// Clientset contains the clients for groups. Each group has exactly one
116// version included in a Clientset.
117type Clientset struct {
118 *discovery.DiscoveryClient
119 admissionregistrationV1 *admissionregistrationv1.AdmissionregistrationV1Client
120 admissionregistrationV1beta1 *admissionregistrationv1beta1.AdmissionregistrationV1beta1Client
121 appsV1 *appsv1.AppsV1Client
122 appsV1beta1 *appsv1beta1.AppsV1beta1Client
123 appsV1beta2 *appsv1beta2.AppsV1beta2Client
124 authenticationV1 *authenticationv1.AuthenticationV1Client
125 authenticationV1beta1 *authenticationv1beta1.AuthenticationV1beta1Client
126 authorizationV1 *authorizationv1.AuthorizationV1Client
127 authorizationV1beta1 *authorizationv1beta1.AuthorizationV1beta1Client
128 autoscalingV1 *autoscalingv1.AutoscalingV1Client
129 autoscalingV2beta1 *autoscalingv2beta1.AutoscalingV2beta1Client
130 autoscalingV2beta2 *autoscalingv2beta2.AutoscalingV2beta2Client
131 batchV1 *batchv1.BatchV1Client
132 batchV1beta1 *batchv1beta1.BatchV1beta1Client
133 batchV2alpha1 *batchv2alpha1.BatchV2alpha1Client
134 certificatesV1 *certificatesv1.CertificatesV1Client
135 certificatesV1beta1 *certificatesv1beta1.CertificatesV1beta1Client
136 coordinationV1beta1 *coordinationv1beta1.CoordinationV1beta1Client
137 coordinationV1 *coordinationv1.CoordinationV1Client
138 coreV1 *corev1.CoreV1Client
139 discoveryV1alpha1 *discoveryv1alpha1.DiscoveryV1alpha1Client
140 discoveryV1beta1 *discoveryv1beta1.DiscoveryV1beta1Client
141 eventsV1 *eventsv1.EventsV1Client
142 eventsV1beta1 *eventsv1beta1.EventsV1beta1Client
143 extensionsV1beta1 *extensionsv1beta1.ExtensionsV1beta1Client
144 flowcontrolV1alpha1 *flowcontrolv1alpha1.FlowcontrolV1alpha1Client
145 networkingV1 *networkingv1.NetworkingV1Client
146 networkingV1beta1 *networkingv1beta1.NetworkingV1beta1Client
147 nodeV1alpha1 *nodev1alpha1.NodeV1alpha1Client
148 nodeV1beta1 *nodev1beta1.NodeV1beta1Client
149 policyV1beta1 *policyv1beta1.PolicyV1beta1Client
150 rbacV1 *rbacv1.RbacV1Client
151 rbacV1beta1 *rbacv1beta1.RbacV1beta1Client
152 rbacV1alpha1 *rbacv1alpha1.RbacV1alpha1Client
153 schedulingV1alpha1 *schedulingv1alpha1.SchedulingV1alpha1Client
154 schedulingV1beta1 *schedulingv1beta1.SchedulingV1beta1Client
155 schedulingV1 *schedulingv1.SchedulingV1Client
156 settingsV1alpha1 *settingsv1alpha1.SettingsV1alpha1Client
157 storageV1beta1 *storagev1beta1.StorageV1beta1Client
158 storageV1 *storagev1.StorageV1Client
159 storageV1alpha1 *storagev1alpha1.StorageV1alpha1Client
160}
161
162// AdmissionregistrationV1 retrieves the AdmissionregistrationV1Client
163func (c *Clientset) AdmissionregistrationV1() admissionregistrationv1.AdmissionregistrationV1Interface {
164 return c.admissionregistrationV1
165}
166
167// AdmissionregistrationV1beta1 retrieves the AdmissionregistrationV1beta1Client
168func (c *Clientset) AdmissionregistrationV1beta1() admissionregistrationv1beta1.AdmissionregistrationV1beta1Interface {
169 return c.admissionregistrationV1beta1
170}
171
172// AppsV1 retrieves the AppsV1Client
173func (c *Clientset) AppsV1() appsv1.AppsV1Interface {
174 return c.appsV1
175}
176
177// AppsV1beta1 retrieves the AppsV1beta1Client
178func (c *Clientset) AppsV1beta1() appsv1beta1.AppsV1beta1Interface {
179 return c.appsV1beta1
180}
181
182// AppsV1beta2 retrieves the AppsV1beta2Client
183func (c *Clientset) AppsV1beta2() appsv1beta2.AppsV1beta2Interface {
184 return c.appsV1beta2
185}
186
187// AuthenticationV1 retrieves the AuthenticationV1Client
188func (c *Clientset) AuthenticationV1() authenticationv1.AuthenticationV1Interface {
189 return c.authenticationV1
190}
191
192// AuthenticationV1beta1 retrieves the AuthenticationV1beta1Client
193func (c *Clientset) AuthenticationV1beta1() authenticationv1beta1.AuthenticationV1beta1Interface {
194 return c.authenticationV1beta1
195}
196
197// AuthorizationV1 retrieves the AuthorizationV1Client
198func (c *Clientset) AuthorizationV1() authorizationv1.AuthorizationV1Interface {
199 return c.authorizationV1
200}
201
202// AuthorizationV1beta1 retrieves the AuthorizationV1beta1Client
203func (c *Clientset) AuthorizationV1beta1() authorizationv1beta1.AuthorizationV1beta1Interface {
204 return c.authorizationV1beta1
205}
206
207// AutoscalingV1 retrieves the AutoscalingV1Client
208func (c *Clientset) AutoscalingV1() autoscalingv1.AutoscalingV1Interface {
209 return c.autoscalingV1
210}
211
212// AutoscalingV2beta1 retrieves the AutoscalingV2beta1Client
213func (c *Clientset) AutoscalingV2beta1() autoscalingv2beta1.AutoscalingV2beta1Interface {
214 return c.autoscalingV2beta1
215}
216
217// AutoscalingV2beta2 retrieves the AutoscalingV2beta2Client
218func (c *Clientset) AutoscalingV2beta2() autoscalingv2beta2.AutoscalingV2beta2Interface {
219 return c.autoscalingV2beta2
220}
221
222// BatchV1 retrieves the BatchV1Client
223func (c *Clientset) BatchV1() batchv1.BatchV1Interface {
224 return c.batchV1
225}
226
227// BatchV1beta1 retrieves the BatchV1beta1Client
228func (c *Clientset) BatchV1beta1() batchv1beta1.BatchV1beta1Interface {
229 return c.batchV1beta1
230}
231
232// BatchV2alpha1 retrieves the BatchV2alpha1Client
233func (c *Clientset) BatchV2alpha1() batchv2alpha1.BatchV2alpha1Interface {
234 return c.batchV2alpha1
235}
236
237// CertificatesV1 retrieves the CertificatesV1Client
238func (c *Clientset) CertificatesV1() certificatesv1.CertificatesV1Interface {
239 return c.certificatesV1
240}
241
242// CertificatesV1beta1 retrieves the CertificatesV1beta1Client
243func (c *Clientset) CertificatesV1beta1() certificatesv1beta1.CertificatesV1beta1Interface {
244 return c.certificatesV1beta1
245}
246
247// CoordinationV1beta1 retrieves the CoordinationV1beta1Client
248func (c *Clientset) CoordinationV1beta1() coordinationv1beta1.CoordinationV1beta1Interface {
249 return c.coordinationV1beta1
250}
251
252// CoordinationV1 retrieves the CoordinationV1Client
253func (c *Clientset) CoordinationV1() coordinationv1.CoordinationV1Interface {
254 return c.coordinationV1
255}
256
257// CoreV1 retrieves the CoreV1Client
258func (c *Clientset) CoreV1() corev1.CoreV1Interface {
259 return c.coreV1
260}
261
262// DiscoveryV1alpha1 retrieves the DiscoveryV1alpha1Client
263func (c *Clientset) DiscoveryV1alpha1() discoveryv1alpha1.DiscoveryV1alpha1Interface {
264 return c.discoveryV1alpha1
265}
266
267// DiscoveryV1beta1 retrieves the DiscoveryV1beta1Client
268func (c *Clientset) DiscoveryV1beta1() discoveryv1beta1.DiscoveryV1beta1Interface {
269 return c.discoveryV1beta1
270}
271
272// EventsV1 retrieves the EventsV1Client
273func (c *Clientset) EventsV1() eventsv1.EventsV1Interface {
274 return c.eventsV1
275}
276
277// EventsV1beta1 retrieves the EventsV1beta1Client
278func (c *Clientset) EventsV1beta1() eventsv1beta1.EventsV1beta1Interface {
279 return c.eventsV1beta1
280}
281
282// ExtensionsV1beta1 retrieves the ExtensionsV1beta1Client
283func (c *Clientset) ExtensionsV1beta1() extensionsv1beta1.ExtensionsV1beta1Interface {
284 return c.extensionsV1beta1
285}
286
287// FlowcontrolV1alpha1 retrieves the FlowcontrolV1alpha1Client
288func (c *Clientset) FlowcontrolV1alpha1() flowcontrolv1alpha1.FlowcontrolV1alpha1Interface {
289 return c.flowcontrolV1alpha1
290}
291
292// NetworkingV1 retrieves the NetworkingV1Client
293func (c *Clientset) NetworkingV1() networkingv1.NetworkingV1Interface {
294 return c.networkingV1
295}
296
297// NetworkingV1beta1 retrieves the NetworkingV1beta1Client
298func (c *Clientset) NetworkingV1beta1() networkingv1beta1.NetworkingV1beta1Interface {
299 return c.networkingV1beta1
300}
301
302// NodeV1alpha1 retrieves the NodeV1alpha1Client
303func (c *Clientset) NodeV1alpha1() nodev1alpha1.NodeV1alpha1Interface {
304 return c.nodeV1alpha1
305}
306
307// NodeV1beta1 retrieves the NodeV1beta1Client
308func (c *Clientset) NodeV1beta1() nodev1beta1.NodeV1beta1Interface {
309 return c.nodeV1beta1
310}
311
312// PolicyV1beta1 retrieves the PolicyV1beta1Client
313func (c *Clientset) PolicyV1beta1() policyv1beta1.PolicyV1beta1Interface {
314 return c.policyV1beta1
315}
316
317// RbacV1 retrieves the RbacV1Client
318func (c *Clientset) RbacV1() rbacv1.RbacV1Interface {
319 return c.rbacV1
320}
321
322// RbacV1beta1 retrieves the RbacV1beta1Client
323func (c *Clientset) RbacV1beta1() rbacv1beta1.RbacV1beta1Interface {
324 return c.rbacV1beta1
325}
326
327// RbacV1alpha1 retrieves the RbacV1alpha1Client
328func (c *Clientset) RbacV1alpha1() rbacv1alpha1.RbacV1alpha1Interface {
329 return c.rbacV1alpha1
330}
331
332// SchedulingV1alpha1 retrieves the SchedulingV1alpha1Client
333func (c *Clientset) SchedulingV1alpha1() schedulingv1alpha1.SchedulingV1alpha1Interface {
334 return c.schedulingV1alpha1
335}
336
337// SchedulingV1beta1 retrieves the SchedulingV1beta1Client
338func (c *Clientset) SchedulingV1beta1() schedulingv1beta1.SchedulingV1beta1Interface {
339 return c.schedulingV1beta1
340}
341
342// SchedulingV1 retrieves the SchedulingV1Client
343func (c *Clientset) SchedulingV1() schedulingv1.SchedulingV1Interface {
344 return c.schedulingV1
345}
346
347// SettingsV1alpha1 retrieves the SettingsV1alpha1Client
348func (c *Clientset) SettingsV1alpha1() settingsv1alpha1.SettingsV1alpha1Interface {
349 return c.settingsV1alpha1
350}
351
352// StorageV1beta1 retrieves the StorageV1beta1Client
353func (c *Clientset) StorageV1beta1() storagev1beta1.StorageV1beta1Interface {
354 return c.storageV1beta1
355}
356
357// StorageV1 retrieves the StorageV1Client
358func (c *Clientset) StorageV1() storagev1.StorageV1Interface {
359 return c.storageV1
360}
361
362// StorageV1alpha1 retrieves the StorageV1alpha1Client
363func (c *Clientset) StorageV1alpha1() storagev1alpha1.StorageV1alpha1Interface {
364 return c.storageV1alpha1
365}
366
367// Discovery retrieves the DiscoveryClient
368func (c *Clientset) Discovery() discovery.DiscoveryInterface {
369 if c == nil {
370 return nil
371 }
372 return c.DiscoveryClient
373}
374
375// NewForConfig creates a new Clientset for the given config.
376// If config's RateLimiter is not set and QPS and Burst are acceptable,
377// NewForConfig will generate a rate-limiter in configShallowCopy.
378func NewForConfig(c *rest.Config) (*Clientset, error) {
379 configShallowCopy := *c
380 if configShallowCopy.RateLimiter == nil && configShallowCopy.QPS > 0 {
381 if configShallowCopy.Burst <= 0 {
382 return nil, fmt.Errorf("burst is required to be greater than 0 when RateLimiter is not set and QPS is set to greater than 0")
383 }
384 configShallowCopy.RateLimiter = flowcontrol.NewTokenBucketRateLimiter(configShallowCopy.QPS, configShallowCopy.Burst)
385 }
386 var cs Clientset
387 var err error
388 cs.admissionregistrationV1, err = admissionregistrationv1.NewForConfig(&configShallowCopy)
389 if err != nil {
390 return nil, err
391 }
392 cs.admissionregistrationV1beta1, err = admissionregistrationv1beta1.NewForConfig(&configShallowCopy)
393 if err != nil {
394 return nil, err
395 }
396 cs.appsV1, err = appsv1.NewForConfig(&configShallowCopy)
397 if err != nil {
398 return nil, err
399 }
400 cs.appsV1beta1, err = appsv1beta1.NewForConfig(&configShallowCopy)
401 if err != nil {
402 return nil, err
403 }
404 cs.appsV1beta2, err = appsv1beta2.NewForConfig(&configShallowCopy)
405 if err != nil {
406 return nil, err
407 }
408 cs.authenticationV1, err = authenticationv1.NewForConfig(&configShallowCopy)
409 if err != nil {
410 return nil, err
411 }
412 cs.authenticationV1beta1, err = authenticationv1beta1.NewForConfig(&configShallowCopy)
413 if err != nil {
414 return nil, err
415 }
416 cs.authorizationV1, err = authorizationv1.NewForConfig(&configShallowCopy)
417 if err != nil {
418 return nil, err
419 }
420 cs.authorizationV1beta1, err = authorizationv1beta1.NewForConfig(&configShallowCopy)
421 if err != nil {
422 return nil, err
423 }
424 cs.autoscalingV1, err = autoscalingv1.NewForConfig(&configShallowCopy)
425 if err != nil {
426 return nil, err
427 }
428 cs.autoscalingV2beta1, err = autoscalingv2beta1.NewForConfig(&configShallowCopy)
429 if err != nil {
430 return nil, err
431 }
432 cs.autoscalingV2beta2, err = autoscalingv2beta2.NewForConfig(&configShallowCopy)
433 if err != nil {
434 return nil, err
435 }
436 cs.batchV1, err = batchv1.NewForConfig(&configShallowCopy)
437 if err != nil {
438 return nil, err
439 }
440 cs.batchV1beta1, err = batchv1beta1.NewForConfig(&configShallowCopy)
441 if err != nil {
442 return nil, err
443 }
444 cs.batchV2alpha1, err = batchv2alpha1.NewForConfig(&configShallowCopy)
445 if err != nil {
446 return nil, err
447 }
448 cs.certificatesV1, err = certificatesv1.NewForConfig(&configShallowCopy)
449 if err != nil {
450 return nil, err
451 }
452 cs.certificatesV1beta1, err = certificatesv1beta1.NewForConfig(&configShallowCopy)
453 if err != nil {
454 return nil, err
455 }
456 cs.coordinationV1beta1, err = coordinationv1beta1.NewForConfig(&configShallowCopy)
457 if err != nil {
458 return nil, err
459 }
460 cs.coordinationV1, err = coordinationv1.NewForConfig(&configShallowCopy)
461 if err != nil {
462 return nil, err
463 }
464 cs.coreV1, err = corev1.NewForConfig(&configShallowCopy)
465 if err != nil {
466 return nil, err
467 }
468 cs.discoveryV1alpha1, err = discoveryv1alpha1.NewForConfig(&configShallowCopy)
469 if err != nil {
470 return nil, err
471 }
472 cs.discoveryV1beta1, err = discoveryv1beta1.NewForConfig(&configShallowCopy)
473 if err != nil {
474 return nil, err
475 }
476 cs.eventsV1, err = eventsv1.NewForConfig(&configShallowCopy)
477 if err != nil {
478 return nil, err
479 }
480 cs.eventsV1beta1, err = eventsv1beta1.NewForConfig(&configShallowCopy)
481 if err != nil {
482 return nil, err
483 }
484 cs.extensionsV1beta1, err = extensionsv1beta1.NewForConfig(&configShallowCopy)
485 if err != nil {
486 return nil, err
487 }
488 cs.flowcontrolV1alpha1, err = flowcontrolv1alpha1.NewForConfig(&configShallowCopy)
489 if err != nil {
490 return nil, err
491 }
492 cs.networkingV1, err = networkingv1.NewForConfig(&configShallowCopy)
493 if err != nil {
494 return nil, err
495 }
496 cs.networkingV1beta1, err = networkingv1beta1.NewForConfig(&configShallowCopy)
497 if err != nil {
498 return nil, err
499 }
500 cs.nodeV1alpha1, err = nodev1alpha1.NewForConfig(&configShallowCopy)
501 if err != nil {
502 return nil, err
503 }
504 cs.nodeV1beta1, err = nodev1beta1.NewForConfig(&configShallowCopy)
505 if err != nil {
506 return nil, err
507 }
508 cs.policyV1beta1, err = policyv1beta1.NewForConfig(&configShallowCopy)
509 if err != nil {
510 return nil, err
511 }
512 cs.rbacV1, err = rbacv1.NewForConfig(&configShallowCopy)
513 if err != nil {
514 return nil, err
515 }
516 cs.rbacV1beta1, err = rbacv1beta1.NewForConfig(&configShallowCopy)
517 if err != nil {
518 return nil, err
519 }
520 cs.rbacV1alpha1, err = rbacv1alpha1.NewForConfig(&configShallowCopy)
521 if err != nil {
522 return nil, err
523 }
524 cs.schedulingV1alpha1, err = schedulingv1alpha1.NewForConfig(&configShallowCopy)
525 if err != nil {
526 return nil, err
527 }
528 cs.schedulingV1beta1, err = schedulingv1beta1.NewForConfig(&configShallowCopy)
529 if err != nil {
530 return nil, err
531 }
532 cs.schedulingV1, err = schedulingv1.NewForConfig(&configShallowCopy)
533 if err != nil {
534 return nil, err
535 }
536 cs.settingsV1alpha1, err = settingsv1alpha1.NewForConfig(&configShallowCopy)
537 if err != nil {
538 return nil, err
539 }
540 cs.storageV1beta1, err = storagev1beta1.NewForConfig(&configShallowCopy)
541 if err != nil {
542 return nil, err
543 }
544 cs.storageV1, err = storagev1.NewForConfig(&configShallowCopy)
545 if err != nil {
546 return nil, err
547 }
548 cs.storageV1alpha1, err = storagev1alpha1.NewForConfig(&configShallowCopy)
549 if err != nil {
550 return nil, err
551 }
552
553 cs.DiscoveryClient, err = discovery.NewDiscoveryClientForConfig(&configShallowCopy)
554 if err != nil {
555 return nil, err
556 }
557 return &cs, nil
558}
559
560// NewForConfigOrDie creates a new Clientset for the given config and
561// panics if there is an error in the config.
562func NewForConfigOrDie(c *rest.Config) *Clientset {
563 var cs Clientset
564 cs.admissionregistrationV1 = admissionregistrationv1.NewForConfigOrDie(c)
565 cs.admissionregistrationV1beta1 = admissionregistrationv1beta1.NewForConfigOrDie(c)
566 cs.appsV1 = appsv1.NewForConfigOrDie(c)
567 cs.appsV1beta1 = appsv1beta1.NewForConfigOrDie(c)
568 cs.appsV1beta2 = appsv1beta2.NewForConfigOrDie(c)
569 cs.authenticationV1 = authenticationv1.NewForConfigOrDie(c)
570 cs.authenticationV1beta1 = authenticationv1beta1.NewForConfigOrDie(c)
571 cs.authorizationV1 = authorizationv1.NewForConfigOrDie(c)
572 cs.authorizationV1beta1 = authorizationv1beta1.NewForConfigOrDie(c)
573 cs.autoscalingV1 = autoscalingv1.NewForConfigOrDie(c)
574 cs.autoscalingV2beta1 = autoscalingv2beta1.NewForConfigOrDie(c)
575 cs.autoscalingV2beta2 = autoscalingv2beta2.NewForConfigOrDie(c)
576 cs.batchV1 = batchv1.NewForConfigOrDie(c)
577 cs.batchV1beta1 = batchv1beta1.NewForConfigOrDie(c)
578 cs.batchV2alpha1 = batchv2alpha1.NewForConfigOrDie(c)
579 cs.certificatesV1 = certificatesv1.NewForConfigOrDie(c)
580 cs.certificatesV1beta1 = certificatesv1beta1.NewForConfigOrDie(c)
581 cs.coordinationV1beta1 = coordinationv1beta1.NewForConfigOrDie(c)
582 cs.coordinationV1 = coordinationv1.NewForConfigOrDie(c)
583 cs.coreV1 = corev1.NewForConfigOrDie(c)
584 cs.discoveryV1alpha1 = discoveryv1alpha1.NewForConfigOrDie(c)
585 cs.discoveryV1beta1 = discoveryv1beta1.NewForConfigOrDie(c)
586 cs.eventsV1 = eventsv1.NewForConfigOrDie(c)
587 cs.eventsV1beta1 = eventsv1beta1.NewForConfigOrDie(c)
588 cs.extensionsV1beta1 = extensionsv1beta1.NewForConfigOrDie(c)
589 cs.flowcontrolV1alpha1 = flowcontrolv1alpha1.NewForConfigOrDie(c)
590 cs.networkingV1 = networkingv1.NewForConfigOrDie(c)
591 cs.networkingV1beta1 = networkingv1beta1.NewForConfigOrDie(c)
592 cs.nodeV1alpha1 = nodev1alpha1.NewForConfigOrDie(c)
593 cs.nodeV1beta1 = nodev1beta1.NewForConfigOrDie(c)
594 cs.policyV1beta1 = policyv1beta1.NewForConfigOrDie(c)
595 cs.rbacV1 = rbacv1.NewForConfigOrDie(c)
596 cs.rbacV1beta1 = rbacv1beta1.NewForConfigOrDie(c)
597 cs.rbacV1alpha1 = rbacv1alpha1.NewForConfigOrDie(c)
598 cs.schedulingV1alpha1 = schedulingv1alpha1.NewForConfigOrDie(c)
599 cs.schedulingV1beta1 = schedulingv1beta1.NewForConfigOrDie(c)
600 cs.schedulingV1 = schedulingv1.NewForConfigOrDie(c)
601 cs.settingsV1alpha1 = settingsv1alpha1.NewForConfigOrDie(c)
602 cs.storageV1beta1 = storagev1beta1.NewForConfigOrDie(c)
603 cs.storageV1 = storagev1.NewForConfigOrDie(c)
604 cs.storageV1alpha1 = storagev1alpha1.NewForConfigOrDie(c)
605
606 cs.DiscoveryClient = discovery.NewDiscoveryClientForConfigOrDie(c)
607 return &cs
608}
609
610// New creates a new Clientset for the given RESTClient.
611func New(c rest.Interface) *Clientset {
612 var cs Clientset
613 cs.admissionregistrationV1 = admissionregistrationv1.New(c)
614 cs.admissionregistrationV1beta1 = admissionregistrationv1beta1.New(c)
615 cs.appsV1 = appsv1.New(c)
616 cs.appsV1beta1 = appsv1beta1.New(c)
617 cs.appsV1beta2 = appsv1beta2.New(c)
618 cs.authenticationV1 = authenticationv1.New(c)
619 cs.authenticationV1beta1 = authenticationv1beta1.New(c)
620 cs.authorizationV1 = authorizationv1.New(c)
621 cs.authorizationV1beta1 = authorizationv1beta1.New(c)
622 cs.autoscalingV1 = autoscalingv1.New(c)
623 cs.autoscalingV2beta1 = autoscalingv2beta1.New(c)
624 cs.autoscalingV2beta2 = autoscalingv2beta2.New(c)
625 cs.batchV1 = batchv1.New(c)
626 cs.batchV1beta1 = batchv1beta1.New(c)
627 cs.batchV2alpha1 = batchv2alpha1.New(c)
628 cs.certificatesV1 = certificatesv1.New(c)
629 cs.certificatesV1beta1 = certificatesv1beta1.New(c)
630 cs.coordinationV1beta1 = coordinationv1beta1.New(c)
631 cs.coordinationV1 = coordinationv1.New(c)
632 cs.coreV1 = corev1.New(c)
633 cs.discoveryV1alpha1 = discoveryv1alpha1.New(c)
634 cs.discoveryV1beta1 = discoveryv1beta1.New(c)
635 cs.eventsV1 = eventsv1.New(c)
636 cs.eventsV1beta1 = eventsv1beta1.New(c)
637 cs.extensionsV1beta1 = extensionsv1beta1.New(c)
638 cs.flowcontrolV1alpha1 = flowcontrolv1alpha1.New(c)
639 cs.networkingV1 = networkingv1.New(c)
640 cs.networkingV1beta1 = networkingv1beta1.New(c)
641 cs.nodeV1alpha1 = nodev1alpha1.New(c)
642 cs.nodeV1beta1 = nodev1beta1.New(c)
643 cs.policyV1beta1 = policyv1beta1.New(c)
644 cs.rbacV1 = rbacv1.New(c)
645 cs.rbacV1beta1 = rbacv1beta1.New(c)
646 cs.rbacV1alpha1 = rbacv1alpha1.New(c)
647 cs.schedulingV1alpha1 = schedulingv1alpha1.New(c)
648 cs.schedulingV1beta1 = schedulingv1beta1.New(c)
649 cs.schedulingV1 = schedulingv1.New(c)
650 cs.settingsV1alpha1 = settingsv1alpha1.New(c)
651 cs.storageV1beta1 = storagev1beta1.New(c)
652 cs.storageV1 = storagev1.New(c)
653 cs.storageV1alpha1 = storagev1alpha1.New(c)
654
655 cs.DiscoveryClient = discovery.NewDiscoveryClient(c)
656 return &cs
657}