Skip to content

Commit

Permalink
bgp, vendor: Update go.universe.tf/metallb to support EndpointSlices
Browse files Browse the repository at this point in the history
This commit updates MetalLB to v0.10.0 which brings support for
EndpointSlices. Previously, we disabled EndpointSlices support in Cilium
automatically to maintain compatibility when the user requests to use
BGP mode.

Signed-off-by: Chris Tarazi <chris@isovalent.com>
  • Loading branch information
christarazi authored and aanm committed Jul 19, 2021
1 parent 678e098 commit 55b744b
Show file tree
Hide file tree
Showing 22 changed files with 2,105 additions and 83 deletions.
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ require (
go.etcd.io/etcd/client/pkg/v3 v3.5.0
go.etcd.io/etcd/client/v3 v3.5.0
go.uber.org/goleak v1.1.10
go.universe.tf/metallb v0.9.6
go.universe.tf/metallb v0.10.0
golang.org/x/crypto v0.0.0-20210503195802-e9a32991a82e
golang.org/x/net v0.0.0-20210504132125-bbd867fde50d
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c
Expand Down Expand Up @@ -117,7 +117,7 @@ replace (
github.com/miekg/dns => github.com/cilium/dns v1.1.4-0.20190417235132-8e25ec9a0ff3
github.com/optiopay/kafka => github.com/cilium/kafka v0.0.0-20180809090225-01ce283b732b

go.universe.tf/metallb => github.com/cilium/metallb v0.1.1-0.20210607221240-b4c60b959dd7
go.universe.tf/metallb => github.com/cilium/metallb v0.1.1-0.20210609003938-62cef75b3c9f

// Using private fork of controller-tools. See commit msg for more context
// as to why we are using a private fork.
Expand Down
5 changes: 3 additions & 2 deletions go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion pkg/bgp/manager/subscriber.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import (
slim_corev1 "github.com/cilium/cilium/pkg/k8s/slim/k8s/api/core/v1"
"github.com/cilium/cilium/pkg/logging/logfields"

metallbk8s "go.universe.tf/metallb/pkg/k8s"
"go.universe.tf/metallb/pkg/k8s/types"
v1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
Expand Down Expand Up @@ -131,7 +132,9 @@ func (m *Manager) process(event interface{}) types.SyncState {
// reconcile calls down to the MetalLB controller to reconcile the service
// object, which will allocate it an LB IP.
func (m *Manager) reconcile(name string, svc *slim_corev1.Service) types.SyncState {
return m.SetBalancer(m.Logger(), name, toV1Service(svc), nil)
return m.SetBalancer(m.Logger(), name, toV1Service(svc), metallbk8s.EpsOrSlices{
Type: metallbk8s.Eps,
})
}

// forceResync re-adds all the services from the indexer to the queue. See
Expand Down
191 changes: 191 additions & 0 deletions vendor/github.com/golang/groupcache/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

133 changes: 133 additions & 0 deletions vendor/github.com/golang/groupcache/lru/lru.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 55b744b

Please sign in to comment.