Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
a49e4e12
Unverified
Commit
a49e4e12
authored
Oct 30, 2018
by
k8s-ci-robot
Committed by
GitHub
Oct 30, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #69708 from mcrute/fix-aws-imports
Fix AWS volume and cloud provider import order
parents
b62c0fde
49df100a
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
37 additions
and
24 deletions
+37
-24
aws.go
pkg/cloudprovider/providers/aws/aws.go
+4
-6
aws_fakes.go
pkg/cloudprovider/providers/aws/aws_fakes.go
+0
-1
aws_loadbalancer.go
pkg/cloudprovider/providers/aws/aws_loadbalancer.go
+1
-0
aws_loadbalancer_test.go
pkg/cloudprovider/providers/aws/aws_loadbalancer_test.go
+2
-1
aws_routes.go
pkg/cloudprovider/providers/aws/aws_routes.go
+1
-0
aws_test.go
pkg/cloudprovider/providers/aws/aws_test.go
+4
-4
aws_utils.go
pkg/cloudprovider/providers/aws/aws_utils.go
+1
-0
instances.go
pkg/cloudprovider/providers/aws/instances.go
+4
-3
instances_test.go
pkg/cloudprovider/providers/aws/instances_test.go
+4
-2
regions.go
pkg/cloudprovider/providers/aws/regions.go
+3
-1
tags.go
pkg/cloudprovider/providers/aws/tags.go
+1
-1
tags_test.go
pkg/cloudprovider/providers/aws/tags_test.go
+2
-1
volumes.go
pkg/cloudprovider/providers/aws/volumes.go
+1
-0
aws_credentials.go
pkg/credentialprovider/aws/aws_credentials.go
+1
-0
attacher.go
pkg/volume/awsebs/attacher.go
+1
-0
attacher_test.go
pkg/volume/awsebs/attacher_test.go
+4
-4
aws_ebs.go
pkg/volume/awsebs/aws_ebs.go
+1
-0
aws_ebs_block.go
pkg/volume/awsebs/aws_ebs_block.go
+1
-0
aws_util.go
pkg/volume/awsebs/aws_util.go
+1
-0
No files found.
pkg/cloudprovider/providers/aws/aws.go
View file @
a49e4e12
...
@@ -22,13 +22,12 @@ import (
...
@@ -22,13 +22,12 @@ import (
"fmt"
"fmt"
"io"
"io"
"net"
"net"
"path"
"strconv"
"strconv"
"strings"
"strings"
"sync"
"sync"
"time"
"time"
gcfg
"gopkg.in/gcfg.v1"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/awserr"
"github.com/aws/aws-sdk-go/aws/awserr"
"github.com/aws/aws-sdk-go/aws/credentials"
"github.com/aws/aws-sdk-go/aws/credentials"
...
@@ -44,10 +43,7 @@ import (
...
@@ -44,10 +43,7 @@ import (
"github.com/aws/aws-sdk-go/service/kms"
"github.com/aws/aws-sdk-go/service/kms"
"github.com/aws/aws-sdk-go/service/sts"
"github.com/aws/aws-sdk-go/service/sts"
"github.com/golang/glog"
"github.com/golang/glog"
clientset
"k8s.io/client-go/kubernetes"
gcfg
"gopkg.in/gcfg.v1"
"k8s.io/client-go/tools/record"
"path"
"k8s.io/api/core/v1"
"k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/api/resource"
"k8s.io/apimachinery/pkg/api/resource"
...
@@ -55,8 +51,10 @@ import (
...
@@ -55,8 +51,10 @@ import (
"k8s.io/apimachinery/pkg/types"
"k8s.io/apimachinery/pkg/types"
"k8s.io/apimachinery/pkg/util/sets"
"k8s.io/apimachinery/pkg/util/sets"
"k8s.io/apimachinery/pkg/util/wait"
"k8s.io/apimachinery/pkg/util/wait"
clientset
"k8s.io/client-go/kubernetes"
"k8s.io/client-go/kubernetes/scheme"
"k8s.io/client-go/kubernetes/scheme"
v1core
"k8s.io/client-go/kubernetes/typed/core/v1"
v1core
"k8s.io/client-go/kubernetes/typed/core/v1"
"k8s.io/client-go/tools/record"
cloudprovider
"k8s.io/cloud-provider"
cloudprovider
"k8s.io/cloud-provider"
"k8s.io/kubernetes/pkg/api/v1/service"
"k8s.io/kubernetes/pkg/api/v1/service"
"k8s.io/kubernetes/pkg/controller"
"k8s.io/kubernetes/pkg/controller"
...
...
pkg/cloudprovider/providers/aws/aws_fakes.go
View file @
a49e4e12
...
@@ -25,7 +25,6 @@ import (
...
@@ -25,7 +25,6 @@ import (
"github.com/aws/aws-sdk-go/service/elb"
"github.com/aws/aws-sdk-go/service/elb"
"github.com/aws/aws-sdk-go/service/elbv2"
"github.com/aws/aws-sdk-go/service/elbv2"
"github.com/aws/aws-sdk-go/service/kms"
"github.com/aws/aws-sdk-go/service/kms"
"github.com/golang/glog"
"github.com/golang/glog"
)
)
...
...
pkg/cloudprovider/providers/aws/aws_loadbalancer.go
View file @
a49e4e12
...
@@ -29,6 +29,7 @@ import (
...
@@ -29,6 +29,7 @@ import (
"github.com/aws/aws-sdk-go/service/elb"
"github.com/aws/aws-sdk-go/service/elb"
"github.com/aws/aws-sdk-go/service/elbv2"
"github.com/aws/aws-sdk-go/service/elbv2"
"github.com/golang/glog"
"github.com/golang/glog"
"k8s.io/api/core/v1"
"k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/types"
"k8s.io/apimachinery/pkg/types"
"k8s.io/apimachinery/pkg/util/sets"
"k8s.io/apimachinery/pkg/util/sets"
...
...
pkg/cloudprovider/providers/aws/aws_loadbalancer_test.go
View file @
a49e4e12
...
@@ -17,8 +17,9 @@ limitations under the License.
...
@@ -17,8 +17,9 @@ limitations under the License.
package
aws
package
aws
import
(
import
(
"github.com/aws/aws-sdk-go/aws"
"testing"
"testing"
"github.com/aws/aws-sdk-go/aws"
)
)
func
TestElbProtocolsAreEqual
(
t
*
testing
.
T
)
{
func
TestElbProtocolsAreEqual
(
t
*
testing
.
T
)
{
...
...
pkg/cloudprovider/providers/aws/aws_routes.go
View file @
a49e4e12
...
@@ -23,6 +23,7 @@ import (
...
@@ -23,6 +23,7 @@ import (
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/service/ec2"
"github.com/aws/aws-sdk-go/service/ec2"
"github.com/golang/glog"
"github.com/golang/glog"
cloudprovider
"k8s.io/cloud-provider"
cloudprovider
"k8s.io/cloud-provider"
)
)
...
...
pkg/cloudprovider/providers/aws/aws_test.go
View file @
a49e4e12
...
@@ -27,14 +27,14 @@ import (
...
@@ -27,14 +27,14 @@ import (
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/service/ec2"
"github.com/aws/aws-sdk-go/service/ec2"
"github.com/aws/aws-sdk-go/service/elb"
"github.com/aws/aws-sdk-go/service/elb"
"k8s.io/api/core/v1"
metav1
"k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/util/sets"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/mock"
"github.com/stretchr/testify/mock"
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/require"
"k8s.io/api/core/v1"
metav1
"k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/types"
"k8s.io/apimachinery/pkg/types"
"k8s.io/apimachinery/pkg/util/sets"
kubeletapis
"k8s.io/kubernetes/pkg/kubelet/apis"
kubeletapis
"k8s.io/kubernetes/pkg/kubelet/apis"
)
)
...
...
pkg/cloudprovider/providers/aws/aws_utils.go
View file @
a49e4e12
...
@@ -18,6 +18,7 @@ package aws
...
@@ -18,6 +18,7 @@ package aws
import
(
import
(
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws"
"k8s.io/apimachinery/pkg/util/sets"
"k8s.io/apimachinery/pkg/util/sets"
)
)
...
...
pkg/cloudprovider/providers/aws/instances.go
View file @
a49e4e12
...
@@ -19,15 +19,16 @@ package aws
...
@@ -19,15 +19,16 @@ package aws
import
(
import
(
"fmt"
"fmt"
"net/url"
"net/url"
"regexp"
"strings"
"strings"
"sync"
"time"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/service/ec2"
"github.com/aws/aws-sdk-go/service/ec2"
"github.com/golang/glog"
"github.com/golang/glog"
"k8s.io/api/core/v1"
"k8s.io/api/core/v1"
"regexp"
"sync"
"time"
)
)
// awsInstanceRegMatch represents Regex Match for AWS instance.
// awsInstanceRegMatch represents Regex Match for AWS instance.
...
...
pkg/cloudprovider/providers/aws/instances_test.go
View file @
a49e4e12
...
@@ -17,12 +17,14 @@ limitations under the License.
...
@@ -17,12 +17,14 @@ limitations under the License.
package
aws
package
aws
import
(
import
(
"testing"
"time"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/service/ec2"
"github.com/aws/aws-sdk-go/service/ec2"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/assert"
"k8s.io/api/core/v1"
"k8s.io/api/core/v1"
"testing"
"time"
)
)
func
TestMapToAWSInstanceIDs
(
t
*
testing
.
T
)
{
func
TestMapToAWSInstanceIDs
(
t
*
testing
.
T
)
{
...
...
pkg/cloudprovider/providers/aws/regions.go
View file @
a49e4e12
...
@@ -17,10 +17,12 @@ limitations under the License.
...
@@ -17,10 +17,12 @@ limitations under the License.
package
aws
package
aws
import
(
import
(
"sync"
"github.com/golang/glog"
"github.com/golang/glog"
"k8s.io/apimachinery/pkg/util/sets"
"k8s.io/apimachinery/pkg/util/sets"
awscredentialprovider
"k8s.io/kubernetes/pkg/credentialprovider/aws"
awscredentialprovider
"k8s.io/kubernetes/pkg/credentialprovider/aws"
"sync"
)
)
// wellKnownRegions is the complete list of regions known to the AWS cloudprovider
// wellKnownRegions is the complete list of regions known to the AWS cloudprovider
...
...
pkg/cloudprovider/providers/aws/tags.go
View file @
a49e4e12
...
@@ -18,12 +18,12 @@ package aws
...
@@ -18,12 +18,12 @@ package aws
import
(
import
(
"fmt"
"fmt"
"strings"
"strings"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/service/ec2"
"github.com/aws/aws-sdk-go/service/ec2"
"github.com/golang/glog"
"github.com/golang/glog"
"k8s.io/apimachinery/pkg/util/wait"
"k8s.io/apimachinery/pkg/util/wait"
)
)
...
...
pkg/cloudprovider/providers/aws/tags_test.go
View file @
a49e4e12
...
@@ -17,9 +17,10 @@ limitations under the License.
...
@@ -17,9 +17,10 @@ limitations under the License.
package
aws
package
aws
import
(
import
(
"testing"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/service/ec2"
"github.com/aws/aws-sdk-go/service/ec2"
"testing"
)
)
func
TestFilterTags
(
t
*
testing
.
T
)
{
func
TestFilterTags
(
t
*
testing
.
T
)
{
...
...
pkg/cloudprovider/providers/aws/volumes.go
View file @
a49e4e12
...
@@ -25,6 +25,7 @@ import (
...
@@ -25,6 +25,7 @@ import (
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/service/ec2"
"github.com/aws/aws-sdk-go/service/ec2"
"github.com/golang/glog"
"github.com/golang/glog"
"k8s.io/apimachinery/pkg/types"
"k8s.io/apimachinery/pkg/types"
)
)
...
...
pkg/credentialprovider/aws/aws_credentials.go
View file @
a49e4e12
...
@@ -27,6 +27,7 @@ import (
...
@@ -27,6 +27,7 @@ import (
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/ecr"
"github.com/aws/aws-sdk-go/service/ecr"
"github.com/golang/glog"
"github.com/golang/glog"
"k8s.io/kubernetes/pkg/credentialprovider"
"k8s.io/kubernetes/pkg/credentialprovider"
)
)
...
...
pkg/volume/awsebs/attacher.go
View file @
a49e4e12
...
@@ -24,6 +24,7 @@ import (
...
@@ -24,6 +24,7 @@ import (
"time"
"time"
"github.com/golang/glog"
"github.com/golang/glog"
"k8s.io/api/core/v1"
"k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/types"
"k8s.io/apimachinery/pkg/types"
"k8s.io/kubernetes/pkg/cloudprovider/providers/aws"
"k8s.io/kubernetes/pkg/cloudprovider/providers/aws"
...
...
pkg/volume/awsebs/attacher_test.go
View file @
a49e4e12
...
@@ -20,14 +20,14 @@ import (
...
@@ -20,14 +20,14 @@ import (
"errors"
"errors"
"testing"
"testing"
"github.com/golang/glog"
"k8s.io/api/core/v1"
"k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/api/resource"
"k8s.io/apimachinery/pkg/types"
"k8s.io/kubernetes/pkg/cloudprovider/providers/aws"
"k8s.io/kubernetes/pkg/cloudprovider/providers/aws"
"k8s.io/kubernetes/pkg/volume"
"k8s.io/kubernetes/pkg/volume"
volumetest
"k8s.io/kubernetes/pkg/volume/testing"
volumetest
"k8s.io/kubernetes/pkg/volume/testing"
"github.com/golang/glog"
"k8s.io/apimachinery/pkg/api/resource"
"k8s.io/apimachinery/pkg/types"
)
)
func
TestGetVolumeName_Volume
(
t
*
testing
.
T
)
{
func
TestGetVolumeName_Volume
(
t
*
testing
.
T
)
{
...
...
pkg/volume/awsebs/aws_ebs.go
View file @
a49e4e12
...
@@ -26,6 +26,7 @@ import (
...
@@ -26,6 +26,7 @@ import (
"strings"
"strings"
"github.com/golang/glog"
"github.com/golang/glog"
"k8s.io/api/core/v1"
"k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/api/resource"
"k8s.io/apimachinery/pkg/api/resource"
metav1
"k8s.io/apimachinery/pkg/apis/meta/v1"
metav1
"k8s.io/apimachinery/pkg/apis/meta/v1"
...
...
pkg/volume/awsebs/aws_ebs_block.go
View file @
a49e4e12
...
@@ -23,6 +23,7 @@ import (
...
@@ -23,6 +23,7 @@ import (
"strings"
"strings"
"github.com/golang/glog"
"github.com/golang/glog"
"k8s.io/api/core/v1"
"k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/types"
"k8s.io/apimachinery/pkg/types"
"k8s.io/kubernetes/pkg/cloudprovider/providers/aws"
"k8s.io/kubernetes/pkg/cloudprovider/providers/aws"
...
...
pkg/volume/awsebs/aws_util.go
View file @
a49e4e12
...
@@ -25,6 +25,7 @@ import (
...
@@ -25,6 +25,7 @@ import (
"time"
"time"
"github.com/golang/glog"
"github.com/golang/glog"
"k8s.io/api/core/v1"
"k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/api/resource"
"k8s.io/apimachinery/pkg/api/resource"
"k8s.io/apimachinery/pkg/util/sets"
"k8s.io/apimachinery/pkg/util/sets"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment