Skip to content

Commit 11c2c98

Browse files
committed
go fmt
1 parent 429b965 commit 11c2c98

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/ipamd/ipamd.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1457,7 +1457,7 @@ func (c *IPAMContext) eniIPPoolReconcile(ipPool []string, attachedENI awsutils.E
14571457
needEC2Reconcile := true
14581458
// Here we can't trust attachedENI since the IMDS metadata can be stale. We need to check with EC2 API.
14591459
// IPsSimilar will exclude primary IP of the ENI that is not added to the ipPool and not available for pods to use.
1460-
if !cniutils.IPsSimilar(ipPool,attachedENIIPs) {
1460+
if !cniutils.IPsSimilar(ipPool, attachedENIIPs) {
14611461
log.Warnf("Instance metadata does not match data store! ipPool: %v, metadata: %v", ipPool, attachedENIIPs)
14621462
log.Debugf("We need to check the ENI status by calling the EC2 control plane.")
14631463
// Call EC2 to verify IPs on this ENI

pkg/utils/cniutils/cni_utils.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ func PrefixSimilar(prefixPool []string, eniPrefixes []*ec2.Ipv4PrefixSpecificati
172172
// IPsSimilar checks if ipPool and eniIPs are equivalent.
173173
func IPsSimilar(ipPool []string, eniIPs []*ec2.NetworkInterfacePrivateIpAddress) bool {
174174
// Here we do +1 in ipPool because eniIPs will also have primary IP which is not used by pods.
175-
if len(ipPool) +1 != len(eniIPs) {
175+
if len(ipPool)+1 != len(eniIPs) {
176176
return false
177177
}
178178

0 commit comments

Comments
 (0)