mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-14 22:33:34 +00:00
Remove unnecessary dependency in client-gen
This commit is contained in:
parent
c2bf059bdc
commit
e9927664cf
@ -150,7 +150,6 @@ func main() {
|
|||||||
"k8s.io/kubernetes/pkg/fields",
|
"k8s.io/kubernetes/pkg/fields",
|
||||||
"k8s.io/kubernetes/pkg/labels",
|
"k8s.io/kubernetes/pkg/labels",
|
||||||
"k8s.io/kubernetes/pkg/watch",
|
"k8s.io/kubernetes/pkg/watch",
|
||||||
"k8s.io/kubernetes/pkg/client/unversioned",
|
|
||||||
"k8s.io/kubernetes/pkg/apimachinery/registered",
|
"k8s.io/kubernetes/pkg/apimachinery/registered",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ import (
|
|||||||
|
|
||||||
type AppsInterface interface {
|
type AppsInterface interface {
|
||||||
RESTClient() restclient.Interface
|
RESTClient() restclient.Interface
|
||||||
PetSetsGetter
|
StatefulSetsGetter
|
||||||
}
|
}
|
||||||
|
|
||||||
// AppsClient is used to interact with features provided by the Apps group.
|
// AppsClient is used to interact with features provided by the Apps group.
|
||||||
@ -32,8 +32,8 @@ type AppsClient struct {
|
|||||||
restClient restclient.Interface
|
restClient restclient.Interface
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *AppsClient) PetSets(namespace string) PetSetInterface {
|
func (c *AppsClient) StatefulSets(namespace string) StatefulSetInterface {
|
||||||
return newPetSets(c, namespace)
|
return newStatefulSets(c, namespace)
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewForConfig creates a new AppsClient for the given config.
|
// NewForConfig creates a new AppsClient for the given config.
|
||||||
|
@ -26,8 +26,8 @@ type FakeApps struct {
|
|||||||
*core.Fake
|
*core.Fake
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *FakeApps) PetSets(namespace string) unversioned.PetSetInterface {
|
func (c *FakeApps) StatefulSets(namespace string) unversioned.StatefulSetInterface {
|
||||||
return &FakePetSets{c, namespace}
|
return &FakeStatefulSets{c, namespace}
|
||||||
}
|
}
|
||||||
|
|
||||||
// RESTClient returns a RESTClient that is used to communicate
|
// RESTClient returns a RESTClient that is used to communicate
|
||||||
|
@ -16,4 +16,4 @@ limitations under the License.
|
|||||||
|
|
||||||
package unversioned
|
package unversioned
|
||||||
|
|
||||||
type PetSetExpansion interface{}
|
type StatefulSetExpansion interface{}
|
||||||
|
@ -25,7 +25,7 @@ import (
|
|||||||
|
|
||||||
type AppsInterface interface {
|
type AppsInterface interface {
|
||||||
RESTClient() restclient.Interface
|
RESTClient() restclient.Interface
|
||||||
PetSetsGetter
|
StatefulSetsGetter
|
||||||
}
|
}
|
||||||
|
|
||||||
// AppsClient is used to interact with features provided by the Apps group.
|
// AppsClient is used to interact with features provided by the Apps group.
|
||||||
@ -33,8 +33,8 @@ type AppsClient struct {
|
|||||||
restClient restclient.Interface
|
restClient restclient.Interface
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *AppsClient) PetSets(namespace string) PetSetInterface {
|
func (c *AppsClient) StatefulSets(namespace string) StatefulSetInterface {
|
||||||
return newPetSets(c, namespace)
|
return newStatefulSets(c, namespace)
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewForConfig creates a new AppsClient for the given config.
|
// NewForConfig creates a new AppsClient for the given config.
|
||||||
|
@ -26,8 +26,8 @@ type FakeApps struct {
|
|||||||
*core.Fake
|
*core.Fake
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *FakeApps) PetSets(namespace string) v1alpha1.PetSetInterface {
|
func (c *FakeApps) StatefulSets(namespace string) v1alpha1.StatefulSetInterface {
|
||||||
return &FakePetSets{c, namespace}
|
return &FakeStatefulSets{c, namespace}
|
||||||
}
|
}
|
||||||
|
|
||||||
// RESTClient returns a RESTClient that is used to communicate
|
// RESTClient returns a RESTClient that is used to communicate
|
||||||
|
@ -16,4 +16,4 @@ limitations under the License.
|
|||||||
|
|
||||||
package v1alpha1
|
package v1alpha1
|
||||||
|
|
||||||
type PetSetExpansion interface{}
|
type StatefulSetExpansion interface{}
|
||||||
|
Loading…
Reference in New Issue
Block a user