update gofmt

Signed-off-by: DingShujie <dingshujie@huawei.com>
This commit is contained in:
DingShujie 2023-03-15 10:02:46 +08:00
parent 8cbe9fe543
commit c94a9a14d8

View File

@ -582,7 +582,7 @@ func (c *Controller) needsUpdate(oldService *v1.Service, newService *v1.Service)
return true return true
} }
// User can upgrade (add another clusterIP or ipFamily) or can downgrade (remove secondary clusterIP or ipFamily), // User can upgrade (add another clusterIP or ipFamily) or can downgrade (remove secondary clusterIP or ipFamily),
// but CAN NOT change primary/secondary clusterIP || ipFamily UNLESS they are changing from/to/ON ExternalName // but CAN NOT change primary/secondary clusterIP || ipFamily UNLESS they are changing from/to/ON ExternalName
// so not care about order, only need check the length. // so not care about order, only need check the length.
if len(oldService.Spec.IPFamilies) != len(newService.Spec.IPFamilies) { if len(oldService.Spec.IPFamilies) != len(newService.Spec.IPFamilies) {