Commit e9927664 authored by Janet Kuo's avatar Janet Kuo

Remove unnecessary dependency in client-gen

parent c2bf059b
...@@ -150,7 +150,6 @@ func main() { ...@@ -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 ( ...@@ -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 { ...@@ -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 { ...@@ -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. ...@@ -16,4 +16,4 @@ limitations under the License.
package unversioned package unversioned
type PetSetExpansion interface{} type StatefulSetExpansion interface{}
...@@ -25,7 +25,7 @@ import ( ...@@ -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 { ...@@ -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 { ...@@ -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. ...@@ -16,4 +16,4 @@ limitations under the License.
package v1alpha1 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