Skip to content

Commit

Permalink
Run 'make update' to update formatting
Browse files Browse the repository at this point in the history
Signed-off-by: Andy Goldstein <andy.goldstein@gmail.com>
  • Loading branch information
ncdc committed Oct 23, 2018
1 parent 573ce7d commit bca5851
Show file tree
Hide file tree
Showing 131 changed files with 166 additions and 215 deletions.
1 change: 0 additions & 1 deletion pkg/backup/backup.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ import (

"github.com/pkg/errors"
"github.com/sirupsen/logrus"

metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/labels"
"k8s.io/apimachinery/pkg/runtime/schema"
Expand Down
1 change: 0 additions & 1 deletion pkg/backup/backup_pv_action.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ package backup
import (
"github.com/pkg/errors"
"github.com/sirupsen/logrus"

corev1api "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/runtime"

Expand Down
7 changes: 4 additions & 3 deletions pkg/backup/backup_pv_action_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,14 @@ package backup
import (
"testing"

"github.com/heptio/ark/pkg/apis/ark/v1"
"github.com/heptio/ark/pkg/kuberesource"
arktest "github.com/heptio/ark/pkg/util/test"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
corev1api "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"

"github.com/heptio/ark/pkg/apis/ark/v1"
"github.com/heptio/ark/pkg/kuberesource"
arktest "github.com/heptio/ark/pkg/util/test"
)

func TestBackupPVAction(t *testing.T) {
Expand Down
1 change: 0 additions & 1 deletion pkg/backup/backup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/mock"
"github.com/stretchr/testify/require"

"k8s.io/apimachinery/pkg/api/meta"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
Expand Down
3 changes: 2 additions & 1 deletion pkg/backup/delete_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ package backup
import (
"fmt"

"github.com/heptio/ark/pkg/apis/ark/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

"github.com/heptio/ark/pkg/apis/ark/v1"
)

// NewDeleteBackupRequest creates a DeleteBackupRequest for the backup identified by name and uid.
Expand Down
1 change: 0 additions & 1 deletion pkg/backup/group_backupper.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import (

"github.com/pkg/errors"
"github.com/sirupsen/logrus"

metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime/schema"
kuberrs "k8s.io/apimachinery/pkg/util/errors"
Expand Down
11 changes: 6 additions & 5 deletions pkg/backup/group_backupper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,17 @@ package backup
import (
"testing"

"github.com/heptio/ark/pkg/client"
"github.com/heptio/ark/pkg/discovery"
"github.com/heptio/ark/pkg/podexec"
"github.com/heptio/ark/pkg/restic"
arktest "github.com/heptio/ark/pkg/util/test"
"github.com/sirupsen/logrus"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/mock"
"github.com/stretchr/testify/require"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

"github.com/heptio/ark/pkg/client"
"github.com/heptio/ark/pkg/discovery"
"github.com/heptio/ark/pkg/podexec"
"github.com/heptio/ark/pkg/restic"
arktest "github.com/heptio/ark/pkg/util/test"
)

func TestBackupGroupBacksUpCorrectResourcesInCorrectOrder(t *testing.T) {
Expand Down
1 change: 0 additions & 1 deletion pkg/backup/item_backupper.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import (

"github.com/pkg/errors"
"github.com/sirupsen/logrus"

corev1api "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/api/meta"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
Expand Down
13 changes: 7 additions & 6 deletions pkg/backup/item_backupper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,6 @@ import (
"testing"
"time"

"github.com/heptio/ark/pkg/apis/ark/v1"
api "github.com/heptio/ark/pkg/apis/ark/v1"
"github.com/heptio/ark/pkg/cloudprovider"
resticmocks "github.com/heptio/ark/pkg/restic/mocks"
"github.com/heptio/ark/pkg/util/collections"
arktest "github.com/heptio/ark/pkg/util/test"
"github.com/pkg/errors"
"github.com/sirupsen/logrus"
"github.com/stretchr/testify/assert"
Expand All @@ -43,6 +37,13 @@ import (
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/runtime/schema"
"k8s.io/apimachinery/pkg/util/sets"

"github.com/heptio/ark/pkg/apis/ark/v1"
api "github.com/heptio/ark/pkg/apis/ark/v1"
"github.com/heptio/ark/pkg/cloudprovider"
resticmocks "github.com/heptio/ark/pkg/restic/mocks"
"github.com/heptio/ark/pkg/util/collections"
arktest "github.com/heptio/ark/pkg/util/test"
)

func TestBackupItemSkips(t *testing.T) {
Expand Down
1 change: 0 additions & 1 deletion pkg/backup/item_hook_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import (

"github.com/pkg/errors"
"github.com/sirupsen/logrus"

"k8s.io/apimachinery/pkg/api/meta"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/labels"
Expand Down
7 changes: 4 additions & 3 deletions pkg/backup/item_hook_handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ import (
"testing"
"time"

"github.com/heptio/ark/pkg/apis/ark/v1"
"github.com/heptio/ark/pkg/util/collections"
arktest "github.com/heptio/ark/pkg/util/test"
"github.com/pkg/errors"
"github.com/sirupsen/logrus"
"github.com/stretchr/testify/assert"
Expand All @@ -33,6 +30,10 @@ import (
"k8s.io/apimachinery/pkg/labels"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/runtime/schema"

"github.com/heptio/ark/pkg/apis/ark/v1"
"github.com/heptio/ark/pkg/util/collections"
arktest "github.com/heptio/ark/pkg/util/test"
)

type mockItemHookHandler struct {
Expand Down
1 change: 0 additions & 1 deletion pkg/backup/pod_action.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ package backup
import (
"github.com/pkg/errors"
"github.com/sirupsen/logrus"

"k8s.io/apimachinery/pkg/api/meta"
"k8s.io/apimachinery/pkg/runtime"

Expand Down
5 changes: 3 additions & 2 deletions pkg/backup/pod_action_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,12 @@ package backup
import (
"testing"

"github.com/heptio/ark/pkg/kuberesource"
arktest "github.com/heptio/ark/pkg/util/test"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"k8s.io/apimachinery/pkg/runtime"

"github.com/heptio/ark/pkg/kuberesource"
arktest "github.com/heptio/ark/pkg/util/test"
)

func TestPodActionAppliesTo(t *testing.T) {
Expand Down
1 change: 0 additions & 1 deletion pkg/backup/resource_backupper.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ package backup
import (
"github.com/pkg/errors"
"github.com/sirupsen/logrus"

"k8s.io/apimachinery/pkg/api/meta"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/labels"
Expand Down
13 changes: 7 additions & 6 deletions pkg/backup/resource_backupper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@ package backup
import (
"testing"

"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/mock"
"github.com/stretchr/testify/require"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
"k8s.io/apimachinery/pkg/runtime/schema"

"github.com/heptio/ark/pkg/apis/ark/v1"
"github.com/heptio/ark/pkg/client"
"github.com/heptio/ark/pkg/discovery"
Expand All @@ -27,12 +34,6 @@ import (
"github.com/heptio/ark/pkg/restic"
"github.com/heptio/ark/pkg/util/collections"
arktest "github.com/heptio/ark/pkg/util/test"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/mock"
"github.com/stretchr/testify/require"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
"k8s.io/apimachinery/pkg/runtime/schema"
)

func TestBackupResource(t *testing.T) {
Expand Down
1 change: 0 additions & 1 deletion pkg/backup/service_account_action.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ package backup
import (
"github.com/pkg/errors"
"github.com/sirupsen/logrus"

rbac "k8s.io/api/rbac/v1"
"k8s.io/apimachinery/pkg/api/meta"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
Expand Down
1 change: 0 additions & 1 deletion pkg/backup/service_account_action_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import (

"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

rbac "k8s.io/api/rbac/v1"
rbacbeta "k8s.io/api/rbac/v1beta1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
Expand Down
1 change: 0 additions & 1 deletion pkg/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import (
"runtime"

"github.com/pkg/errors"

"k8s.io/client-go/rest"
"k8s.io/client-go/tools/clientcmd"

Expand Down
1 change: 0 additions & 1 deletion pkg/client/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import (

"github.com/pkg/errors"
"github.com/spf13/pflag"

"k8s.io/client-go/kubernetes"

"github.com/heptio/ark/pkg/apis/ark/v1"
Expand Down
1 change: 0 additions & 1 deletion pkg/cloudprovider/aws/block_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ import (
"github.com/aws/aws-sdk-go/service/ec2"
"github.com/pkg/errors"
"github.com/sirupsen/logrus"

"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/util/sets"

Expand Down
4 changes: 2 additions & 2 deletions pkg/cloudprovider/aws/block_store_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ import (
"testing"

"github.com/aws/aws-sdk-go/service/ec2"
"github.com/heptio/ark/pkg/util/collections"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

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

"github.com/heptio/ark/pkg/util/collections"
)

func TestGetVolumeID(t *testing.T) {
Expand Down
3 changes: 1 addition & 2 deletions pkg/cloudprovider/aws/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,10 @@ import (
"context"
"net/url"

"github.com/pkg/errors"

"github.com/aws/aws-sdk-go/aws/endpoints"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/s3/s3manager"
"github.com/pkg/errors"
)

// GetBucketRegion returns the AWS region that a bucket is in, or an error
Expand Down
1 change: 0 additions & 1 deletion pkg/cloudprovider/azure/block_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ import (
"github.com/pkg/errors"
"github.com/satori/uuid"
"github.com/sirupsen/logrus"

"k8s.io/apimachinery/pkg/runtime"

"github.com/heptio/ark/pkg/cloudprovider"
Expand Down
4 changes: 2 additions & 2 deletions pkg/cloudprovider/azure/block_store_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ package azure
import (
"testing"

"github.com/heptio/ark/pkg/util/collections"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

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

"github.com/heptio/ark/pkg/util/collections"
)

func TestGetVolumeID(t *testing.T) {
Expand Down
1 change: 0 additions & 1 deletion pkg/cloudprovider/gcp/block_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ import (
"golang.org/x/oauth2/google"
"google.golang.org/api/compute/v1"
"google.golang.org/api/googleapi"

"k8s.io/apimachinery/pkg/runtime"

"github.com/heptio/ark/pkg/cloudprovider"
Expand Down
7 changes: 3 additions & 4 deletions pkg/cloudprovider/gcp/block_store_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,12 @@ import (
"encoding/json"
"testing"

"github.com/heptio/ark/pkg/util/collections"
arktest "github.com/heptio/ark/pkg/util/test"

"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

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

"github.com/heptio/ark/pkg/util/collections"
arktest "github.com/heptio/ark/pkg/util/test"
)

func TestGetVolumeID(t *testing.T) {
Expand Down
3 changes: 2 additions & 1 deletion pkg/cloudprovider/gcp/object_store_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ import (
"strings"
"testing"

arktest "github.com/heptio/ark/pkg/util/test"
"github.com/stretchr/testify/assert"

arktest "github.com/heptio/ark/pkg/util/test"
)

type mockWriteCloser struct {
Expand Down
3 changes: 1 addition & 2 deletions pkg/cmd/cli/backup/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,8 @@ import (
"fmt"
"time"

"github.com/heptio/ark/pkg/generated/informers/externalversions/ark/v1"
"github.com/spf13/cobra"
"github.com/spf13/pflag"

metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/client-go/tools/cache"

Expand All @@ -33,6 +31,7 @@ import (
"github.com/heptio/ark/pkg/cmd/util/flag"
"github.com/heptio/ark/pkg/cmd/util/output"
arkclient "github.com/heptio/ark/pkg/generated/clientset/versioned"
"github.com/heptio/ark/pkg/generated/informers/externalversions/ark/v1"
)

func NewCreateCommand(f client.Factory, use string) *cobra.Command {
Expand Down
1 change: 0 additions & 1 deletion pkg/cmd/cli/backup/delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import (

"github.com/pkg/errors"
"github.com/spf13/cobra"

metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/labels"
kubeerrs "k8s.io/apimachinery/pkg/util/errors"
Expand Down
1 change: 0 additions & 1 deletion pkg/cmd/cli/backup/get.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ package backup

import (
"github.com/spf13/cobra"

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

api "github.com/heptio/ark/pkg/apis/ark/v1"
Expand Down
1 change: 0 additions & 1 deletion pkg/cmd/cli/backuplocation/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import (
"github.com/pkg/errors"
"github.com/spf13/cobra"
"github.com/spf13/pflag"

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

api "github.com/heptio/ark/pkg/apis/ark/v1"
Expand Down
1 change: 0 additions & 1 deletion pkg/cmd/cli/backuplocation/get.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ package backuplocation

import (
"github.com/spf13/cobra"

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

api "github.com/heptio/ark/pkg/apis/ark/v1"
Expand Down
3 changes: 2 additions & 1 deletion pkg/cmd/cli/bug/bug.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,10 @@ import (
"text/template"
"time"

"github.com/spf13/cobra"

"github.com/heptio/ark/pkg/buildinfo"
"github.com/heptio/ark/pkg/cmd"
"github.com/spf13/cobra"
)

const (
Expand Down
Loading

0 comments on commit bca5851

Please sign in to comment.