Skip to content

Commit

Permalink
update vendor to include fake k8s client
Browse files Browse the repository at this point in the history
  • Loading branch information
mlmhl committed Mar 19, 2019
1 parent 6911c59 commit 289e556
Show file tree
Hide file tree
Showing 180 changed files with 15,808 additions and 13 deletions.
47 changes: 46 additions & 1 deletion Gopkg.lock

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

25 changes: 13 additions & 12 deletions pkg/resizer/csi_resizer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,49 +2,50 @@ package resizer

import (
"testing"

"github.com/kubernetes-csi/external-resizer/pkg/csi"
"k8s.io/client-go/kubernetes/fake"
"k8s.io/client-go/kubernetes"
"k8s.io/client-go/informers"
"k8s.io/client-go/kubernetes"
"k8s.io/client-go/kubernetes/fake"
)

func TestNewResizer(t *testing.T) {
for i, c := range []struct{
for i, c := range []struct {
SupportsNodeResize bool
SupportsControllerResize bool
SupportsPluginControllerService bool

Error error
Error error
Trivial bool
}{
// Create succeeded.
{
SupportsNodeResize: true,
SupportsControllerResize: true,
SupportsNodeResize: true,
SupportsControllerResize: true,
SupportsPluginControllerService: true,

Trivial: false,
},
// Controller service not supported.
{
SupportsNodeResize: true,
SupportsControllerResize: true,
SupportsNodeResize: true,
SupportsControllerResize: true,
SupportsPluginControllerService: false,

Error: controllerServiceNotSupportErr,
},
// Only node resize supported.
{
SupportsNodeResize: true,
SupportsControllerResize: false,
SupportsNodeResize: true,
SupportsControllerResize: false,
SupportsPluginControllerService: true,

Trivial: true,
},
// Both controller and node resize not supported.
{
SupportsNodeResize: false,
SupportsControllerResize: false,
SupportsNodeResize: false,
SupportsControllerResize: false,
SupportsPluginControllerService: true,

Error: resizeNotSupportErr,
Expand Down
25 changes: 25 additions & 0 deletions vendor/github.com/evanphx/json-patch/LICENSE

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

Loading

0 comments on commit 289e556

Please sign in to comment.