Skip to content

Commit 3b310d8

Browse files
committed
Update generated code
1 parent 83895da commit 3b310d8

File tree

15 files changed

+280
-285
lines changed

15 files changed

+280
-285
lines changed

cmd/kubeadm/app/phases/markmaster/BUILD

-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ go_test(
2020
"//vendor/k8s.io/api/core/v1:go_default_library",
2121
"//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
2222
"//vendor/k8s.io/client-go/kubernetes:go_default_library",
23-
"//vendor/k8s.io/client-go/kubernetes/typed/core/v1:go_default_library",
2423
"//vendor/k8s.io/client-go/rest:go_default_library",
2524
],
2625
)

federation/client/clientset_generated/federation_clientset/clientset.go

+30-30
Original file line numberDiff line numberDiff line change
@@ -51,66 +51,66 @@ type Interface interface {
5151
// version included in a Clientset.
5252
type Clientset struct {
5353
*discovery.DiscoveryClient
54-
*autoscalingv1.AutoscalingV1Client
55-
*batchv1.BatchV1Client
56-
*corev1.CoreV1Client
57-
*extensionsv1beta1.ExtensionsV1beta1Client
58-
*federationv1beta1.FederationV1beta1Client
54+
autoscalingV1 *autoscalingv1.AutoscalingV1Client
55+
batchV1 *batchv1.BatchV1Client
56+
coreV1 *corev1.CoreV1Client
57+
extensionsV1beta1 *extensionsv1beta1.ExtensionsV1beta1Client
58+
federationV1beta1 *federationv1beta1.FederationV1beta1Client
5959
}
6060

6161
// AutoscalingV1 retrieves the AutoscalingV1Client
6262
func (c *Clientset) AutoscalingV1() autoscalingv1.AutoscalingV1Interface {
63-
return c.AutoscalingV1Client
63+
return c.autoscalingV1
6464
}
6565

6666
// Deprecated: Autoscaling retrieves the default version of AutoscalingClient.
6767
// Please explicitly pick a version.
6868
func (c *Clientset) Autoscaling() autoscalingv1.AutoscalingV1Interface {
69-
return c.AutoscalingV1Client
69+
return c.autoscalingV1
7070
}
7171

7272
// BatchV1 retrieves the BatchV1Client
7373
func (c *Clientset) BatchV1() batchv1.BatchV1Interface {
74-
return c.BatchV1Client
74+
return c.batchV1
7575
}
7676

7777
// Deprecated: Batch retrieves the default version of BatchClient.
7878
// Please explicitly pick a version.
7979
func (c *Clientset) Batch() batchv1.BatchV1Interface {
80-
return c.BatchV1Client
80+
return c.batchV1
8181
}
8282

8383
// CoreV1 retrieves the CoreV1Client
8484
func (c *Clientset) CoreV1() corev1.CoreV1Interface {
85-
return c.CoreV1Client
85+
return c.coreV1
8686
}
8787

8888
// Deprecated: Core retrieves the default version of CoreClient.
8989
// Please explicitly pick a version.
9090
func (c *Clientset) Core() corev1.CoreV1Interface {
91-
return c.CoreV1Client
91+
return c.coreV1
9292
}
9393

9494
// ExtensionsV1beta1 retrieves the ExtensionsV1beta1Client
9595
func (c *Clientset) ExtensionsV1beta1() extensionsv1beta1.ExtensionsV1beta1Interface {
96-
return c.ExtensionsV1beta1Client
96+
return c.extensionsV1beta1
9797
}
9898

9999
// Deprecated: Extensions retrieves the default version of ExtensionsClient.
100100
// Please explicitly pick a version.
101101
func (c *Clientset) Extensions() extensionsv1beta1.ExtensionsV1beta1Interface {
102-
return c.ExtensionsV1beta1Client
102+
return c.extensionsV1beta1
103103
}
104104

105105
// FederationV1beta1 retrieves the FederationV1beta1Client
106106
func (c *Clientset) FederationV1beta1() federationv1beta1.FederationV1beta1Interface {
107-
return c.FederationV1beta1Client
107+
return c.federationV1beta1
108108
}
109109

110110
// Deprecated: Federation retrieves the default version of FederationClient.
111111
// Please explicitly pick a version.
112112
func (c *Clientset) Federation() federationv1beta1.FederationV1beta1Interface {
113-
return c.FederationV1beta1Client
113+
return c.federationV1beta1
114114
}
115115

116116
// Discovery retrieves the DiscoveryClient
@@ -129,23 +129,23 @@ func NewForConfig(c *rest.Config) (*Clientset, error) {
129129
}
130130
var cs Clientset
131131
var err error
132-
cs.AutoscalingV1Client, err = autoscalingv1.NewForConfig(&configShallowCopy)
132+
cs.autoscalingV1, err = autoscalingv1.NewForConfig(&configShallowCopy)
133133
if err != nil {
134134
return nil, err
135135
}
136-
cs.BatchV1Client, err = batchv1.NewForConfig(&configShallowCopy)
136+
cs.batchV1, err = batchv1.NewForConfig(&configShallowCopy)
137137
if err != nil {
138138
return nil, err
139139
}
140-
cs.CoreV1Client, err = corev1.NewForConfig(&configShallowCopy)
140+
cs.coreV1, err = corev1.NewForConfig(&configShallowCopy)
141141
if err != nil {
142142
return nil, err
143143
}
144-
cs.ExtensionsV1beta1Client, err = extensionsv1beta1.NewForConfig(&configShallowCopy)
144+
cs.extensionsV1beta1, err = extensionsv1beta1.NewForConfig(&configShallowCopy)
145145
if err != nil {
146146
return nil, err
147147
}
148-
cs.FederationV1beta1Client, err = federationv1beta1.NewForConfig(&configShallowCopy)
148+
cs.federationV1beta1, err = federationv1beta1.NewForConfig(&configShallowCopy)
149149
if err != nil {
150150
return nil, err
151151
}
@@ -162,11 +162,11 @@ func NewForConfig(c *rest.Config) (*Clientset, error) {
162162
// panics if there is an error in the config.
163163
func NewForConfigOrDie(c *rest.Config) *Clientset {
164164
var cs Clientset
165-
cs.AutoscalingV1Client = autoscalingv1.NewForConfigOrDie(c)
166-
cs.BatchV1Client = batchv1.NewForConfigOrDie(c)
167-
cs.CoreV1Client = corev1.NewForConfigOrDie(c)
168-
cs.ExtensionsV1beta1Client = extensionsv1beta1.NewForConfigOrDie(c)
169-
cs.FederationV1beta1Client = federationv1beta1.NewForConfigOrDie(c)
165+
cs.autoscalingV1 = autoscalingv1.NewForConfigOrDie(c)
166+
cs.batchV1 = batchv1.NewForConfigOrDie(c)
167+
cs.coreV1 = corev1.NewForConfigOrDie(c)
168+
cs.extensionsV1beta1 = extensionsv1beta1.NewForConfigOrDie(c)
169+
cs.federationV1beta1 = federationv1beta1.NewForConfigOrDie(c)
170170

171171
cs.DiscoveryClient = discovery.NewDiscoveryClientForConfigOrDie(c)
172172
return &cs
@@ -175,11 +175,11 @@ func NewForConfigOrDie(c *rest.Config) *Clientset {
175175
// New creates a new Clientset for the given RESTClient.
176176
func New(c rest.Interface) *Clientset {
177177
var cs Clientset
178-
cs.AutoscalingV1Client = autoscalingv1.New(c)
179-
cs.BatchV1Client = batchv1.New(c)
180-
cs.CoreV1Client = corev1.New(c)
181-
cs.ExtensionsV1beta1Client = extensionsv1beta1.New(c)
182-
cs.FederationV1beta1Client = federationv1beta1.New(c)
178+
cs.autoscalingV1 = autoscalingv1.New(c)
179+
cs.batchV1 = batchv1.New(c)
180+
cs.coreV1 = corev1.New(c)
181+
cs.extensionsV1beta1 = extensionsv1beta1.New(c)
182+
cs.federationV1beta1 = federationv1beta1.New(c)
183183

184184
cs.DiscoveryClient = discovery.NewDiscoveryClient(c)
185185
return &cs

0 commit comments

Comments
 (0)