Skip to content

Commit

Permalink
Update client-go to 4.0.0 (#150)
Browse files Browse the repository at this point in the history
  • Loading branch information
tamalsaha authored Aug 19, 2017
1 parent b351150 commit dee5c57
Show file tree
Hide file tree
Showing 458 changed files with 82,939 additions and 46,314 deletions.
6 changes: 2 additions & 4 deletions client/clientset/fake/extensions.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ type FakeExtensionClient struct {
var _ clientset.ExtensionInterface = &FakeExtensionClient{}

func NewFakeStashClient(objects ...runtime.Object) *FakeExtensionClient {
o := testing.NewObjectTracker(api.Registry, api.Scheme, api.Codecs.UniversalDecoder())
o := testing.NewObjectTracker(api.Scheme, api.Codecs.UniversalDecoder())
for _, obj := range objects {
if obj.GetObjectKind().GroupVersionKind().Group == sapi.GroupName {
if err := o.Add(obj); err != nil {
Expand All @@ -27,10 +27,8 @@ func NewFakeStashClient(objects ...runtime.Object) *FakeExtensionClient {
}

fakePtr := testing.Fake{}
fakePtr.AddReactor("*", "*", testing.ObjectReaction(o, api.Registry.RESTMapper()))

fakePtr.AddReactor("*", "*", testing.ObjectReaction(o))
fakePtr.AddWatchReactor("*", testing.DefaultWatchReactor(watch.NewFake(), nil))

return &FakeExtensionClient{&fakePtr}
}

Expand Down
3 changes: 2 additions & 1 deletion client/clientset/fake/restic.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ type FakeStash struct {
}

var stashResource = tapi.V1alpha1SchemeGroupVersion.WithResource(tapi.ResourceTypeRestic)
var stashKind = tapi.V1alpha1SchemeGroupVersion.WithKind(tapi.ResourceKindRestic)

var _ clientset.ResticInterface = &FakeStash{}

Expand All @@ -32,7 +33,7 @@ func (mock *FakeStash) Get(name string) (*tapi.Restic, error) {
// List returns the a of Stashs.
func (mock *FakeStash) List(opts metav1.ListOptions) (*tapi.ResticList, error) {
obj, err := mock.Fake.
Invokes(testing.NewListAction(stashResource, mock.ns, opts), &tapi.Restic{})
Invokes(testing.NewListAction(stashResource, stashKind, mock.ns, opts), &tapi.Restic{})

if obj == nil {
return nil, err
Expand Down
58 changes: 34 additions & 24 deletions glide.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions glide.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ import:
vcs: git
version: v2
- package: k8s.io/apimachinery
version: 85ace5365f33b16fc735c866a12e3c765b9700f2
version: 1fd2e63a9a370677308a42f24fd40c86438afddf
- package: k8s.io/client-go
version: v3.0.0
version: v4.0.0
- package: gopkg.in/yaml.v2
version: v2
testImport:
Expand Down
22 changes: 22 additions & 0 deletions vendor/github.com/emicklei/go-restful-swagger12/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions vendor/github.com/emicklei/go-restful/compressors.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 13 additions & 8 deletions vendor/github.com/emicklei/go-restful/container.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor/github.com/emicklei/go-restful/doc.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit dee5c57

Please sign in to comment.