Tidy up imports

Signed-off-by: Chris <bez625@gmail.com>
pull/30570/head
Chris 2 years ago committed by Scott Rigby
parent ca90972b3d
commit 20f859c9ff
No known key found for this signature in database
GPG Key ID: C7C6FBB5B91C1155

@ -19,7 +19,7 @@ package action
import ( import (
"bytes" "bytes"
"fmt" "fmt"
"io/ioutil" "io"
"testing" "testing"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
@ -166,7 +166,7 @@ func runInstallForHooksWithSuccess(t *testing.T, manifest, expectedNamespace str
instAction := installAction(t) instAction := installAction(t)
instAction.ReleaseName = "failed-hooks" instAction.ReleaseName = "failed-hooks"
outBuffer := &bytes.Buffer{} 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{ templates := []*chart.File{
{Name: "templates/hello", Data: []byte("hello: world")}, {Name: "templates/hello", Data: []byte("hello: world")},
@ -192,7 +192,7 @@ func runInstallForHooksWithFailure(t *testing.T, manifest, expectedNamespace str
failingClient.WatchUntilReadyError = fmt.Errorf("failed watch") failingClient.WatchUntilReadyError = fmt.Errorf("failed watch")
instAction.cfg.KubeClient = failingClient instAction.cfg.KubeClient = failingClient
outBuffer := &bytes.Buffer{} outBuffer := &bytes.Buffer{}
failingClient.PrintingKubeClient = kubefake.PrintingKubeClient{Out: ioutil.Discard, LogOutput: outBuffer} failingClient.PrintingKubeClient = kubefake.PrintingKubeClient{Out: io.Discard, LogOutput: outBuffer}
templates := []*chart.File{ templates := []*chart.File{
{Name: "templates/hello", Data: []byte("hello: world")}, {Name: "templates/hello", Data: []byte("hello: world")},

@ -356,7 +356,7 @@ func TestInstallRelease_FailedHooks(t *testing.T) {
failer.WatchUntilReadyError = fmt.Errorf("Failed watch") failer.WatchUntilReadyError = fmt.Errorf("Failed watch")
instAction.cfg.KubeClient = failer instAction.cfg.KubeClient = failer
outBuffer := &bytes.Buffer{} 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{}{} vals := map[string]interface{}{}
res, err := instAction.Run(buildChart(), vals) res, err := instAction.Run(buildChart(), vals)

@ -29,8 +29,6 @@ import (
"sync" "sync"
"time" "time"
"k8s.io/client-go/rest"
jsonpatch "github.com/evanphx/json-patch" jsonpatch "github.com/evanphx/json-patch"
"github.com/pkg/errors" "github.com/pkg/errors"
batch "k8s.io/api/batch/v1" batch "k8s.io/api/batch/v1"

Loading…
Cancel
Save