Skip to content

Commit

Permalink
Fix Restic (#159)
Browse files Browse the repository at this point in the history
  • Loading branch information
sadlil authored and tamalsaha committed Aug 29, 2017
1 parent 9f04a97 commit 42e52e4
Show file tree
Hide file tree
Showing 34 changed files with 2,077 additions and 282 deletions.
8 changes: 0 additions & 8 deletions client/clientset/codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,6 @@ func (*extendedCodec) DecodeParameters(parameters url.Values, from schema.GroupV
if len(parameters) == 0 {
return nil
}
_, okDelete := into.(*metav1.DeleteOptions)
if _, okList := into.(*metav1.ListOptions); okList || okDelete {
from = schema.GroupVersion{Version: "v1"}
}
return runtime.NewParameterCodec(api.Scheme).DecodeParameters(parameters, from, into)
}

Expand All @@ -139,10 +135,6 @@ func (c *extendedCodec) EncodeParameters(obj runtime.Object, to schema.GroupVers
if obj == nil {
return result, nil
}
_, okDelete := obj.(*metav1.DeleteOptions)
if _, okList := obj.(*metav1.ListOptions); okList || okDelete {
to = schema.GroupVersion{Version: "v1"}
}
return runtime.NewParameterCodec(api.Scheme).EncodeParameters(obj, to)
}

Expand Down
33 changes: 20 additions & 13 deletions glide.lock

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

2 changes: 2 additions & 0 deletions glide.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,5 @@ import:
testImport:
- package: github.com/stretchr/testify
version: v1.1.4
- package: github.com/appscode/kutil
version: release-4.0

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.

Loading

0 comments on commit 42e52e4

Please sign in to comment.