Remove unnecessary dependency in client-gen

This commit is contained in:
Janet Kuo 2016-10-26 15:59:39 -07:00
parent c2bf059bdc
commit e9927664cf
7 changed files with 12 additions and 13 deletions

View File

@ -150,7 +150,6 @@ func main() {
"k8s.io/kubernetes/pkg/fields",
"k8s.io/kubernetes/pkg/labels",
"k8s.io/kubernetes/pkg/watch",
"k8s.io/kubernetes/pkg/client/unversioned",
"k8s.io/kubernetes/pkg/apimachinery/registered",
}

View File

@ -24,7 +24,7 @@ import (
type AppsInterface interface {
RESTClient() restclient.Interface
PetSetsGetter
StatefulSetsGetter
}
// AppsClient is used to interact with features provided by the Apps group.
@ -32,8 +32,8 @@ type AppsClient struct {
restClient restclient.Interface
}
func (c *AppsClient) PetSets(namespace string) PetSetInterface {
return newPetSets(c, namespace)
func (c *AppsClient) StatefulSets(namespace string) StatefulSetInterface {
return newStatefulSets(c, namespace)
}
// NewForConfig creates a new AppsClient for the given config.

View File

@ -26,8 +26,8 @@ type FakeApps struct {
*core.Fake
}
func (c *FakeApps) PetSets(namespace string) unversioned.PetSetInterface {
return &FakePetSets{c, namespace}
func (c *FakeApps) StatefulSets(namespace string) unversioned.StatefulSetInterface {
return &FakeStatefulSets{c, namespace}
}
// RESTClient returns a RESTClient that is used to communicate

View File

@ -16,4 +16,4 @@ limitations under the License.
package unversioned
type PetSetExpansion interface{}
type StatefulSetExpansion interface{}

View File

@ -25,7 +25,7 @@ import (
type AppsInterface interface {
RESTClient() restclient.Interface
PetSetsGetter
StatefulSetsGetter
}
// AppsClient is used to interact with features provided by the Apps group.
@ -33,8 +33,8 @@ type AppsClient struct {
restClient restclient.Interface
}
func (c *AppsClient) PetSets(namespace string) PetSetInterface {
return newPetSets(c, namespace)
func (c *AppsClient) StatefulSets(namespace string) StatefulSetInterface {
return newStatefulSets(c, namespace)
}
// NewForConfig creates a new AppsClient for the given config.

View File

@ -26,8 +26,8 @@ type FakeApps struct {
*core.Fake
}
func (c *FakeApps) PetSets(namespace string) v1alpha1.PetSetInterface {
return &FakePetSets{c, namespace}
func (c *FakeApps) StatefulSets(namespace string) v1alpha1.StatefulSetInterface {
return &FakeStatefulSets{c, namespace}
}
// RESTClient returns a RESTClient that is used to communicate

View File

@ -16,4 +16,4 @@ limitations under the License.
package v1alpha1
type PetSetExpansion interface{}
type StatefulSetExpansion interface{}