Skip to content

Commit

Permalink
Move pkg/cloud/aws/client under pkg/client
Browse files Browse the repository at this point in the history
The client is not actuatlly aws client, rather a wrapper built on top of aws services.
Thus, no need to mention cloud or aws in the package path.
  • Loading branch information
ingvagabund committed Jan 7, 2019
1 parent 03b2e82 commit 0a158ca
Show file tree
Hide file tree
Showing 18 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion cmd/aws-actuator/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import (
"github.com/golang/glog"
"github.com/spf13/cobra"

awsclient "sigs.k8s.io/cluster-api-provider-aws/pkg/cloud/aws/client"
awsclient "sigs.k8s.io/cluster-api-provider-aws/pkg/client"
clusterv1 "sigs.k8s.io/cluster-api/pkg/apis/cluster/v1alpha1"

"github.com/ghodss/yaml"
Expand Down
2 changes: 1 addition & 1 deletion cmd/aws-actuator/utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package utils
import (
"github.com/golang/glog"

awsclient "sigs.k8s.io/cluster-api-provider-aws/pkg/cloud/aws/client"
awsclient "sigs.k8s.io/cluster-api-provider-aws/pkg/client"
clusterv1 "sigs.k8s.io/cluster-api/pkg/apis/cluster/v1alpha1"

apiv1 "k8s.io/api/core/v1"
Expand Down
2 changes: 1 addition & 1 deletion cmd/manager/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
machineactuator "sigs.k8s.io/cluster-api-provider-aws/pkg/actuators/machine"
"sigs.k8s.io/cluster-api-provider-aws/pkg/apis"
"sigs.k8s.io/cluster-api-provider-aws/pkg/apis/awsproviderconfig/v1alpha1"
awsclient "sigs.k8s.io/cluster-api-provider-aws/pkg/cloud/aws/client"
awsclient "sigs.k8s.io/cluster-api-provider-aws/pkg/client"
"sigs.k8s.io/cluster-api-provider-aws/pkg/controller"
clusterapis "sigs.k8s.io/cluster-api/pkg/apis"
"sigs.k8s.io/controller-runtime/pkg/client/config"
Expand Down
2 changes: 1 addition & 1 deletion pkg/actuators/machine/actuator.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import (

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

awsclient "sigs.k8s.io/cluster-api-provider-aws/pkg/cloud/aws/client"
awsclient "sigs.k8s.io/cluster-api-provider-aws/pkg/client"
"sigs.k8s.io/controller-runtime/pkg/client"
)

Expand Down
4 changes: 2 additions & 2 deletions pkg/actuators/machine/actuator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ import (
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/service/ec2"
providerconfigv1 "sigs.k8s.io/cluster-api-provider-aws/pkg/apis/awsproviderconfig/v1alpha1"
awsclient "sigs.k8s.io/cluster-api-provider-aws/pkg/cloud/aws/client"
mockaws "sigs.k8s.io/cluster-api-provider-aws/pkg/cloud/aws/client/mock"
awsclient "sigs.k8s.io/cluster-api-provider-aws/pkg/client"
mockaws "sigs.k8s.io/cluster-api-provider-aws/pkg/client/mock"
clusterv1 "sigs.k8s.io/cluster-api/pkg/apis/cluster/v1alpha1"

"k8s.io/apimachinery/pkg/types"
Expand Down
2 changes: 1 addition & 1 deletion pkg/actuators/machine/awsclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (

"github.com/openshift/cluster-api-actuator-pkg/pkg/types"

awsclient "sigs.k8s.io/cluster-api-provider-aws/pkg/cloud/aws/client"
awsclient "sigs.k8s.io/cluster-api-provider-aws/pkg/client"
clusterv1alpha1 "sigs.k8s.io/cluster-api/pkg/apis/cluster/v1alpha1"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/actuators/machine/awsclient_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/service/ec2"
"github.com/golang/mock/gomock"
mockaws "sigs.k8s.io/cluster-api-provider-aws/pkg/cloud/aws/client/mock"
mockaws "sigs.k8s.io/cluster-api-provider-aws/pkg/client/mock"
)

func TestAwsClient(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/actuators/machine/instaces_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
providerconfigv1 "sigs.k8s.io/cluster-api-provider-aws/pkg/apis/awsproviderconfig/v1alpha1"

"github.com/golang/mock/gomock"
mockaws "sigs.k8s.io/cluster-api-provider-aws/pkg/cloud/aws/client/mock"
mockaws "sigs.k8s.io/cluster-api-provider-aws/pkg/client/mock"
)

func TestRemoveDuplicatedTags(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/actuators/machine/instances.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/service/ec2"

awsclient "sigs.k8s.io/cluster-api-provider-aws/pkg/cloud/aws/client"
awsclient "sigs.k8s.io/cluster-api-provider-aws/pkg/client"
)

// Scan machine tags, and return a deduped tags list
Expand Down
2 changes: 1 addition & 1 deletion pkg/actuators/machine/loadbalancers.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"github.com/aws/aws-sdk-go/service/elb"
"github.com/aws/aws-sdk-go/service/elbv2"

awsclient "sigs.k8s.io/cluster-api-provider-aws/pkg/cloud/aws/client"
awsclient "sigs.k8s.io/cluster-api-provider-aws/pkg/client"
)

func registerWithClassicLoadBalancers(client awsclient.Client, names []string, instance *ec2.Instance) error {
Expand Down
2 changes: 1 addition & 1 deletion pkg/actuators/machine/loadbalancers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"testing"

"github.com/golang/mock/gomock"
mockaws "sigs.k8s.io/cluster-api-provider-aws/pkg/cloud/aws/client/mock"
mockaws "sigs.k8s.io/cluster-api-provider-aws/pkg/client/mock"
)

func TestRegisterWithNetworkLoadBalancers(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/actuators/machine/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import (
"golang.org/x/net/context"
"k8s.io/apimachinery/pkg/types"
providerconfigv1 "sigs.k8s.io/cluster-api-provider-aws/pkg/apis/awsproviderconfig/v1alpha1"
awsclient "sigs.k8s.io/cluster-api-provider-aws/pkg/cloud/aws/client"
awsclient "sigs.k8s.io/cluster-api-provider-aws/pkg/client"
clusterv1 "sigs.k8s.io/cluster-api/pkg/apis/cluster/v1alpha1"
"sigs.k8s.io/controller-runtime/pkg/client"
)
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/aws/aws-sdk-go/service/elb"
"github.com/aws/aws-sdk-go/service/elbv2"
"k8s.io/client-go/kubernetes"
"sigs.k8s.io/cluster-api-provider-aws/pkg/cloud/aws/client"
"sigs.k8s.io/cluster-api-provider-aws/pkg/client"
)

type awsClient struct {
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion test/integration/create_update_delete_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

machineactuator "sigs.k8s.io/cluster-api-provider-aws/pkg/actuators/machine"
awsclient "sigs.k8s.io/cluster-api-provider-aws/pkg/cloud/aws/client"
awsclient "sigs.k8s.io/cluster-api-provider-aws/pkg/client"
clusterv1 "sigs.k8s.io/cluster-api/pkg/apis/cluster/v1alpha1"

"github.com/ghodss/yaml"
Expand Down
2 changes: 1 addition & 1 deletion test/machines/machines_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (
"github.com/aws/aws-sdk-go/service/ec2"

machineutils "sigs.k8s.io/cluster-api-provider-aws/pkg/actuators/machine"
awsclient "sigs.k8s.io/cluster-api-provider-aws/pkg/cloud/aws/client"
awsclient "sigs.k8s.io/cluster-api-provider-aws/pkg/client"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion test/utils/manifests.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
apiv1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
providerconfigv1 "sigs.k8s.io/cluster-api-provider-aws/pkg/apis/awsproviderconfig/v1alpha1"
awsclient "sigs.k8s.io/cluster-api-provider-aws/pkg/cloud/aws/client"
awsclient "sigs.k8s.io/cluster-api-provider-aws/pkg/client"
clusterv1alpha1 "sigs.k8s.io/cluster-api/pkg/apis/cluster/v1alpha1"
)

Expand Down

0 comments on commit 0a158ca

Please sign in to comment.