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
ab8681cd
Commit
ab8681cd
authored
Oct 08, 2018
by
Darren Shepherd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Delete IPAM misc
parent
5308de79
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
9 deletions
+1
-9
cidr_allocator.go
pkg/controller/nodeipam/ipam/cidr_allocator.go
+0
-6
node_ipam_controller.go
pkg/controller/nodeipam/node_ipam_controller.go
+1
-3
No files found.
pkg/controller/nodeipam/ipam/cidr_allocator.go
View file @
ab8681cd
...
@@ -44,12 +44,6 @@ const (
...
@@ -44,12 +44,6 @@ const (
// RangeAllocatorType is the allocator that uses an internal CIDR
// RangeAllocatorType is the allocator that uses an internal CIDR
// range allocator to do node CIDR range allocations.
// range allocator to do node CIDR range allocations.
RangeAllocatorType
CIDRAllocatorType
=
"RangeAllocator"
RangeAllocatorType
CIDRAllocatorType
=
"RangeAllocator"
// IPAMFromClusterAllocatorType uses the ipam controller sync'ing the node
// CIDR range allocations from the cluster to the cloud.
IPAMFromClusterAllocatorType
=
"IPAMFromCluster"
// IPAMFromCloudAllocatorType uses the ipam controller sync'ing the node
// CIDR range allocations from the cloud to the cluster.
IPAMFromCloudAllocatorType
=
"IPAMFromCloud"
)
)
// TODO: figure out the good setting for those constants.
// TODO: figure out the good setting for those constants.
...
...
pkg/controller/nodeipam/node_ipam_controller.go
View file @
ab8681cd
...
@@ -142,9 +142,7 @@ func (nc *Controller) Run(stopCh <-chan struct{}) {
...
@@ -142,9 +142,7 @@ func (nc *Controller) Run(stopCh <-chan struct{}) {
return
return
}
}
if
nc
.
allocatorType
!=
ipam
.
IPAMFromClusterAllocatorType
&&
nc
.
allocatorType
!=
ipam
.
IPAMFromCloudAllocatorType
{
go
nc
.
cidrAllocator
.
Run
(
stopCh
)
go
nc
.
cidrAllocator
.
Run
(
stopCh
)
}
<-
stopCh
<-
stopCh
}
}
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