mirror of
https://github.com/kubernetes/client-go.git
synced 2025-09-10 03:19:44 +00:00
published by bot
(https://github.com/kubernetes/contrib/tree/master/mungegithub) copied from https://github.com/kubernetes/kubernetes.git, branch master, last commit is 124fb610dcbd445fa710da67508ac6d5b822f61d
This commit is contained in:
@@ -19,8 +19,8 @@ package v1beta1
|
||||
import (
|
||||
fmt "fmt"
|
||||
api "k8s.io/client-go/pkg/api"
|
||||
unversioned "k8s.io/client-go/pkg/api/unversioned"
|
||||
registered "k8s.io/client-go/pkg/apimachinery/registered"
|
||||
schema "k8s.io/client-go/pkg/runtime/schema"
|
||||
serializer "k8s.io/client-go/pkg/runtime/serializer"
|
||||
rest "k8s.io/client-go/rest"
|
||||
)
|
||||
@@ -68,7 +68,7 @@ func New(c rest.Interface) *AppsV1beta1Client {
|
||||
}
|
||||
|
||||
func setConfigDefaults(config *rest.Config) error {
|
||||
gv, err := unversioned.ParseGroupVersion("apps/v1beta1")
|
||||
gv, err := schema.ParseGroupVersion("apps/v1beta1")
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
@@ -18,10 +18,10 @@ package fake
|
||||
|
||||
import (
|
||||
api "k8s.io/client-go/pkg/api"
|
||||
unversioned "k8s.io/client-go/pkg/api/unversioned"
|
||||
v1 "k8s.io/client-go/pkg/api/v1"
|
||||
v1beta1 "k8s.io/client-go/pkg/apis/apps/v1beta1"
|
||||
labels "k8s.io/client-go/pkg/labels"
|
||||
schema "k8s.io/client-go/pkg/runtime/schema"
|
||||
watch "k8s.io/client-go/pkg/watch"
|
||||
testing "k8s.io/client-go/testing"
|
||||
)
|
||||
@@ -32,7 +32,7 @@ type FakeStatefulSets struct {
|
||||
ns string
|
||||
}
|
||||
|
||||
var statefulsetsResource = unversioned.GroupVersionResource{Group: "apps", Version: "v1beta1", Resource: "statefulsets"}
|
||||
var statefulsetsResource = schema.GroupVersionResource{Group: "apps", Version: "v1beta1", Resource: "statefulsets"}
|
||||
|
||||
func (c *FakeStatefulSets) Create(statefulSet *v1beta1.StatefulSet) (result *v1beta1.StatefulSet, err error) {
|
||||
obj, err := c.Fake.
|
||||
|
Reference in New Issue
Block a user