Skip to content

Commit

Permalink
Tidy up imports
Browse files Browse the repository at this point in the history
Signed-off-by: Chris <bez625@gmail.com>
  • Loading branch information
Bez625 committed May 3, 2023
1 parent 8de2cc6 commit ec41082
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 10 deletions.
6 changes: 3 additions & 3 deletions pkg/action/hooks_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package action
import (
"bytes"
"fmt"
"io/ioutil"
"io"
"testing"

"github.com/stretchr/testify/assert"
Expand Down Expand Up @@ -166,7 +166,7 @@ func runInstallForHooksWithSuccess(t *testing.T, manifest, expectedNamespace str
instAction := installAction(t)
instAction.ReleaseName = "failed-hooks"
outBuffer := &bytes.Buffer{}
instAction.cfg.KubeClient = &kubefake.PrintingKubeClient{Out: ioutil.Discard, LogOutput: outBuffer}
instAction.cfg.KubeClient = &kubefake.PrintingKubeClient{Out: io.Discard, LogOutput: outBuffer}

templates := []*chart.File{
{Name: "templates/hello", Data: []byte("hello: world")},
Expand All @@ -192,7 +192,7 @@ func runInstallForHooksWithFailure(t *testing.T, manifest, expectedNamespace str
failingClient.WatchUntilReadyError = fmt.Errorf("failed watch")
instAction.cfg.KubeClient = failingClient
outBuffer := &bytes.Buffer{}
failingClient.PrintingKubeClient = kubefake.PrintingKubeClient{Out: ioutil.Discard, LogOutput: outBuffer}
failingClient.PrintingKubeClient = kubefake.PrintingKubeClient{Out: io.Discard, LogOutput: outBuffer}

templates := []*chart.File{
{Name: "templates/hello", Data: []byte("hello: world")},
Expand Down
2 changes: 1 addition & 1 deletion pkg/action/install_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ func TestInstallRelease_FailedHooks(t *testing.T) {
failer.WatchUntilReadyError = fmt.Errorf("Failed watch")
instAction.cfg.KubeClient = failer
outBuffer := &bytes.Buffer{}
failer.PrintingKubeClient = kubefake.PrintingKubeClient{Out: ioutil.Discard, LogOutput: outBuffer}
failer.PrintingKubeClient = kubefake.PrintingKubeClient{Out: io.Discard, LogOutput: outBuffer}

vals := map[string]interface{}{}
res, err := instAction.Run(buildChart(), vals)
Expand Down
2 changes: 0 additions & 2 deletions pkg/kube/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ import (
"sync"
"time"

"k8s.io/client-go/rest"

jsonpatch "github.com/evanphx/json-patch"
"github.com/pkg/errors"
batch "k8s.io/api/batch/v1"
Expand Down
2 changes: 0 additions & 2 deletions pkg/kube/fake/printer.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ import (
"strings"
"time"

metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

v1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
Expand Down
2 changes: 0 additions & 2 deletions pkg/kube/interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ import (
"io"
"time"

metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

v1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
Expand Down

0 comments on commit ec41082

Please sign in to comment.