mirror of
https://github.com/kubernetes/sample-controller.git
synced 2025-01-31 17:02:52 +08:00
Merge pull request #100940 from markusthoemmes/fake-client-interface
Implement a FakeClient interface Kubernetes-commit: 8da9d2ff55ad98a685978dd690d66dfb4eb9c1fd
This commit is contained in:
commit
53528ac7e4
8
Godeps/Godeps.json
generated
8
Godeps/Godeps.json
generated
@ -476,19 +476,19 @@
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/api",
|
||||
"Rev": "95cee4894d89"
|
||||
"Rev": "8c6483ecf45e"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery",
|
||||
"Rev": "ec059b16b345"
|
||||
"Rev": "96c076bf1d97"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/client-go",
|
||||
"Rev": "d3fbdeba9a5e"
|
||||
"Rev": "9a82c6a51a32"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/code-generator",
|
||||
"Rev": "112073bd706e"
|
||||
"Rev": "f57bba428cbd"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/gengo",
|
||||
|
16
go.mod
16
go.mod
@ -5,16 +5,16 @@ module k8s.io/sample-controller
|
||||
go 1.16
|
||||
|
||||
require (
|
||||
k8s.io/api v0.0.0-20210518101556-95cee4894d89
|
||||
k8s.io/apimachinery v0.0.0-20210518100451-ec059b16b345
|
||||
k8s.io/client-go v0.0.0-20210518102906-d3fbdeba9a5e
|
||||
k8s.io/code-generator v0.0.0-20210423110228-112073bd706e
|
||||
k8s.io/api v0.0.0-20210506172159-8c6483ecf45e
|
||||
k8s.io/apimachinery v0.0.0-20210518100457-96c076bf1d97
|
||||
k8s.io/client-go v0.0.0-20210518102928-9a82c6a51a32
|
||||
k8s.io/code-generator v0.0.0-20210518095634-f57bba428cbd
|
||||
k8s.io/klog/v2 v2.8.0
|
||||
)
|
||||
|
||||
replace (
|
||||
k8s.io/api => k8s.io/api v0.0.0-20210518101556-95cee4894d89
|
||||
k8s.io/apimachinery => k8s.io/apimachinery v0.0.0-20210518100451-ec059b16b345
|
||||
k8s.io/client-go => k8s.io/client-go v0.0.0-20210518102906-d3fbdeba9a5e
|
||||
k8s.io/code-generator => k8s.io/code-generator v0.0.0-20210423110228-112073bd706e
|
||||
k8s.io/api => k8s.io/api v0.0.0-20210506172159-8c6483ecf45e
|
||||
k8s.io/apimachinery => k8s.io/apimachinery v0.0.0-20210518100457-96c076bf1d97
|
||||
k8s.io/client-go => k8s.io/client-go v0.0.0-20210518102928-9a82c6a51a32
|
||||
k8s.io/code-generator => k8s.io/code-generator v0.0.0-20210518095634-f57bba428cbd
|
||||
)
|
||||
|
16
go.sum
16
go.sum
@ -427,14 +427,14 @@ honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a/go.mod h1:rf3lG4BRIbNafJWh
|
||||
honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
|
||||
honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg=
|
||||
honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k=
|
||||
k8s.io/api v0.0.0-20210518101556-95cee4894d89 h1:uQC3v+9tBtiF1mXGGdM3vN7gDW7StAJCFO4sO0USjhE=
|
||||
k8s.io/api v0.0.0-20210518101556-95cee4894d89/go.mod h1:ZFbvp5WWMe1V9auNefRgVPZzDDSzTMLlulKIDnadhQU=
|
||||
k8s.io/apimachinery v0.0.0-20210518100451-ec059b16b345 h1:oZsYo/CKdpQiJIYzlW07FuZK8UE43taXkz+pS9H0Phg=
|
||||
k8s.io/apimachinery v0.0.0-20210518100451-ec059b16b345/go.mod h1:fBRSkoylGO2QUTae8Wb2wac6pZ83/r+tL6HFSXGbzfs=
|
||||
k8s.io/client-go v0.0.0-20210518102906-d3fbdeba9a5e h1:jft/qLADXRQ2PLEPddJGuE4IE7gLGp703t67iOxQM/Y=
|
||||
k8s.io/client-go v0.0.0-20210518102906-d3fbdeba9a5e/go.mod h1:moENc77cVcXNqvd2/0xRbARMIRzTfo9HrOWpG0JizNw=
|
||||
k8s.io/code-generator v0.0.0-20210423110228-112073bd706e h1:kJsewMNBF60mH18LbRDwODnns1v/PQNgWF0nRecUlTU=
|
||||
k8s.io/code-generator v0.0.0-20210423110228-112073bd706e/go.mod h1:tHNeGA58jE3nJvZLDN0c/5k7P3NlYdjbWuJYK9QiU3s=
|
||||
k8s.io/api v0.0.0-20210506172159-8c6483ecf45e h1:qHyhF6qKQVHrfQmOto8W6vEj7OASwoH8x1+p0l/81Dk=
|
||||
k8s.io/api v0.0.0-20210506172159-8c6483ecf45e/go.mod h1:IgKLK42qxUHnMxdcdbEBFOo+TfTANemQTLg3gcGe8/M=
|
||||
k8s.io/apimachinery v0.0.0-20210518100457-96c076bf1d97 h1:hKyy5Pr8MoGjcqM5AYHQjpizciRmC8dz4N3XG4LZwuQ=
|
||||
k8s.io/apimachinery v0.0.0-20210518100457-96c076bf1d97/go.mod h1:fBRSkoylGO2QUTae8Wb2wac6pZ83/r+tL6HFSXGbzfs=
|
||||
k8s.io/client-go v0.0.0-20210518102928-9a82c6a51a32 h1:pIQGgo4Zwcfxal6+QhaEb7qeCKzdqL1AuvN/1J0/DVY=
|
||||
k8s.io/client-go v0.0.0-20210518102928-9a82c6a51a32/go.mod h1:VAUK6xq/o8PmTB8fQVPDh2Mb+05oZs9sXSh8opEUMqc=
|
||||
k8s.io/code-generator v0.0.0-20210518095634-f57bba428cbd h1:9Fmm+5AYUpdfhkwg996JQEOcDP3ch8seQcVwupl/kVg=
|
||||
k8s.io/code-generator v0.0.0-20210518095634-f57bba428cbd/go.mod h1:tHNeGA58jE3nJvZLDN0c/5k7P3NlYdjbWuJYK9QiU3s=
|
||||
k8s.io/gengo v0.0.0-20200413195148-3a45101e95ac/go.mod h1:ezvh/TsK7cY6rbqRK0oQQ8IAqLxYwwyPxAX1Pzy0ii0=
|
||||
k8s.io/gengo v0.0.0-20201214224949-b6c5ce23f027 h1:Uusb3oh8XcdzDF/ndlI4ToKTYVlkCSJP39SRY2mfRAw=
|
||||
k8s.io/gengo v0.0.0-20201214224949-b6c5ce23f027/go.mod h1:FiNAH4ZV3gBg2Kwh89tzAEV2be7d5xI0vBa/VySYy3E=
|
||||
|
@ -74,7 +74,10 @@ func (c *Clientset) Tracker() testing.ObjectTracker {
|
||||
return c.tracker
|
||||
}
|
||||
|
||||
var _ clientset.Interface = &Clientset{}
|
||||
var (
|
||||
_ clientset.Interface = &Clientset{}
|
||||
_ testing.FakeClient = &Clientset{}
|
||||
)
|
||||
|
||||
// SamplecontrollerV1alpha1 retrieves the SamplecontrollerV1alpha1Client
|
||||
func (c *Clientset) SamplecontrollerV1alpha1() samplecontrollerv1alpha1.SamplecontrollerV1alpha1Interface {
|
||||
|
Loading…
Reference in New Issue
Block a user