Skip to content

Commit

Permalink
fix incorrect method for gateway node judgement
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangzujian committed Apr 27, 2021
1 parent 1788ba4 commit a0dfea1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controller/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ func (c *Controller) checkGatewayReady() error {
}

for _, node := range nodes {
if strings.Contains(subnet.Spec.GatewayNode, node.Name) {
if util.GatewayContains(subnet.Spec.GatewayNode, node.Name) {
ipStr := node.Annotations[util.IpAddressAnnotation]
for _, ip := range strings.Split(ipStr, ",") {
pinger, err := goping.NewPinger(ip)
Expand Down

0 comments on commit a0dfea1

Please sign in to comment.