Skip to content

Commit

Permalink
docs(pool): update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
fioncat committed Jun 11, 2024
1 parent 27583f1 commit bfbff2d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/ipamd/pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,7 @@ func (s *ipamServer) checkIPHealth() error {
if !exists {
// This ip has already been removed in VPC, it should not be assigned to Pod.
// So it should be removed from pool immediately.
ulog.Warnf("The ip %s is not exist in vpc, remove it in pool", toCheck.Value.VPCIP)
ulog.Warnf("The ip %s does not exist in vpc, remove it in pool", toCheck.Value.VPCIP)
err = s.poolDB.Delete(toCheck.Key)
if err != nil {
return fmt.Errorf("failed to remove not exists ip %s from pool: %v", toCheck.Value.VPCIP, err)
Expand All @@ -688,8 +688,9 @@ func (s *ipamServer) checkIPHealth() error {
return nil
}

ulog.Infof("The ip %s is exists in VPC", toCheck.Value.VPCIP)
ulog.Infof("The ip %s exists in VPC", toCheck.Value.VPCIP)

// Now the ip is considered to be healthy, update the check time.
toCheck.Value.CheckHealthTime = time.Now().Unix()
err = s.poolDB.Put(toCheck.Key, toCheck.Value)
if err != nil {
Expand Down

0 comments on commit bfbff2d

Please sign in to comment.