Skip to content

Commit fae39a0

Browse files
author
Michael Patsula
committed
fix: podCIDR allocation logic
1 parent 4d858ea commit fae39a0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

install/kubernetes/cidr-allocator/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ keywords:
1010
- Networking
1111
- Node
1212

13-
version: 2.1.0
13+
version: 2.1.1
1414
kubeVersion: ">= 1.16.0-0"
15-
appVersion: "v1.4.0"
15+
appVersion: "v1.4.2"
1616

1717
maintainers:
1818
- name: Ben Sykes

internal/controller/nodecidrallocation_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ func (r *NodeCIDRAllocationReconciler) Reconcile(ctx context.Context, req ctrl.R
260260
}
261261

262262
if !networkAllocated {
263-
if node.Spec.PodCIDR != "" {
263+
if node.Spec.PodCIDR == "" {
264264
node.Spec.PodCIDR = subnet
265265
allocatedSubnetInReconcile = append(allocatedSubnetInReconcile, subnet)
266266

0 commit comments

Comments
 (0)