Skip to content

Commit

Permalink
fix formatting after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
CrocBomber committed Jun 5, 2023
1 parent 287c78f commit dfd0340
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 20 deletions.
25 changes: 12 additions & 13 deletions pkg/cloud/cloud.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ package cloud
import (
"context"
"crypto/sha256"
"encoding/hex"
"crypto/tls"
"encoding/hex"
"errors"
"fmt"
"net/http"
Expand All @@ -31,8 +31,8 @@ import (

"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/awserr"
"github.com/aws/aws-sdk-go/aws/endpoints"
"github.com/aws/aws-sdk-go/aws/awsutil"
"github.com/aws/aws-sdk-go/aws/endpoints"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/ec2"
Expand Down Expand Up @@ -261,14 +261,13 @@ var _ Cloud = &cloud{}
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
// // Example sending a request using the AttachVolumeRequest method.
// req, resp := client.AttachVolumeRequest(params)
//
// // Example sending a request using the AttachVolumeRequest method.
// req, resp := client.AttachVolumeRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AttachVolume
func AttachVolumeRequest(c *ec2.EC2, input *AttachVolumeInput) (req *request.Request, output *ec2.VolumeAttachment) {
Expand Down Expand Up @@ -301,13 +300,13 @@ func AttachVolumeRequest(c *ec2.EC2, input *AttachVolumeInput) (req *request.Req
//
// If a volume has an AWS Marketplace product code:
//
// * The volume can be attached only to a stopped instance.
// - The volume can be attached only to a stopped instance.
//
// * AWS Marketplace product codes are copied from the volume to the instance.
// - AWS Marketplace product codes are copied from the volume to the instance.
//
// * You must be subscribed to the product.
// - You must be subscribed to the product.
//
// * The instance type and operating system of the instance must support
// - The instance type and operating system of the instance must support
// the product. For example, you can't detach a volume from a Windows instance
// and attach it to a Linux instance.
//
Expand Down
2 changes: 1 addition & 1 deletion pkg/driver/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ import (

"github.com/aws/aws-sdk-go/aws/arn"
"github.com/awslabs/volume-modifier-for-k8s/pkg/rpc"
csi "github.com/container-storage-interface/spec/lib/go/csi"
"github.com/c2devel/aws-ebs-csi-driver/pkg/cloud"
"github.com/c2devel/aws-ebs-csi-driver/pkg/driver/internal"
"github.com/c2devel/aws-ebs-csi-driver/pkg/util"
"github.com/c2devel/aws-ebs-csi-driver/pkg/util/template"
csi "github.com/container-storage-interface/spec/lib/go/csi"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
"google.golang.org/protobuf/types/known/timestamppb"
Expand Down
2 changes: 1 addition & 1 deletion pkg/driver/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ import (
"net"

"github.com/awslabs/volume-modifier-for-k8s/pkg/rpc"
csi "github.com/container-storage-interface/spec/lib/go/csi"
"github.com/c2devel/aws-ebs-csi-driver/pkg/util"
csi "github.com/container-storage-interface/spec/lib/go/csi"
"google.golang.org/grpc"
"k8s.io/klog/v2"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/driver/node_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ import (
"strconv"
"strings"

"github.com/c2devel/aws-ebs-csi-driver/pkg/mounter"
diskapi "github.com/kubernetes-csi/csi-proxy/client/api/disk/v1"
diskclient "github.com/kubernetes-csi/csi-proxy/client/groups/disk/v1"
"github.com/c2devel/aws-ebs-csi-driver/pkg/mounter"
"k8s.io/klog/v2"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/driver/sanity_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ import (
"time"

"github.com/aws/aws-sdk-go/service/ec2"
"github.com/kubernetes-csi/csi-test/pkg/sanity"
"github.com/c2devel/aws-ebs-csi-driver/pkg/cloud"
"github.com/c2devel/aws-ebs-csi-driver/pkg/driver/internal"
"github.com/c2devel/aws-ebs-csi-driver/pkg/util"
"github.com/kubernetes-csi/csi-test/pkg/sanity"
"k8s.io/mount-utils"
mount_utils "k8s.io/mount-utils"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/resizefs/resizefs_windows_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ package resizefs

import (
"errors"
"github.com/golang/mock/gomock"
"github.com/c2devel/aws-ebs-csi-driver/pkg/mounter"
"github.com/golang/mock/gomock"
"testing"
)

Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/driver/ebs_csi_driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ package driver
import (
"fmt"

volumesnapshotv1 "github.com/kubernetes-csi/external-snapshotter/client/v4/apis/volumesnapshot/v1"
ebscsidriver "github.com/c2devel/aws-ebs-csi-driver/pkg/driver"
volumesnapshotv1 "github.com/kubernetes-csi/external-snapshotter/client/v4/apis/volumesnapshot/v1"
v1 "k8s.io/api/core/v1"
storagev1 "k8s.io/api/storage/v1"
"k8s.io/apimachinery/pkg/api/resource"
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/testsuites/testsuites.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ import (

"github.com/aws/aws-sdk-go/aws"

awscloud "github.com/c2devel/aws-ebs-csi-driver/pkg/cloud"
volumesnapshotv1 "github.com/kubernetes-csi/external-snapshotter/client/v4/apis/volumesnapshot/v1"
snapshotclientset "github.com/kubernetes-csi/external-snapshotter/client/v4/clientset/versioned"
awscloud "github.com/c2devel/aws-ebs-csi-driver/pkg/cloud"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
apps "k8s.io/api/apps/v1"
Expand Down

0 comments on commit dfd0340

Please sign in to comment.