Commit e9927664 authored by Janet Kuo's avatar Janet Kuo

Remove unnecessary dependency in client-gen

parent c2bf059b
......@@ -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",
}
......
......@@ -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.
......
......@@ -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
......
......@@ -16,4 +16,4 @@ limitations under the License.
package unversioned
type PetSetExpansion interface{}
type StatefulSetExpansion interface{}
......@@ -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.
......
......@@ -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
......
......@@ -16,4 +16,4 @@ limitations under the License.
package v1alpha1
type PetSetExpansion interface{}
type StatefulSetExpansion interface{}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment