Skip to content

Commit

Permalink
refactor: move ipallocator
Browse files Browse the repository at this point in the history
  • Loading branch information
QianChenglong committed Apr 22, 2020
1 parent ef33d2d commit 2b49218
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pkg/platform/provider/baremetal/cluster/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
"net"

"github.com/pkg/errors"
"tkestack.io/tke/pkg/platform/provider/baremetal/util/ipallocator"
"tkestack.io/tke/pkg/util/ipallocator"
)

func GetNodeCIDRMaskSize(clusterCIDR string, maxNodePodNum int32) (int32, error) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/platform/provider/baremetal/validation/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ import (
"k8s.io/apimachinery/pkg/util/validation/field"
"tkestack.io/tke/api/platform"
"tkestack.io/tke/pkg/platform/provider/baremetal/phases/gpu"
"tkestack.io/tke/pkg/platform/provider/baremetal/util/ipallocator"
"tkestack.io/tke/pkg/spec"
"tkestack.io/tke/pkg/util/ipallocator"
"tkestack.io/tke/pkg/util/validation"
)

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (
"net"

api "k8s.io/api/core/v1"
"tkestack.io/tke/pkg/platform/provider/baremetal/util/allocator"
"tkestack.io/tke/pkg/util/allocator"
)

// Interface manages the allocation of IP addresses out of a range. Interface
Expand Down
2 changes: 1 addition & 1 deletion pkg/util/validation/validation.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (
"time"

"github.com/pkg/errors"
"tkestack.io/tke/pkg/platform/provider/baremetal/util/ipallocator"
"tkestack.io/tke/pkg/util/ipallocator"
)

// IsHTTPSReachle tests that https://host:port is reachble in timeout.
Expand Down

0 comments on commit 2b49218

Please sign in to comment.