mirror of
https://github.com/kubernetes/sample-controller.git
synced 2026-05-01 00:00:03 +08:00
Merge pull request #74422 from liggitt/client-version-methods
Remove deprecated versionless client interface methods Kubernetes-commit: be8a9b96377973f0a956a11d55be4929bbf9ffd0
This commit is contained in:
-16
@@ -29,11 +29,7 @@ import (
|
||||
type Interface interface {
|
||||
Discovery() discovery.DiscoveryInterface
|
||||
ExampleV1() examplev1.ExampleV1Interface
|
||||
// Deprecated: please explicitly pick a version if possible.
|
||||
Example() examplev1.ExampleV1Interface
|
||||
SecondExampleV1() secondexamplev1.SecondExampleV1Interface
|
||||
// Deprecated: please explicitly pick a version if possible.
|
||||
SecondExample() secondexamplev1.SecondExampleV1Interface
|
||||
}
|
||||
|
||||
// Clientset contains the clients for groups. Each group has exactly one
|
||||
@@ -49,23 +45,11 @@ func (c *Clientset) ExampleV1() examplev1.ExampleV1Interface {
|
||||
return c.exampleV1
|
||||
}
|
||||
|
||||
// Deprecated: Example retrieves the default version of ExampleClient.
|
||||
// Please explicitly pick a version.
|
||||
func (c *Clientset) Example() examplev1.ExampleV1Interface {
|
||||
return c.exampleV1
|
||||
}
|
||||
|
||||
// SecondExampleV1 retrieves the SecondExampleV1Client
|
||||
func (c *Clientset) SecondExampleV1() secondexamplev1.SecondExampleV1Interface {
|
||||
return c.secondExampleV1
|
||||
}
|
||||
|
||||
// Deprecated: SecondExample retrieves the default version of SecondExampleClient.
|
||||
// Please explicitly pick a version.
|
||||
func (c *Clientset) SecondExample() secondexamplev1.SecondExampleV1Interface {
|
||||
return c.secondExampleV1
|
||||
}
|
||||
|
||||
// Discovery retrieves the DiscoveryClient
|
||||
func (c *Clientset) Discovery() discovery.DiscoveryInterface {
|
||||
if c == nil {
|
||||
|
||||
Generated
Vendored
-10
@@ -78,17 +78,7 @@ func (c *Clientset) ExampleV1() examplev1.ExampleV1Interface {
|
||||
return &fakeexamplev1.FakeExampleV1{Fake: &c.Fake}
|
||||
}
|
||||
|
||||
// Example retrieves the ExampleV1Client
|
||||
func (c *Clientset) Example() examplev1.ExampleV1Interface {
|
||||
return &fakeexamplev1.FakeExampleV1{Fake: &c.Fake}
|
||||
}
|
||||
|
||||
// SecondExampleV1 retrieves the SecondExampleV1Client
|
||||
func (c *Clientset) SecondExampleV1() secondexamplev1.SecondExampleV1Interface {
|
||||
return &fakesecondexamplev1.FakeSecondExampleV1{Fake: &c.Fake}
|
||||
}
|
||||
|
||||
// SecondExample retrieves the SecondExampleV1Client
|
||||
func (c *Clientset) SecondExample() secondexamplev1.SecondExampleV1Interface {
|
||||
return &fakesecondexamplev1.FakeSecondExampleV1{Fake: &c.Fake}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user