Skip to content

Commit

Permalink
Merge pull request #521 from mohamed-rafraf/patch-1
Browse files Browse the repository at this point in the history
Sanity Check for dual-stack before use IPAM.CIDR
  • Loading branch information
axel7born authored Nov 6, 2024
2 parents b1f9801 + 5878632 commit 6c6ebe6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/charts/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ func mergeCalicoValuesWithConfig(c *calicoConfig, config *calicov1alpha1.Network
}

if c.IPAM.IPAMType == hostLocal {
if config.IPAM != nil && config.IPAM.CIDR != nil {
if config.IPAM != nil && config.IPAM.CIDR != nil && !(isIPv4 && isIPv6) {
c.IPAM.Subnet = string(*config.IPAM.CIDR)
}
}
Expand Down

0 comments on commit 6c6ebe6

Please sign in to comment.