blob: fb889e6df53927c6327ecd11b4fc987ac6e72981 [file] [log] [blame]
Scott Bakere7144bc2019-10-01 14:16:47 -07001/*
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 discovery "k8s.io/client-go/discovery"
Scott Bakere7144bc2019-10-01 14:16:47 -070023 admissionregistrationv1beta1 "k8s.io/client-go/kubernetes/typed/admissionregistration/v1beta1"
24 appsv1 "k8s.io/client-go/kubernetes/typed/apps/v1"
25 appsv1beta1 "k8s.io/client-go/kubernetes/typed/apps/v1beta1"
26 appsv1beta2 "k8s.io/client-go/kubernetes/typed/apps/v1beta2"
27 auditregistrationv1alpha1 "k8s.io/client-go/kubernetes/typed/auditregistration/v1alpha1"
28 authenticationv1 "k8s.io/client-go/kubernetes/typed/authentication/v1"
29 authenticationv1beta1 "k8s.io/client-go/kubernetes/typed/authentication/v1beta1"
30 authorizationv1 "k8s.io/client-go/kubernetes/typed/authorization/v1"
31 authorizationv1beta1 "k8s.io/client-go/kubernetes/typed/authorization/v1beta1"
32 autoscalingv1 "k8s.io/client-go/kubernetes/typed/autoscaling/v1"
33 autoscalingv2beta1 "k8s.io/client-go/kubernetes/typed/autoscaling/v2beta1"
34 autoscalingv2beta2 "k8s.io/client-go/kubernetes/typed/autoscaling/v2beta2"
35 batchv1 "k8s.io/client-go/kubernetes/typed/batch/v1"
36 batchv1beta1 "k8s.io/client-go/kubernetes/typed/batch/v1beta1"
37 batchv2alpha1 "k8s.io/client-go/kubernetes/typed/batch/v2alpha1"
38 certificatesv1beta1 "k8s.io/client-go/kubernetes/typed/certificates/v1beta1"
girishke7ca43b2019-10-10 12:30:03 +000039 coordinationv1 "k8s.io/client-go/kubernetes/typed/coordination/v1"
Scott Bakere7144bc2019-10-01 14:16:47 -070040 coordinationv1beta1 "k8s.io/client-go/kubernetes/typed/coordination/v1beta1"
41 corev1 "k8s.io/client-go/kubernetes/typed/core/v1"
42 eventsv1beta1 "k8s.io/client-go/kubernetes/typed/events/v1beta1"
43 extensionsv1beta1 "k8s.io/client-go/kubernetes/typed/extensions/v1beta1"
44 networkingv1 "k8s.io/client-go/kubernetes/typed/networking/v1"
girishke7ca43b2019-10-10 12:30:03 +000045 networkingv1beta1 "k8s.io/client-go/kubernetes/typed/networking/v1beta1"
46 nodev1alpha1 "k8s.io/client-go/kubernetes/typed/node/v1alpha1"
47 nodev1beta1 "k8s.io/client-go/kubernetes/typed/node/v1beta1"
Scott Bakere7144bc2019-10-01 14:16:47 -070048 policyv1beta1 "k8s.io/client-go/kubernetes/typed/policy/v1beta1"
49 rbacv1 "k8s.io/client-go/kubernetes/typed/rbac/v1"
50 rbacv1alpha1 "k8s.io/client-go/kubernetes/typed/rbac/v1alpha1"
51 rbacv1beta1 "k8s.io/client-go/kubernetes/typed/rbac/v1beta1"
girishke7ca43b2019-10-10 12:30:03 +000052 schedulingv1 "k8s.io/client-go/kubernetes/typed/scheduling/v1"
Scott Bakere7144bc2019-10-01 14:16:47 -070053 schedulingv1alpha1 "k8s.io/client-go/kubernetes/typed/scheduling/v1alpha1"
54 schedulingv1beta1 "k8s.io/client-go/kubernetes/typed/scheduling/v1beta1"
55 settingsv1alpha1 "k8s.io/client-go/kubernetes/typed/settings/v1alpha1"
56 storagev1 "k8s.io/client-go/kubernetes/typed/storage/v1"
57 storagev1alpha1 "k8s.io/client-go/kubernetes/typed/storage/v1alpha1"
58 storagev1beta1 "k8s.io/client-go/kubernetes/typed/storage/v1beta1"
59 rest "k8s.io/client-go/rest"
60 flowcontrol "k8s.io/client-go/util/flowcontrol"
61)
62
63type Interface interface {
64 Discovery() discovery.DiscoveryInterface
Scott Bakere7144bc2019-10-01 14:16:47 -070065 AdmissionregistrationV1beta1() admissionregistrationv1beta1.AdmissionregistrationV1beta1Interface
girishke7ca43b2019-10-10 12:30:03 +000066 AppsV1() appsv1.AppsV1Interface
Scott Bakere7144bc2019-10-01 14:16:47 -070067 AppsV1beta1() appsv1beta1.AppsV1beta1Interface
68 AppsV1beta2() appsv1beta2.AppsV1beta2Interface
Scott Bakere7144bc2019-10-01 14:16:47 -070069 AuditregistrationV1alpha1() auditregistrationv1alpha1.AuditregistrationV1alpha1Interface
Scott Bakere7144bc2019-10-01 14:16:47 -070070 AuthenticationV1() authenticationv1.AuthenticationV1Interface
Scott Bakere7144bc2019-10-01 14:16:47 -070071 AuthenticationV1beta1() authenticationv1beta1.AuthenticationV1beta1Interface
72 AuthorizationV1() authorizationv1.AuthorizationV1Interface
Scott Bakere7144bc2019-10-01 14:16:47 -070073 AuthorizationV1beta1() authorizationv1beta1.AuthorizationV1beta1Interface
74 AutoscalingV1() autoscalingv1.AutoscalingV1Interface
Scott Bakere7144bc2019-10-01 14:16:47 -070075 AutoscalingV2beta1() autoscalingv2beta1.AutoscalingV2beta1Interface
76 AutoscalingV2beta2() autoscalingv2beta2.AutoscalingV2beta2Interface
77 BatchV1() batchv1.BatchV1Interface
Scott Bakere7144bc2019-10-01 14:16:47 -070078 BatchV1beta1() batchv1beta1.BatchV1beta1Interface
79 BatchV2alpha1() batchv2alpha1.BatchV2alpha1Interface
80 CertificatesV1beta1() certificatesv1beta1.CertificatesV1beta1Interface
Scott Bakere7144bc2019-10-01 14:16:47 -070081 CoordinationV1beta1() coordinationv1beta1.CoordinationV1beta1Interface
girishke7ca43b2019-10-10 12:30:03 +000082 CoordinationV1() coordinationv1.CoordinationV1Interface
Scott Bakere7144bc2019-10-01 14:16:47 -070083 CoreV1() corev1.CoreV1Interface
Scott Bakere7144bc2019-10-01 14:16:47 -070084 EventsV1beta1() eventsv1beta1.EventsV1beta1Interface
Scott Bakere7144bc2019-10-01 14:16:47 -070085 ExtensionsV1beta1() extensionsv1beta1.ExtensionsV1beta1Interface
Scott Bakere7144bc2019-10-01 14:16:47 -070086 NetworkingV1() networkingv1.NetworkingV1Interface
girishke7ca43b2019-10-10 12:30:03 +000087 NetworkingV1beta1() networkingv1beta1.NetworkingV1beta1Interface
88 NodeV1alpha1() nodev1alpha1.NodeV1alpha1Interface
89 NodeV1beta1() nodev1beta1.NodeV1beta1Interface
Scott Bakere7144bc2019-10-01 14:16:47 -070090 PolicyV1beta1() policyv1beta1.PolicyV1beta1Interface
Scott Bakere7144bc2019-10-01 14:16:47 -070091 RbacV1() rbacv1.RbacV1Interface
Scott Bakere7144bc2019-10-01 14:16:47 -070092 RbacV1beta1() rbacv1beta1.RbacV1beta1Interface
93 RbacV1alpha1() rbacv1alpha1.RbacV1alpha1Interface
94 SchedulingV1alpha1() schedulingv1alpha1.SchedulingV1alpha1Interface
95 SchedulingV1beta1() schedulingv1beta1.SchedulingV1beta1Interface
girishke7ca43b2019-10-10 12:30:03 +000096 SchedulingV1() schedulingv1.SchedulingV1Interface
Scott Bakere7144bc2019-10-01 14:16:47 -070097 SettingsV1alpha1() settingsv1alpha1.SettingsV1alpha1Interface
Scott Bakere7144bc2019-10-01 14:16:47 -070098 StorageV1beta1() storagev1beta1.StorageV1beta1Interface
99 StorageV1() storagev1.StorageV1Interface
Scott Bakere7144bc2019-10-01 14:16:47 -0700100 StorageV1alpha1() storagev1alpha1.StorageV1alpha1Interface
101}
102
103// Clientset contains the clients for groups. Each group has exactly one
104// version included in a Clientset.
105type Clientset struct {
106 *discovery.DiscoveryClient
girishke7ca43b2019-10-10 12:30:03 +0000107 admissionregistrationV1beta1 *admissionregistrationv1beta1.AdmissionregistrationV1beta1Client
108 appsV1 *appsv1.AppsV1Client
109 appsV1beta1 *appsv1beta1.AppsV1beta1Client
110 appsV1beta2 *appsv1beta2.AppsV1beta2Client
111 auditregistrationV1alpha1 *auditregistrationv1alpha1.AuditregistrationV1alpha1Client
112 authenticationV1 *authenticationv1.AuthenticationV1Client
113 authenticationV1beta1 *authenticationv1beta1.AuthenticationV1beta1Client
114 authorizationV1 *authorizationv1.AuthorizationV1Client
115 authorizationV1beta1 *authorizationv1beta1.AuthorizationV1beta1Client
116 autoscalingV1 *autoscalingv1.AutoscalingV1Client
117 autoscalingV2beta1 *autoscalingv2beta1.AutoscalingV2beta1Client
118 autoscalingV2beta2 *autoscalingv2beta2.AutoscalingV2beta2Client
119 batchV1 *batchv1.BatchV1Client
120 batchV1beta1 *batchv1beta1.BatchV1beta1Client
121 batchV2alpha1 *batchv2alpha1.BatchV2alpha1Client
122 certificatesV1beta1 *certificatesv1beta1.CertificatesV1beta1Client
123 coordinationV1beta1 *coordinationv1beta1.CoordinationV1beta1Client
124 coordinationV1 *coordinationv1.CoordinationV1Client
125 coreV1 *corev1.CoreV1Client
126 eventsV1beta1 *eventsv1beta1.EventsV1beta1Client
127 extensionsV1beta1 *extensionsv1beta1.ExtensionsV1beta1Client
128 networkingV1 *networkingv1.NetworkingV1Client
129 networkingV1beta1 *networkingv1beta1.NetworkingV1beta1Client
130 nodeV1alpha1 *nodev1alpha1.NodeV1alpha1Client
131 nodeV1beta1 *nodev1beta1.NodeV1beta1Client
132 policyV1beta1 *policyv1beta1.PolicyV1beta1Client
133 rbacV1 *rbacv1.RbacV1Client
134 rbacV1beta1 *rbacv1beta1.RbacV1beta1Client
135 rbacV1alpha1 *rbacv1alpha1.RbacV1alpha1Client
136 schedulingV1alpha1 *schedulingv1alpha1.SchedulingV1alpha1Client
137 schedulingV1beta1 *schedulingv1beta1.SchedulingV1beta1Client
138 schedulingV1 *schedulingv1.SchedulingV1Client
139 settingsV1alpha1 *settingsv1alpha1.SettingsV1alpha1Client
140 storageV1beta1 *storagev1beta1.StorageV1beta1Client
141 storageV1 *storagev1.StorageV1Client
142 storageV1alpha1 *storagev1alpha1.StorageV1alpha1Client
Scott Bakere7144bc2019-10-01 14:16:47 -0700143}
144
145// AdmissionregistrationV1beta1 retrieves the AdmissionregistrationV1beta1Client
146func (c *Clientset) AdmissionregistrationV1beta1() admissionregistrationv1beta1.AdmissionregistrationV1beta1Interface {
147 return c.admissionregistrationV1beta1
148}
149
girishke7ca43b2019-10-10 12:30:03 +0000150// AppsV1 retrieves the AppsV1Client
151func (c *Clientset) AppsV1() appsv1.AppsV1Interface {
152 return c.appsV1
Scott Bakere7144bc2019-10-01 14:16:47 -0700153}
154
155// AppsV1beta1 retrieves the AppsV1beta1Client
156func (c *Clientset) AppsV1beta1() appsv1beta1.AppsV1beta1Interface {
157 return c.appsV1beta1
158}
159
160// AppsV1beta2 retrieves the AppsV1beta2Client
161func (c *Clientset) AppsV1beta2() appsv1beta2.AppsV1beta2Interface {
162 return c.appsV1beta2
163}
164
Scott Bakere7144bc2019-10-01 14:16:47 -0700165// AuditregistrationV1alpha1 retrieves the AuditregistrationV1alpha1Client
166func (c *Clientset) AuditregistrationV1alpha1() auditregistrationv1alpha1.AuditregistrationV1alpha1Interface {
167 return c.auditregistrationV1alpha1
168}
169
Scott Bakere7144bc2019-10-01 14:16:47 -0700170// AuthenticationV1 retrieves the AuthenticationV1Client
171func (c *Clientset) AuthenticationV1() authenticationv1.AuthenticationV1Interface {
172 return c.authenticationV1
173}
174
Scott Bakere7144bc2019-10-01 14:16:47 -0700175// AuthenticationV1beta1 retrieves the AuthenticationV1beta1Client
176func (c *Clientset) AuthenticationV1beta1() authenticationv1beta1.AuthenticationV1beta1Interface {
177 return c.authenticationV1beta1
178}
179
180// AuthorizationV1 retrieves the AuthorizationV1Client
181func (c *Clientset) AuthorizationV1() authorizationv1.AuthorizationV1Interface {
182 return c.authorizationV1
183}
184
Scott Bakere7144bc2019-10-01 14:16:47 -0700185// AuthorizationV1beta1 retrieves the AuthorizationV1beta1Client
186func (c *Clientset) AuthorizationV1beta1() authorizationv1beta1.AuthorizationV1beta1Interface {
187 return c.authorizationV1beta1
188}
189
190// AutoscalingV1 retrieves the AutoscalingV1Client
191func (c *Clientset) AutoscalingV1() autoscalingv1.AutoscalingV1Interface {
192 return c.autoscalingV1
193}
194
Scott Bakere7144bc2019-10-01 14:16:47 -0700195// AutoscalingV2beta1 retrieves the AutoscalingV2beta1Client
196func (c *Clientset) AutoscalingV2beta1() autoscalingv2beta1.AutoscalingV2beta1Interface {
197 return c.autoscalingV2beta1
198}
199
200// AutoscalingV2beta2 retrieves the AutoscalingV2beta2Client
201func (c *Clientset) AutoscalingV2beta2() autoscalingv2beta2.AutoscalingV2beta2Interface {
202 return c.autoscalingV2beta2
203}
204
205// BatchV1 retrieves the BatchV1Client
206func (c *Clientset) BatchV1() batchv1.BatchV1Interface {
207 return c.batchV1
208}
209
Scott Bakere7144bc2019-10-01 14:16:47 -0700210// BatchV1beta1 retrieves the BatchV1beta1Client
211func (c *Clientset) BatchV1beta1() batchv1beta1.BatchV1beta1Interface {
212 return c.batchV1beta1
213}
214
215// BatchV2alpha1 retrieves the BatchV2alpha1Client
216func (c *Clientset) BatchV2alpha1() batchv2alpha1.BatchV2alpha1Interface {
217 return c.batchV2alpha1
218}
219
220// CertificatesV1beta1 retrieves the CertificatesV1beta1Client
221func (c *Clientset) CertificatesV1beta1() certificatesv1beta1.CertificatesV1beta1Interface {
222 return c.certificatesV1beta1
223}
224
Scott Bakere7144bc2019-10-01 14:16:47 -0700225// CoordinationV1beta1 retrieves the CoordinationV1beta1Client
226func (c *Clientset) CoordinationV1beta1() coordinationv1beta1.CoordinationV1beta1Interface {
227 return c.coordinationV1beta1
228}
229
girishke7ca43b2019-10-10 12:30:03 +0000230// CoordinationV1 retrieves the CoordinationV1Client
231func (c *Clientset) CoordinationV1() coordinationv1.CoordinationV1Interface {
232 return c.coordinationV1
Scott Bakere7144bc2019-10-01 14:16:47 -0700233}
234
235// CoreV1 retrieves the CoreV1Client
236func (c *Clientset) CoreV1() corev1.CoreV1Interface {
237 return c.coreV1
238}
239
Scott Bakere7144bc2019-10-01 14:16:47 -0700240// EventsV1beta1 retrieves the EventsV1beta1Client
241func (c *Clientset) EventsV1beta1() eventsv1beta1.EventsV1beta1Interface {
242 return c.eventsV1beta1
243}
244
Scott Bakere7144bc2019-10-01 14:16:47 -0700245// ExtensionsV1beta1 retrieves the ExtensionsV1beta1Client
246func (c *Clientset) ExtensionsV1beta1() extensionsv1beta1.ExtensionsV1beta1Interface {
247 return c.extensionsV1beta1
248}
249
Scott Bakere7144bc2019-10-01 14:16:47 -0700250// NetworkingV1 retrieves the NetworkingV1Client
251func (c *Clientset) NetworkingV1() networkingv1.NetworkingV1Interface {
252 return c.networkingV1
253}
254
girishke7ca43b2019-10-10 12:30:03 +0000255// NetworkingV1beta1 retrieves the NetworkingV1beta1Client
256func (c *Clientset) NetworkingV1beta1() networkingv1beta1.NetworkingV1beta1Interface {
257 return c.networkingV1beta1
258}
259
260// NodeV1alpha1 retrieves the NodeV1alpha1Client
261func (c *Clientset) NodeV1alpha1() nodev1alpha1.NodeV1alpha1Interface {
262 return c.nodeV1alpha1
263}
264
265// NodeV1beta1 retrieves the NodeV1beta1Client
266func (c *Clientset) NodeV1beta1() nodev1beta1.NodeV1beta1Interface {
267 return c.nodeV1beta1
Scott Bakere7144bc2019-10-01 14:16:47 -0700268}
269
270// PolicyV1beta1 retrieves the PolicyV1beta1Client
271func (c *Clientset) PolicyV1beta1() policyv1beta1.PolicyV1beta1Interface {
272 return c.policyV1beta1
273}
274
Scott Bakere7144bc2019-10-01 14:16:47 -0700275// RbacV1 retrieves the RbacV1Client
276func (c *Clientset) RbacV1() rbacv1.RbacV1Interface {
277 return c.rbacV1
278}
279
Scott Bakere7144bc2019-10-01 14:16:47 -0700280// RbacV1beta1 retrieves the RbacV1beta1Client
281func (c *Clientset) RbacV1beta1() rbacv1beta1.RbacV1beta1Interface {
282 return c.rbacV1beta1
283}
284
285// RbacV1alpha1 retrieves the RbacV1alpha1Client
286func (c *Clientset) RbacV1alpha1() rbacv1alpha1.RbacV1alpha1Interface {
287 return c.rbacV1alpha1
288}
289
290// SchedulingV1alpha1 retrieves the SchedulingV1alpha1Client
291func (c *Clientset) SchedulingV1alpha1() schedulingv1alpha1.SchedulingV1alpha1Interface {
292 return c.schedulingV1alpha1
293}
294
295// SchedulingV1beta1 retrieves the SchedulingV1beta1Client
296func (c *Clientset) SchedulingV1beta1() schedulingv1beta1.SchedulingV1beta1Interface {
297 return c.schedulingV1beta1
298}
299
girishke7ca43b2019-10-10 12:30:03 +0000300// SchedulingV1 retrieves the SchedulingV1Client
301func (c *Clientset) SchedulingV1() schedulingv1.SchedulingV1Interface {
302 return c.schedulingV1
Scott Bakere7144bc2019-10-01 14:16:47 -0700303}
304
305// SettingsV1alpha1 retrieves the SettingsV1alpha1Client
306func (c *Clientset) SettingsV1alpha1() settingsv1alpha1.SettingsV1alpha1Interface {
307 return c.settingsV1alpha1
308}
309
Scott Bakere7144bc2019-10-01 14:16:47 -0700310// StorageV1beta1 retrieves the StorageV1beta1Client
311func (c *Clientset) StorageV1beta1() storagev1beta1.StorageV1beta1Interface {
312 return c.storageV1beta1
313}
314
315// StorageV1 retrieves the StorageV1Client
316func (c *Clientset) StorageV1() storagev1.StorageV1Interface {
317 return c.storageV1
318}
319
Scott Bakere7144bc2019-10-01 14:16:47 -0700320// StorageV1alpha1 retrieves the StorageV1alpha1Client
321func (c *Clientset) StorageV1alpha1() storagev1alpha1.StorageV1alpha1Interface {
322 return c.storageV1alpha1
323}
324
325// Discovery retrieves the DiscoveryClient
326func (c *Clientset) Discovery() discovery.DiscoveryInterface {
327 if c == nil {
328 return nil
329 }
330 return c.DiscoveryClient
331}
332
333// NewForConfig creates a new Clientset for the given config.
334func NewForConfig(c *rest.Config) (*Clientset, error) {
335 configShallowCopy := *c
336 if configShallowCopy.RateLimiter == nil && configShallowCopy.QPS > 0 {
337 configShallowCopy.RateLimiter = flowcontrol.NewTokenBucketRateLimiter(configShallowCopy.QPS, configShallowCopy.Burst)
338 }
339 var cs Clientset
340 var err error
girishke7ca43b2019-10-10 12:30:03 +0000341 cs.admissionregistrationV1beta1, err = admissionregistrationv1beta1.NewForConfig(&configShallowCopy)
Scott Bakere7144bc2019-10-01 14:16:47 -0700342 if err != nil {
343 return nil, err
344 }
girishke7ca43b2019-10-10 12:30:03 +0000345 cs.appsV1, err = appsv1.NewForConfig(&configShallowCopy)
Scott Bakere7144bc2019-10-01 14:16:47 -0700346 if err != nil {
347 return nil, err
348 }
349 cs.appsV1beta1, err = appsv1beta1.NewForConfig(&configShallowCopy)
350 if err != nil {
351 return nil, err
352 }
353 cs.appsV1beta2, err = appsv1beta2.NewForConfig(&configShallowCopy)
354 if err != nil {
355 return nil, err
356 }
Scott Bakere7144bc2019-10-01 14:16:47 -0700357 cs.auditregistrationV1alpha1, err = auditregistrationv1alpha1.NewForConfig(&configShallowCopy)
358 if err != nil {
359 return nil, err
360 }
361 cs.authenticationV1, err = authenticationv1.NewForConfig(&configShallowCopy)
362 if err != nil {
363 return nil, err
364 }
365 cs.authenticationV1beta1, err = authenticationv1beta1.NewForConfig(&configShallowCopy)
366 if err != nil {
367 return nil, err
368 }
369 cs.authorizationV1, err = authorizationv1.NewForConfig(&configShallowCopy)
370 if err != nil {
371 return nil, err
372 }
373 cs.authorizationV1beta1, err = authorizationv1beta1.NewForConfig(&configShallowCopy)
374 if err != nil {
375 return nil, err
376 }
377 cs.autoscalingV1, err = autoscalingv1.NewForConfig(&configShallowCopy)
378 if err != nil {
379 return nil, err
380 }
381 cs.autoscalingV2beta1, err = autoscalingv2beta1.NewForConfig(&configShallowCopy)
382 if err != nil {
383 return nil, err
384 }
385 cs.autoscalingV2beta2, err = autoscalingv2beta2.NewForConfig(&configShallowCopy)
386 if err != nil {
387 return nil, err
388 }
389 cs.batchV1, err = batchv1.NewForConfig(&configShallowCopy)
390 if err != nil {
391 return nil, err
392 }
393 cs.batchV1beta1, err = batchv1beta1.NewForConfig(&configShallowCopy)
394 if err != nil {
395 return nil, err
396 }
397 cs.batchV2alpha1, err = batchv2alpha1.NewForConfig(&configShallowCopy)
398 if err != nil {
399 return nil, err
400 }
401 cs.certificatesV1beta1, err = certificatesv1beta1.NewForConfig(&configShallowCopy)
402 if err != nil {
403 return nil, err
404 }
405 cs.coordinationV1beta1, err = coordinationv1beta1.NewForConfig(&configShallowCopy)
406 if err != nil {
407 return nil, err
408 }
girishke7ca43b2019-10-10 12:30:03 +0000409 cs.coordinationV1, err = coordinationv1.NewForConfig(&configShallowCopy)
410 if err != nil {
411 return nil, err
412 }
Scott Bakere7144bc2019-10-01 14:16:47 -0700413 cs.coreV1, err = corev1.NewForConfig(&configShallowCopy)
414 if err != nil {
415 return nil, err
416 }
417 cs.eventsV1beta1, err = eventsv1beta1.NewForConfig(&configShallowCopy)
418 if err != nil {
419 return nil, err
420 }
421 cs.extensionsV1beta1, err = extensionsv1beta1.NewForConfig(&configShallowCopy)
422 if err != nil {
423 return nil, err
424 }
425 cs.networkingV1, err = networkingv1.NewForConfig(&configShallowCopy)
426 if err != nil {
427 return nil, err
428 }
girishke7ca43b2019-10-10 12:30:03 +0000429 cs.networkingV1beta1, err = networkingv1beta1.NewForConfig(&configShallowCopy)
430 if err != nil {
431 return nil, err
432 }
433 cs.nodeV1alpha1, err = nodev1alpha1.NewForConfig(&configShallowCopy)
434 if err != nil {
435 return nil, err
436 }
437 cs.nodeV1beta1, err = nodev1beta1.NewForConfig(&configShallowCopy)
438 if err != nil {
439 return nil, err
440 }
Scott Bakere7144bc2019-10-01 14:16:47 -0700441 cs.policyV1beta1, err = policyv1beta1.NewForConfig(&configShallowCopy)
442 if err != nil {
443 return nil, err
444 }
445 cs.rbacV1, err = rbacv1.NewForConfig(&configShallowCopy)
446 if err != nil {
447 return nil, err
448 }
449 cs.rbacV1beta1, err = rbacv1beta1.NewForConfig(&configShallowCopy)
450 if err != nil {
451 return nil, err
452 }
453 cs.rbacV1alpha1, err = rbacv1alpha1.NewForConfig(&configShallowCopy)
454 if err != nil {
455 return nil, err
456 }
457 cs.schedulingV1alpha1, err = schedulingv1alpha1.NewForConfig(&configShallowCopy)
458 if err != nil {
459 return nil, err
460 }
461 cs.schedulingV1beta1, err = schedulingv1beta1.NewForConfig(&configShallowCopy)
462 if err != nil {
463 return nil, err
464 }
girishke7ca43b2019-10-10 12:30:03 +0000465 cs.schedulingV1, err = schedulingv1.NewForConfig(&configShallowCopy)
466 if err != nil {
467 return nil, err
468 }
Scott Bakere7144bc2019-10-01 14:16:47 -0700469 cs.settingsV1alpha1, err = settingsv1alpha1.NewForConfig(&configShallowCopy)
470 if err != nil {
471 return nil, err
472 }
473 cs.storageV1beta1, err = storagev1beta1.NewForConfig(&configShallowCopy)
474 if err != nil {
475 return nil, err
476 }
477 cs.storageV1, err = storagev1.NewForConfig(&configShallowCopy)
478 if err != nil {
479 return nil, err
480 }
481 cs.storageV1alpha1, err = storagev1alpha1.NewForConfig(&configShallowCopy)
482 if err != nil {
483 return nil, err
484 }
485
486 cs.DiscoveryClient, err = discovery.NewDiscoveryClientForConfig(&configShallowCopy)
487 if err != nil {
488 return nil, err
489 }
490 return &cs, nil
491}
492
493// NewForConfigOrDie creates a new Clientset for the given config and
494// panics if there is an error in the config.
495func NewForConfigOrDie(c *rest.Config) *Clientset {
496 var cs Clientset
Scott Bakere7144bc2019-10-01 14:16:47 -0700497 cs.admissionregistrationV1beta1 = admissionregistrationv1beta1.NewForConfigOrDie(c)
girishke7ca43b2019-10-10 12:30:03 +0000498 cs.appsV1 = appsv1.NewForConfigOrDie(c)
Scott Bakere7144bc2019-10-01 14:16:47 -0700499 cs.appsV1beta1 = appsv1beta1.NewForConfigOrDie(c)
500 cs.appsV1beta2 = appsv1beta2.NewForConfigOrDie(c)
Scott Bakere7144bc2019-10-01 14:16:47 -0700501 cs.auditregistrationV1alpha1 = auditregistrationv1alpha1.NewForConfigOrDie(c)
502 cs.authenticationV1 = authenticationv1.NewForConfigOrDie(c)
503 cs.authenticationV1beta1 = authenticationv1beta1.NewForConfigOrDie(c)
504 cs.authorizationV1 = authorizationv1.NewForConfigOrDie(c)
505 cs.authorizationV1beta1 = authorizationv1beta1.NewForConfigOrDie(c)
506 cs.autoscalingV1 = autoscalingv1.NewForConfigOrDie(c)
507 cs.autoscalingV2beta1 = autoscalingv2beta1.NewForConfigOrDie(c)
508 cs.autoscalingV2beta2 = autoscalingv2beta2.NewForConfigOrDie(c)
509 cs.batchV1 = batchv1.NewForConfigOrDie(c)
510 cs.batchV1beta1 = batchv1beta1.NewForConfigOrDie(c)
511 cs.batchV2alpha1 = batchv2alpha1.NewForConfigOrDie(c)
512 cs.certificatesV1beta1 = certificatesv1beta1.NewForConfigOrDie(c)
513 cs.coordinationV1beta1 = coordinationv1beta1.NewForConfigOrDie(c)
girishke7ca43b2019-10-10 12:30:03 +0000514 cs.coordinationV1 = coordinationv1.NewForConfigOrDie(c)
Scott Bakere7144bc2019-10-01 14:16:47 -0700515 cs.coreV1 = corev1.NewForConfigOrDie(c)
516 cs.eventsV1beta1 = eventsv1beta1.NewForConfigOrDie(c)
517 cs.extensionsV1beta1 = extensionsv1beta1.NewForConfigOrDie(c)
518 cs.networkingV1 = networkingv1.NewForConfigOrDie(c)
girishke7ca43b2019-10-10 12:30:03 +0000519 cs.networkingV1beta1 = networkingv1beta1.NewForConfigOrDie(c)
520 cs.nodeV1alpha1 = nodev1alpha1.NewForConfigOrDie(c)
521 cs.nodeV1beta1 = nodev1beta1.NewForConfigOrDie(c)
Scott Bakere7144bc2019-10-01 14:16:47 -0700522 cs.policyV1beta1 = policyv1beta1.NewForConfigOrDie(c)
523 cs.rbacV1 = rbacv1.NewForConfigOrDie(c)
524 cs.rbacV1beta1 = rbacv1beta1.NewForConfigOrDie(c)
525 cs.rbacV1alpha1 = rbacv1alpha1.NewForConfigOrDie(c)
526 cs.schedulingV1alpha1 = schedulingv1alpha1.NewForConfigOrDie(c)
527 cs.schedulingV1beta1 = schedulingv1beta1.NewForConfigOrDie(c)
girishke7ca43b2019-10-10 12:30:03 +0000528 cs.schedulingV1 = schedulingv1.NewForConfigOrDie(c)
Scott Bakere7144bc2019-10-01 14:16:47 -0700529 cs.settingsV1alpha1 = settingsv1alpha1.NewForConfigOrDie(c)
530 cs.storageV1beta1 = storagev1beta1.NewForConfigOrDie(c)
531 cs.storageV1 = storagev1.NewForConfigOrDie(c)
532 cs.storageV1alpha1 = storagev1alpha1.NewForConfigOrDie(c)
533
534 cs.DiscoveryClient = discovery.NewDiscoveryClientForConfigOrDie(c)
535 return &cs
536}
537
538// New creates a new Clientset for the given RESTClient.
539func New(c rest.Interface) *Clientset {
540 var cs Clientset
Scott Bakere7144bc2019-10-01 14:16:47 -0700541 cs.admissionregistrationV1beta1 = admissionregistrationv1beta1.New(c)
girishke7ca43b2019-10-10 12:30:03 +0000542 cs.appsV1 = appsv1.New(c)
Scott Bakere7144bc2019-10-01 14:16:47 -0700543 cs.appsV1beta1 = appsv1beta1.New(c)
544 cs.appsV1beta2 = appsv1beta2.New(c)
Scott Bakere7144bc2019-10-01 14:16:47 -0700545 cs.auditregistrationV1alpha1 = auditregistrationv1alpha1.New(c)
546 cs.authenticationV1 = authenticationv1.New(c)
547 cs.authenticationV1beta1 = authenticationv1beta1.New(c)
548 cs.authorizationV1 = authorizationv1.New(c)
549 cs.authorizationV1beta1 = authorizationv1beta1.New(c)
550 cs.autoscalingV1 = autoscalingv1.New(c)
551 cs.autoscalingV2beta1 = autoscalingv2beta1.New(c)
552 cs.autoscalingV2beta2 = autoscalingv2beta2.New(c)
553 cs.batchV1 = batchv1.New(c)
554 cs.batchV1beta1 = batchv1beta1.New(c)
555 cs.batchV2alpha1 = batchv2alpha1.New(c)
556 cs.certificatesV1beta1 = certificatesv1beta1.New(c)
557 cs.coordinationV1beta1 = coordinationv1beta1.New(c)
girishke7ca43b2019-10-10 12:30:03 +0000558 cs.coordinationV1 = coordinationv1.New(c)
Scott Bakere7144bc2019-10-01 14:16:47 -0700559 cs.coreV1 = corev1.New(c)
560 cs.eventsV1beta1 = eventsv1beta1.New(c)
561 cs.extensionsV1beta1 = extensionsv1beta1.New(c)
562 cs.networkingV1 = networkingv1.New(c)
girishke7ca43b2019-10-10 12:30:03 +0000563 cs.networkingV1beta1 = networkingv1beta1.New(c)
564 cs.nodeV1alpha1 = nodev1alpha1.New(c)
565 cs.nodeV1beta1 = nodev1beta1.New(c)
Scott Bakere7144bc2019-10-01 14:16:47 -0700566 cs.policyV1beta1 = policyv1beta1.New(c)
567 cs.rbacV1 = rbacv1.New(c)
568 cs.rbacV1beta1 = rbacv1beta1.New(c)
569 cs.rbacV1alpha1 = rbacv1alpha1.New(c)
570 cs.schedulingV1alpha1 = schedulingv1alpha1.New(c)
571 cs.schedulingV1beta1 = schedulingv1beta1.New(c)
girishke7ca43b2019-10-10 12:30:03 +0000572 cs.schedulingV1 = schedulingv1.New(c)
Scott Bakere7144bc2019-10-01 14:16:47 -0700573 cs.settingsV1alpha1 = settingsv1alpha1.New(c)
574 cs.storageV1beta1 = storagev1beta1.New(c)
575 cs.storageV1 = storagev1.New(c)
576 cs.storageV1alpha1 = storagev1alpha1.New(c)
577
578 cs.DiscoveryClient = discovery.NewDiscoveryClient(c)
579 return &cs
580}