mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-09 20:17:41 +00:00
update gofmt
Signed-off-by: DingShujie <dingshujie@huawei.com>
This commit is contained in:
parent
8cbe9fe543
commit
c94a9a14d8
@ -582,7 +582,7 @@ func (c *Controller) needsUpdate(oldService *v1.Service, newService *v1.Service)
|
||||
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
|
||||
// so not care about order, only need check the length.
|
||||
if len(oldService.Spec.IPFamilies) != len(newService.Spec.IPFamilies) {
|
||||
|
Loading…
Reference in New Issue
Block a user