mirror of
https://github.com/kubernetes/client-go.git
synced 2025-06-22 13:17:07 +00:00
Merge pull request #65411 from nikhita/fix-publishing-bot-fakeclient
Automatic merge from submit-queue (batch tested with PRs 63773, 65411). 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>. client-go/examples/fake-client: add doc.go to fix go build warnings The publishing bot is currently broken (https://github.com/kubernetes/kubernetes/issues/56876#issuecomment-399763681). This is due to the following error: ``` [24 Jun 18 15:08 UTC]: Running smoke tests for branch master [24 Jun 18 15:08 UTC]: /bin/bash -xec "godep restore\ngo build ./...\ngo test $(go list ./... | grep -v /vendor/)\n" + godep restore + go build ./... go build k8s.io/client-go/examples/fake-client: no non-test Go files in /go-workspace/src/k8s.io/client-go/examples/fake-client [24 Jun 18 15:09 UTC]: exit status 1 + godep restore + go build ./... go build k8s.io/client-go/examples/fake-client: no non-test Go files in /go-workspace/src/k8s.io/client-go/examples/fake-client [24 Jun 18 15:09 UTC]: exit status 1``` ``` The fakeclient package does not have any non-test go files. The test file was added in https://github.com/kubernetes/kubernetes/pull/65291 2 days ago. This causes `go build` to give a warning: `no non-test Go files in /go-workspace/src/k8s.io/client-go/examples/fake-client`, which breaks the publishing bot. This PR adds a dummy doc.go file in the package to avoid this warning and fix the publishing bot. **Release note**: ```release-note NONE ``` Kubernetes-commit: 7a9a30a4f7eae900bffd4b477a431a999de350dd
This commit is contained in:
commit
57012a8ca3
102
Godeps/Godeps.json
generated
102
Godeps/Godeps.json
generated
@ -1,6 +1,6 @@
|
||||
{
|
||||
"ImportPath": "k8s.io/client-go",
|
||||
"GoVersion": "go1.10",
|
||||
"GoVersion": "go1.9",
|
||||
"GodepVersion": "v80",
|
||||
"Packages": [
|
||||
"./..."
|
||||
@ -388,203 +388,203 @@
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/api/equality",
|
||||
"Rev": "00c78f6603af046dfcada47ba511ddc94e7a64ce"
|
||||
"Rev": "1c56055d3f2ff0ae5ff61d86dc8c88d2928b7ab3"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/api/errors",
|
||||
"Rev": "00c78f6603af046dfcada47ba511ddc94e7a64ce"
|
||||
"Rev": "1c56055d3f2ff0ae5ff61d86dc8c88d2928b7ab3"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/api/meta",
|
||||
"Rev": "00c78f6603af046dfcada47ba511ddc94e7a64ce"
|
||||
"Rev": "1c56055d3f2ff0ae5ff61d86dc8c88d2928b7ab3"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/api/resource",
|
||||
"Rev": "00c78f6603af046dfcada47ba511ddc94e7a64ce"
|
||||
"Rev": "1c56055d3f2ff0ae5ff61d86dc8c88d2928b7ab3"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/api/testing",
|
||||
"Rev": "00c78f6603af046dfcada47ba511ddc94e7a64ce"
|
||||
"Rev": "1c56055d3f2ff0ae5ff61d86dc8c88d2928b7ab3"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/api/testing/fuzzer",
|
||||
"Rev": "00c78f6603af046dfcada47ba511ddc94e7a64ce"
|
||||
"Rev": "1c56055d3f2ff0ae5ff61d86dc8c88d2928b7ab3"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/api/testing/roundtrip",
|
||||
"Rev": "00c78f6603af046dfcada47ba511ddc94e7a64ce"
|
||||
"Rev": "1c56055d3f2ff0ae5ff61d86dc8c88d2928b7ab3"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/fuzzer",
|
||||
"Rev": "00c78f6603af046dfcada47ba511ddc94e7a64ce"
|
||||
"Rev": "1c56055d3f2ff0ae5ff61d86dc8c88d2928b7ab3"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/internalversion",
|
||||
"Rev": "00c78f6603af046dfcada47ba511ddc94e7a64ce"
|
||||
"Rev": "1c56055d3f2ff0ae5ff61d86dc8c88d2928b7ab3"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/v1",
|
||||
"Rev": "00c78f6603af046dfcada47ba511ddc94e7a64ce"
|
||||
"Rev": "1c56055d3f2ff0ae5ff61d86dc8c88d2928b7ab3"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured",
|
||||
"Rev": "00c78f6603af046dfcada47ba511ddc94e7a64ce"
|
||||
"Rev": "1c56055d3f2ff0ae5ff61d86dc8c88d2928b7ab3"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/v1beta1",
|
||||
"Rev": "00c78f6603af046dfcada47ba511ddc94e7a64ce"
|
||||
"Rev": "1c56055d3f2ff0ae5ff61d86dc8c88d2928b7ab3"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/conversion",
|
||||
"Rev": "00c78f6603af046dfcada47ba511ddc94e7a64ce"
|
||||
"Rev": "1c56055d3f2ff0ae5ff61d86dc8c88d2928b7ab3"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/conversion/queryparams",
|
||||
"Rev": "00c78f6603af046dfcada47ba511ddc94e7a64ce"
|
||||
"Rev": "1c56055d3f2ff0ae5ff61d86dc8c88d2928b7ab3"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/fields",
|
||||
"Rev": "00c78f6603af046dfcada47ba511ddc94e7a64ce"
|
||||
"Rev": "1c56055d3f2ff0ae5ff61d86dc8c88d2928b7ab3"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/labels",
|
||||
"Rev": "00c78f6603af046dfcada47ba511ddc94e7a64ce"
|
||||
"Rev": "1c56055d3f2ff0ae5ff61d86dc8c88d2928b7ab3"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/runtime",
|
||||
"Rev": "00c78f6603af046dfcada47ba511ddc94e7a64ce"
|
||||
"Rev": "1c56055d3f2ff0ae5ff61d86dc8c88d2928b7ab3"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/runtime/schema",
|
||||
"Rev": "00c78f6603af046dfcada47ba511ddc94e7a64ce"
|
||||
"Rev": "1c56055d3f2ff0ae5ff61d86dc8c88d2928b7ab3"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer",
|
||||
"Rev": "00c78f6603af046dfcada47ba511ddc94e7a64ce"
|
||||
"Rev": "1c56055d3f2ff0ae5ff61d86dc8c88d2928b7ab3"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/json",
|
||||
"Rev": "00c78f6603af046dfcada47ba511ddc94e7a64ce"
|
||||
"Rev": "1c56055d3f2ff0ae5ff61d86dc8c88d2928b7ab3"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/protobuf",
|
||||
"Rev": "00c78f6603af046dfcada47ba511ddc94e7a64ce"
|
||||
"Rev": "1c56055d3f2ff0ae5ff61d86dc8c88d2928b7ab3"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/recognizer",
|
||||
"Rev": "00c78f6603af046dfcada47ba511ddc94e7a64ce"
|
||||
"Rev": "1c56055d3f2ff0ae5ff61d86dc8c88d2928b7ab3"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/streaming",
|
||||
"Rev": "00c78f6603af046dfcada47ba511ddc94e7a64ce"
|
||||
"Rev": "1c56055d3f2ff0ae5ff61d86dc8c88d2928b7ab3"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/versioning",
|
||||
"Rev": "00c78f6603af046dfcada47ba511ddc94e7a64ce"
|
||||
"Rev": "1c56055d3f2ff0ae5ff61d86dc8c88d2928b7ab3"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/selection",
|
||||
"Rev": "00c78f6603af046dfcada47ba511ddc94e7a64ce"
|
||||
"Rev": "1c56055d3f2ff0ae5ff61d86dc8c88d2928b7ab3"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/types",
|
||||
"Rev": "00c78f6603af046dfcada47ba511ddc94e7a64ce"
|
||||
"Rev": "1c56055d3f2ff0ae5ff61d86dc8c88d2928b7ab3"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/util/cache",
|
||||
"Rev": "00c78f6603af046dfcada47ba511ddc94e7a64ce"
|
||||
"Rev": "1c56055d3f2ff0ae5ff61d86dc8c88d2928b7ab3"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/util/clock",
|
||||
"Rev": "00c78f6603af046dfcada47ba511ddc94e7a64ce"
|
||||
"Rev": "1c56055d3f2ff0ae5ff61d86dc8c88d2928b7ab3"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/util/diff",
|
||||
"Rev": "00c78f6603af046dfcada47ba511ddc94e7a64ce"
|
||||
"Rev": "1c56055d3f2ff0ae5ff61d86dc8c88d2928b7ab3"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/util/errors",
|
||||
"Rev": "00c78f6603af046dfcada47ba511ddc94e7a64ce"
|
||||
"Rev": "1c56055d3f2ff0ae5ff61d86dc8c88d2928b7ab3"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/util/framer",
|
||||
"Rev": "00c78f6603af046dfcada47ba511ddc94e7a64ce"
|
||||
"Rev": "1c56055d3f2ff0ae5ff61d86dc8c88d2928b7ab3"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/util/httpstream",
|
||||
"Rev": "00c78f6603af046dfcada47ba511ddc94e7a64ce"
|
||||
"Rev": "1c56055d3f2ff0ae5ff61d86dc8c88d2928b7ab3"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/util/httpstream/spdy",
|
||||
"Rev": "00c78f6603af046dfcada47ba511ddc94e7a64ce"
|
||||
"Rev": "1c56055d3f2ff0ae5ff61d86dc8c88d2928b7ab3"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/util/intstr",
|
||||
"Rev": "00c78f6603af046dfcada47ba511ddc94e7a64ce"
|
||||
"Rev": "1c56055d3f2ff0ae5ff61d86dc8c88d2928b7ab3"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/util/json",
|
||||
"Rev": "00c78f6603af046dfcada47ba511ddc94e7a64ce"
|
||||
"Rev": "1c56055d3f2ff0ae5ff61d86dc8c88d2928b7ab3"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/util/mergepatch",
|
||||
"Rev": "00c78f6603af046dfcada47ba511ddc94e7a64ce"
|
||||
"Rev": "1c56055d3f2ff0ae5ff61d86dc8c88d2928b7ab3"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/util/net",
|
||||
"Rev": "00c78f6603af046dfcada47ba511ddc94e7a64ce"
|
||||
"Rev": "1c56055d3f2ff0ae5ff61d86dc8c88d2928b7ab3"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/util/remotecommand",
|
||||
"Rev": "00c78f6603af046dfcada47ba511ddc94e7a64ce"
|
||||
"Rev": "1c56055d3f2ff0ae5ff61d86dc8c88d2928b7ab3"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/util/runtime",
|
||||
"Rev": "00c78f6603af046dfcada47ba511ddc94e7a64ce"
|
||||
"Rev": "1c56055d3f2ff0ae5ff61d86dc8c88d2928b7ab3"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/util/sets",
|
||||
"Rev": "00c78f6603af046dfcada47ba511ddc94e7a64ce"
|
||||
"Rev": "1c56055d3f2ff0ae5ff61d86dc8c88d2928b7ab3"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/util/strategicpatch",
|
||||
"Rev": "00c78f6603af046dfcada47ba511ddc94e7a64ce"
|
||||
"Rev": "1c56055d3f2ff0ae5ff61d86dc8c88d2928b7ab3"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/util/validation",
|
||||
"Rev": "00c78f6603af046dfcada47ba511ddc94e7a64ce"
|
||||
"Rev": "1c56055d3f2ff0ae5ff61d86dc8c88d2928b7ab3"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/util/validation/field",
|
||||
"Rev": "00c78f6603af046dfcada47ba511ddc94e7a64ce"
|
||||
"Rev": "1c56055d3f2ff0ae5ff61d86dc8c88d2928b7ab3"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/util/wait",
|
||||
"Rev": "00c78f6603af046dfcada47ba511ddc94e7a64ce"
|
||||
"Rev": "1c56055d3f2ff0ae5ff61d86dc8c88d2928b7ab3"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/util/yaml",
|
||||
"Rev": "00c78f6603af046dfcada47ba511ddc94e7a64ce"
|
||||
"Rev": "1c56055d3f2ff0ae5ff61d86dc8c88d2928b7ab3"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/version",
|
||||
"Rev": "00c78f6603af046dfcada47ba511ddc94e7a64ce"
|
||||
"Rev": "1c56055d3f2ff0ae5ff61d86dc8c88d2928b7ab3"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/watch",
|
||||
"Rev": "00c78f6603af046dfcada47ba511ddc94e7a64ce"
|
||||
"Rev": "1c56055d3f2ff0ae5ff61d86dc8c88d2928b7ab3"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/third_party/forked/golang/json",
|
||||
"Rev": "00c78f6603af046dfcada47ba511ddc94e7a64ce"
|
||||
"Rev": "1c56055d3f2ff0ae5ff61d86dc8c88d2928b7ab3"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/third_party/forked/golang/netutil",
|
||||
"Rev": "00c78f6603af046dfcada47ba511ddc94e7a64ce"
|
||||
"Rev": "1c56055d3f2ff0ae5ff61d86dc8c88d2928b7ab3"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/third_party/forked/golang/reflect",
|
||||
"Rev": "00c78f6603af046dfcada47ba511ddc94e7a64ce"
|
||||
"Rev": "1c56055d3f2ff0ae5ff61d86dc8c88d2928b7ab3"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/kube-openapi/pkg/util/proto",
|
||||
|
20
examples/fake-client/doc.go
Normal file
20
examples/fake-client/doc.go
Normal file
@ -0,0 +1,20 @@
|
||||
/*
|
||||
Copyright 2018 The Kubernetes Authors.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
// Package fakeclient contains examples on how to use fakeclient in tests.
|
||||
// Note: This file is here to avoid warnings on go build since there are no
|
||||
// non-test files in this package.
|
||||
package fakeclient
|
Loading…
Reference in New Issue
Block a user