mirror of
https://github.com/kubernetes/client-go.git
synced 2025-06-29 00:17:46 +00:00
Merge pull request #55659 from CaoShuFeng/duplicated_import
Automatic merge from submit-queue (batch tested with PRs 53780, 55663, 55321, 52421, 55659). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. remove duplicated import **Release note**: ```release-note NONE ``` Kubernetes-commit: c339a54b53bd05eb642618bffda727196e38bc70
This commit is contained in:
commit
8d6b7712c9
108
Godeps/Godeps.json
generated
108
Godeps/Godeps.json
generated
@ -480,219 +480,219 @@
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/api/equality",
|
||||
"Rev": "a0fe0f715cac3e0e3c319d66e21507828a235dc6"
|
||||
"Rev": "06a5842e5143186ea755df4856ab23485473c206"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/api/errors",
|
||||
"Rev": "a0fe0f715cac3e0e3c319d66e21507828a235dc6"
|
||||
"Rev": "06a5842e5143186ea755df4856ab23485473c206"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/api/meta",
|
||||
"Rev": "a0fe0f715cac3e0e3c319d66e21507828a235dc6"
|
||||
"Rev": "06a5842e5143186ea755df4856ab23485473c206"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/api/resource",
|
||||
"Rev": "a0fe0f715cac3e0e3c319d66e21507828a235dc6"
|
||||
"Rev": "06a5842e5143186ea755df4856ab23485473c206"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/api/testing",
|
||||
"Rev": "a0fe0f715cac3e0e3c319d66e21507828a235dc6"
|
||||
"Rev": "06a5842e5143186ea755df4856ab23485473c206"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/api/testing/fuzzer",
|
||||
"Rev": "a0fe0f715cac3e0e3c319d66e21507828a235dc6"
|
||||
"Rev": "06a5842e5143186ea755df4856ab23485473c206"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/api/testing/roundtrip",
|
||||
"Rev": "a0fe0f715cac3e0e3c319d66e21507828a235dc6"
|
||||
"Rev": "06a5842e5143186ea755df4856ab23485473c206"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/apimachinery",
|
||||
"Rev": "a0fe0f715cac3e0e3c319d66e21507828a235dc6"
|
||||
"Rev": "06a5842e5143186ea755df4856ab23485473c206"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/apimachinery/announced",
|
||||
"Rev": "a0fe0f715cac3e0e3c319d66e21507828a235dc6"
|
||||
"Rev": "06a5842e5143186ea755df4856ab23485473c206"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/apimachinery/registered",
|
||||
"Rev": "a0fe0f715cac3e0e3c319d66e21507828a235dc6"
|
||||
"Rev": "06a5842e5143186ea755df4856ab23485473c206"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/fuzzer",
|
||||
"Rev": "a0fe0f715cac3e0e3c319d66e21507828a235dc6"
|
||||
"Rev": "06a5842e5143186ea755df4856ab23485473c206"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/internalversion",
|
||||
"Rev": "a0fe0f715cac3e0e3c319d66e21507828a235dc6"
|
||||
"Rev": "06a5842e5143186ea755df4856ab23485473c206"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/v1",
|
||||
"Rev": "a0fe0f715cac3e0e3c319d66e21507828a235dc6"
|
||||
"Rev": "06a5842e5143186ea755df4856ab23485473c206"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured",
|
||||
"Rev": "a0fe0f715cac3e0e3c319d66e21507828a235dc6"
|
||||
"Rev": "06a5842e5143186ea755df4856ab23485473c206"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/v1alpha1",
|
||||
"Rev": "a0fe0f715cac3e0e3c319d66e21507828a235dc6"
|
||||
"Rev": "06a5842e5143186ea755df4856ab23485473c206"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/conversion",
|
||||
"Rev": "a0fe0f715cac3e0e3c319d66e21507828a235dc6"
|
||||
"Rev": "06a5842e5143186ea755df4856ab23485473c206"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/conversion/queryparams",
|
||||
"Rev": "a0fe0f715cac3e0e3c319d66e21507828a235dc6"
|
||||
"Rev": "06a5842e5143186ea755df4856ab23485473c206"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/conversion/unstructured",
|
||||
"Rev": "a0fe0f715cac3e0e3c319d66e21507828a235dc6"
|
||||
"Rev": "06a5842e5143186ea755df4856ab23485473c206"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/fields",
|
||||
"Rev": "a0fe0f715cac3e0e3c319d66e21507828a235dc6"
|
||||
"Rev": "06a5842e5143186ea755df4856ab23485473c206"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/labels",
|
||||
"Rev": "a0fe0f715cac3e0e3c319d66e21507828a235dc6"
|
||||
"Rev": "06a5842e5143186ea755df4856ab23485473c206"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/runtime",
|
||||
"Rev": "a0fe0f715cac3e0e3c319d66e21507828a235dc6"
|
||||
"Rev": "06a5842e5143186ea755df4856ab23485473c206"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/runtime/schema",
|
||||
"Rev": "a0fe0f715cac3e0e3c319d66e21507828a235dc6"
|
||||
"Rev": "06a5842e5143186ea755df4856ab23485473c206"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer",
|
||||
"Rev": "a0fe0f715cac3e0e3c319d66e21507828a235dc6"
|
||||
"Rev": "06a5842e5143186ea755df4856ab23485473c206"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/json",
|
||||
"Rev": "a0fe0f715cac3e0e3c319d66e21507828a235dc6"
|
||||
"Rev": "06a5842e5143186ea755df4856ab23485473c206"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/protobuf",
|
||||
"Rev": "a0fe0f715cac3e0e3c319d66e21507828a235dc6"
|
||||
"Rev": "06a5842e5143186ea755df4856ab23485473c206"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/recognizer",
|
||||
"Rev": "a0fe0f715cac3e0e3c319d66e21507828a235dc6"
|
||||
"Rev": "06a5842e5143186ea755df4856ab23485473c206"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/streaming",
|
||||
"Rev": "a0fe0f715cac3e0e3c319d66e21507828a235dc6"
|
||||
"Rev": "06a5842e5143186ea755df4856ab23485473c206"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/versioning",
|
||||
"Rev": "a0fe0f715cac3e0e3c319d66e21507828a235dc6"
|
||||
"Rev": "06a5842e5143186ea755df4856ab23485473c206"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/selection",
|
||||
"Rev": "a0fe0f715cac3e0e3c319d66e21507828a235dc6"
|
||||
"Rev": "06a5842e5143186ea755df4856ab23485473c206"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/types",
|
||||
"Rev": "a0fe0f715cac3e0e3c319d66e21507828a235dc6"
|
||||
"Rev": "06a5842e5143186ea755df4856ab23485473c206"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/util/cache",
|
||||
"Rev": "a0fe0f715cac3e0e3c319d66e21507828a235dc6"
|
||||
"Rev": "06a5842e5143186ea755df4856ab23485473c206"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/util/clock",
|
||||
"Rev": "a0fe0f715cac3e0e3c319d66e21507828a235dc6"
|
||||
"Rev": "06a5842e5143186ea755df4856ab23485473c206"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/util/diff",
|
||||
"Rev": "a0fe0f715cac3e0e3c319d66e21507828a235dc6"
|
||||
"Rev": "06a5842e5143186ea755df4856ab23485473c206"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/util/errors",
|
||||
"Rev": "a0fe0f715cac3e0e3c319d66e21507828a235dc6"
|
||||
"Rev": "06a5842e5143186ea755df4856ab23485473c206"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/util/framer",
|
||||
"Rev": "a0fe0f715cac3e0e3c319d66e21507828a235dc6"
|
||||
"Rev": "06a5842e5143186ea755df4856ab23485473c206"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/util/httpstream",
|
||||
"Rev": "a0fe0f715cac3e0e3c319d66e21507828a235dc6"
|
||||
"Rev": "06a5842e5143186ea755df4856ab23485473c206"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/util/httpstream/spdy",
|
||||
"Rev": "a0fe0f715cac3e0e3c319d66e21507828a235dc6"
|
||||
"Rev": "06a5842e5143186ea755df4856ab23485473c206"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/util/intstr",
|
||||
"Rev": "a0fe0f715cac3e0e3c319d66e21507828a235dc6"
|
||||
"Rev": "06a5842e5143186ea755df4856ab23485473c206"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/util/json",
|
||||
"Rev": "a0fe0f715cac3e0e3c319d66e21507828a235dc6"
|
||||
"Rev": "06a5842e5143186ea755df4856ab23485473c206"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/util/mergepatch",
|
||||
"Rev": "a0fe0f715cac3e0e3c319d66e21507828a235dc6"
|
||||
"Rev": "06a5842e5143186ea755df4856ab23485473c206"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/util/net",
|
||||
"Rev": "a0fe0f715cac3e0e3c319d66e21507828a235dc6"
|
||||
"Rev": "06a5842e5143186ea755df4856ab23485473c206"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/util/remotecommand",
|
||||
"Rev": "a0fe0f715cac3e0e3c319d66e21507828a235dc6"
|
||||
"Rev": "06a5842e5143186ea755df4856ab23485473c206"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/util/runtime",
|
||||
"Rev": "a0fe0f715cac3e0e3c319d66e21507828a235dc6"
|
||||
"Rev": "06a5842e5143186ea755df4856ab23485473c206"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/util/sets",
|
||||
"Rev": "a0fe0f715cac3e0e3c319d66e21507828a235dc6"
|
||||
"Rev": "06a5842e5143186ea755df4856ab23485473c206"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/util/strategicpatch",
|
||||
"Rev": "a0fe0f715cac3e0e3c319d66e21507828a235dc6"
|
||||
"Rev": "06a5842e5143186ea755df4856ab23485473c206"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/util/validation",
|
||||
"Rev": "a0fe0f715cac3e0e3c319d66e21507828a235dc6"
|
||||
"Rev": "06a5842e5143186ea755df4856ab23485473c206"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/util/validation/field",
|
||||
"Rev": "a0fe0f715cac3e0e3c319d66e21507828a235dc6"
|
||||
"Rev": "06a5842e5143186ea755df4856ab23485473c206"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/util/wait",
|
||||
"Rev": "a0fe0f715cac3e0e3c319d66e21507828a235dc6"
|
||||
"Rev": "06a5842e5143186ea755df4856ab23485473c206"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/util/yaml",
|
||||
"Rev": "a0fe0f715cac3e0e3c319d66e21507828a235dc6"
|
||||
"Rev": "06a5842e5143186ea755df4856ab23485473c206"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/version",
|
||||
"Rev": "a0fe0f715cac3e0e3c319d66e21507828a235dc6"
|
||||
"Rev": "06a5842e5143186ea755df4856ab23485473c206"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/watch",
|
||||
"Rev": "a0fe0f715cac3e0e3c319d66e21507828a235dc6"
|
||||
"Rev": "06a5842e5143186ea755df4856ab23485473c206"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/third_party/forked/golang/json",
|
||||
"Rev": "a0fe0f715cac3e0e3c319d66e21507828a235dc6"
|
||||
"Rev": "06a5842e5143186ea755df4856ab23485473c206"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/third_party/forked/golang/netutil",
|
||||
"Rev": "a0fe0f715cac3e0e3c319d66e21507828a235dc6"
|
||||
"Rev": "06a5842e5143186ea755df4856ab23485473c206"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/third_party/forked/golang/reflect",
|
||||
"Rev": "a0fe0f715cac3e0e3c319d66e21507828a235dc6"
|
||||
"Rev": "06a5842e5143186ea755df4856ab23485473c206"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/kube-openapi/pkg/common",
|
||||
|
@ -28,7 +28,6 @@ import (
|
||||
|
||||
"k8s.io/api/core/v1"
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
uapi "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
"k8s.io/apimachinery/pkg/runtime"
|
||||
"k8s.io/apimachinery/pkg/runtime/schema"
|
||||
"k8s.io/apimachinery/pkg/util/sets"
|
||||
@ -87,7 +86,7 @@ func TestServerSupportsVersion(t *testing.T) {
|
||||
NegotiatedSerializer: scheme.Codecs,
|
||||
Resp: &http.Response{
|
||||
StatusCode: test.statusCode,
|
||||
Body: objBody(&uapi.APIVersions{Versions: test.serverVersions}),
|
||||
Body: objBody(&metav1.APIVersions{Versions: test.serverVersions}),
|
||||
},
|
||||
Client: fake.CreateHTTPClient(func(req *http.Request) (*http.Response, error) {
|
||||
if test.sendErr != nil {
|
||||
@ -95,7 +94,7 @@ func TestServerSupportsVersion(t *testing.T) {
|
||||
}
|
||||
header := http.Header{}
|
||||
header.Set("Content-Type", runtime.ContentTypeJSON)
|
||||
return &http.Response{StatusCode: test.statusCode, Header: header, Body: objBody(&uapi.APIVersions{Versions: test.serverVersions})}, nil
|
||||
return &http.Response{StatusCode: test.statusCode, Header: header, Body: objBody(&metav1.APIVersions{Versions: test.serverVersions})}, nil
|
||||
}),
|
||||
}
|
||||
c := discovery.NewDiscoveryClientForConfigOrDie(&restclient.Config{})
|
||||
|
@ -22,7 +22,6 @@ import (
|
||||
|
||||
certificates "k8s.io/api/certificates/v1beta1"
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
watch "k8s.io/apimachinery/pkg/watch"
|
||||
certificatesclient "k8s.io/client-go/kubernetes/typed/certificates/v1beta1"
|
||||
certutil "k8s.io/client-go/util/cert"
|
||||
@ -98,11 +97,11 @@ func (c *fakeClient) Create(*certificates.CertificateSigningRequest) (*certifica
|
||||
return &csr, nil
|
||||
}
|
||||
|
||||
func (c *fakeClient) List(opts v1.ListOptions) (*certificates.CertificateSigningRequestList, error) {
|
||||
func (c *fakeClient) List(opts metav1.ListOptions) (*certificates.CertificateSigningRequestList, error) {
|
||||
return &certificates.CertificateSigningRequestList{}, nil
|
||||
}
|
||||
|
||||
func (c *fakeClient) Watch(opts v1.ListOptions) (watch.Interface, error) {
|
||||
func (c *fakeClient) Watch(opts metav1.ListOptions) (watch.Interface, error) {
|
||||
c.watch = watch.NewFakeWithChanSize(1, false)
|
||||
c.watch.Add(c.generateCSR())
|
||||
c.watch.Stop()
|
||||
|
Loading…
Reference in New Issue
Block a user