Repository: metallb/metallb
Pull request #866 (2021-05-30 13:35:19)

Update speaker.yaml
wrong value reference


Patch:
diff --git a/.circleci/config.yml b/.circleci/config.yml
index ade2c302..a25bdf40 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -31,7 +31,9 @@ jobs:
       - setup_kind
       - run: inv build
       - run: inv dev-env -p bgp
-      - run: inv e2etest
+      - run: inv e2etest -e /tmp/kind_logs
+      - store_artifacts:
+          path: /tmp/kind_logs
   e2etest-layer2:
     machine:
       image: ubuntu-2004:202104-01
@@ -40,7 +42,9 @@ jobs:
       - setup_kind
       - run: inv build
       - run: inv dev-env -p layer2
-      - run: inv e2etest
+      - run: inv e2etest -e /tmp/kind_logs
+      - store_artifacts:
+          path: /tmp/kind_logs
   lint-1-16:
     docker:
       - image: cimg/go:1.16
diff --git a/charts/metallb/templates/controller.yaml b/charts/metallb/templates/controller.yaml
index 7a2f194f..ccbdf0ef 100644
--- a/charts/metallb/templates/controller.yaml
+++ b/charts/metallb/templates/controller.yaml
@@ -19,7 +19,7 @@ spec:
         prometheus.io/scrape: "true"
         prometheus.io/port: "{{ .Values.prometheus.metricsPort }}"
         {{- end }}
-        {{- with .Values.podAnnotations }}
+        {{- with .Values.controller.podAnnotations }}
           {{- toYaml . | nindent 8 }}
         {{- end }}
       {{- end }}
diff --git a/charts/metallb/templates/speaker.yaml b/charts/metallb/templates/speaker.yaml
index 0190f699..0b4fd7ab 100644
--- a/charts/metallb/templates/speaker.yaml
+++ b/charts/metallb/templates/speaker.yaml
@@ -19,7 +19,7 @@ spec:
         prometheus.io/scrape: "true"
         prometheus.io/port: "{{ .Values.prometheus.metricsPort }}"
         {{- end }}
-        {{- with .Values.podAnnotations }}
+        {{- with .Values.speaker.podAnnotations }}
           {{- toYaml . | nindent 8 }}
         {{- end }}
       {{- end }}
diff --git a/controller/main.go b/controller/main.go
index 94c9d4b1..4466c532 100644
--- a/controller/main.go
+++ b/controller/main.go
@@ -28,7 +28,7 @@ import (
 	"go.universe.tf/metallb/internal/version"
 
 	"github.com/go-kit/kit/log"
-	"k8s.io/api/core/v1"
+	v1 "k8s.io/api/core/v1"
 )
 
 // Service offers methods to mutate a Kubernetes service object.
@@ -45,7 +45,7 @@ type controller struct {
 	ips    *allocator.Allocator
 }
 
-func (c *controller) SetBalancer(l log.Logger, name string, svcRo *v1.Service, _ *v1.Endpoints) k8s.SyncState {
+func (c *controller) SetBalancer(l log.Logger, name string, svcRo *v1.Service, _ k8s.EpsOrSlices) k8s.SyncState {
 	l.Log("event", "startUpdate", "msg", "start of service update")
 	defer l.Log("event", "endUpdate", "msg", "end of service update")
 
diff --git a/go.mod b/go.mod
index 95e2cd0b..4850e53c 100644
--- a/go.mod
+++ b/go.mod
@@ -17,6 +17,7 @@ require (
 	github.com/mdlayher/raw v0.0.0-20191009151244-50f2db8cc065 // indirect
 	github.com/mikioh/ipaddr v0.0.0-20190404000644-d465c8ab6721
 	github.com/osrg/gobgp v2.0.0+incompatible
+	github.com/pelletier/go-toml v1.8.1 // indirect
 	github.com/prometheus/client_golang v1.0.0
 	github.com/satori/go.uuid v1.2.0 // indirect
 	github.com/spf13/viper v1.7.0 // indirect
@@ -25,9 +26,9 @@ require (
 	golang.org/x/net v0.0.0-20210226172049-e18ecbb05110 // indirect
 	golang.org/x/sys v0.0.0-20210314195730-07df6a141424
 	gopkg.in/yaml.v2 v2.4.0
+	gopkg.in/yaml.v3 v3.0.0-20200615113413-eeeca48fe776 // indirect
 	k8s.io/api v0.20.2
 	k8s.io/apimachinery v0.20.2
 	k8s.io/client-go v0.20.2
 	k8s.io/klog v0.3.1
-	sigs.k8s.io/kind v0.10.0 // indirect
 )
diff --git a/go.sum b/go.sum
index e9c778a0..234ad412 100644
--- a/go.sum
+++ b/go.sum
@@ -31,21 +31,15 @@ github.com/Azure/go-autorest/autorest/mocks v0.4.0/go.mod h1:LTp+uSrOhSkaKrUy935
 github.com/Azure/go-autorest/autorest/mocks v0.4.1/go.mod h1:LTp+uSrOhSkaKrUy935gNZuuIPPVsHlr9DSOxSayd+k=
 github.com/Azure/go-autorest/logger v0.2.0/go.mod h1:T9E3cAhj2VqvPOtCYAvby9aBXkZmbF5NWuPV8+WeEW8=
 github.com/Azure/go-autorest/tracing v0.6.0/go.mod h1:+vhtPC754Xsa23ID7GlGsrdKBpUA79WCAKPPZVC2DeU=
-github.com/BurntSushi/toml v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ=
 github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
 github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo=
 github.com/NYTimes/gziphandler v0.0.0-20170623195520-56545f4a5d46/go.mod h1:3wb06e3pkSAbeQ52E9H9iFoQsEEwGN64994WTCIhntQ=
 github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU=
-github.com/PuerkitoBio/purell v1.0.0/go.mod h1:c11w/QuzBsJSee3cPx9rAFu61PvFxuPbtSwDGJws/X0=
 github.com/PuerkitoBio/purell v1.1.1/go.mod h1:c11w/QuzBsJSee3cPx9rAFu61PvFxuPbtSwDGJws/X0=
-github.com/PuerkitoBio/urlesc v0.0.0-20160726150825-5bd2802263f2/go.mod h1:uGdkoq3SwY9Y+13GIhn11/XLaGBb4BfwItxLd5jeuXE=
 github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578/go.mod h1:uGdkoq3SwY9Y+13GIhn11/XLaGBb4BfwItxLd5jeuXE=
 github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc=
 github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0=
-github.com/alessio/shellescape v1.2.2 h1:8LnL+ncxhWT2TR00dfJRT25JWWrhkMZXneHVWnetDZg=
-github.com/alessio/shellescape v1.2.2/go.mod h1:PZAiSCk0LJaZkiCSkPv8qIobYglO3FPpyFjDCtHLS30=
 github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e/go.mod h1:3U/XgcO3hCbHZ8TKRvWD2dDTCfh9M9ya+I9JpbB7O8o=
-github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6/go.mod h1:grANhF5doyWs3UAsr3K4I6qtAmlQcZDesFNEHPZAzj8=
 github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da h1:8GUt8eRujhVEGZFFEjBj46YV4rDjvGrNxb0KMWYkL2I=
 github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da/go.mod h1:Q73ZrmVTwzkszR9V5SSuryQ31EELlFMUz1kKyl939pY=
 github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8=
@@ -64,13 +58,10 @@ github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5P
 github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU=
 github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw=
 github.com/coreos/bbolt v1.3.2/go.mod h1:iRUV2dpdMOn7Bo10OQBFzIJO9kkE559Wcmn+qkEiiKk=
-github.com/coreos/etcd v3.3.10+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE=
 github.com/coreos/etcd v3.3.13+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE=
-github.com/coreos/go-semver v0.2.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk=
 github.com/coreos/go-semver v0.3.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk=
 github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4=
 github.com/coreos/pkg v0.0.0-20180928190104-399ea9e2e55f/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA=
-github.com/cpuguy83/go-md2man/v2 v2.0.0/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU=
 github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
 github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
 github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
@@ -88,10 +79,7 @@ github.com/elazarl/goproxy v0.0.0-20180725130230-947c36da3153/go.mod h1:/Zj4wYkg
 github.com/emicklei/go-restful v0.0.0-20170410110728-ff4f55a20633/go.mod h1:otzb+WCGbkyDHkqmQmT5YD2WR4BBwUdeQoFo8l/7tVs=
 github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4=
 github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c=
-github.com/evanphx/json-patch v4.9.0+incompatible h1:kLcOMZeuLAJvL2BPWLMIj5oaZQobrkAqrL+WFZwQses=
 github.com/evanphx/json-patch v4.9.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk=
-github.com/evanphx/json-patch/v5 v5.1.0 h1:B0aXl1o/1cP8NbviYiBMkcHBtUjIJ1/Ccg6b+SwCLQg=
-github.com/evanphx/json-patch/v5 v5.1.0/go.mod h1:G79N1coSVB93tBe7j6PhzjmR3/2VvlbKOFpnXhI9Bw4=
 github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4=
 github.com/form3tech-oss/jwt-go v3.2.2+incompatible/go.mod h1:pbq4aXjuKjdthFRnoDwaVPLA+WlJuPGy+QneDUgJi2k=
 github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo=
@@ -111,15 +99,11 @@ github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V
 github.com/go-logr/logr v0.1.0/go.mod h1:ixOQHD9gLJUVQQ2ZOR7zLEifBX6tGkNJF4QyIY7sIas=
 github.com/go-logr/logr v0.2.0 h1:QvGt2nLcHH0WK9orKa+ppBPAxREcH364nPUedEpK0TY=
 github.com/go-logr/logr v0.2.0/go.mod h1:z6/tIYblkpsD+a4lm/fGIIU9mZ+XfAiaFtq7xTgseGU=
-github.com/go-openapi/jsonpointer v0.0.0-20160704185906-46af16f9f7b1/go.mod h1:+35s3my2LFTysnkMfxsJBAMHj/DoqoB9knIWoYG/Vk0=
 github.com/go-openapi/jsonpointer v0.19.2/go.mod h1:3akKfEdA7DF1sugOqz1dVQHBcuDBPKZGEoHC/NkiQRg=
 github.com/go-openapi/jsonpointer v0.19.3/go.mod h1:Pl9vOtqEWErmShwVjC8pYs9cog34VGT37dQOVbmoatg=
-github.com/go-openapi/jsonreference v0.0.0-20160704190145-13c6e3589ad9/go.mod h1:W3Z9FmVs9qj+KR4zFKmDPGiLdk1D9Rlm7cyMvf57TTg=
 github.com/go-openapi/jsonreference v0.19.2/go.mod h1:jMjeRr2HHw6nAVajTXJ4eiUwohSTlpa0o73RUL1owJc=
 github.com/go-openapi/jsonreference v0.19.3/go.mod h1:rjx6GuL8TTa9VaixXglHmQmIL98+wF9xc8zWvFonSJ8=
-github.com/go-openapi/spec v0.0.0-20160808142527-6aced65f8501/go.mod h1:J8+jY1nAiCcj+friV/PDoE1/3eeccG9LYBs0tYvLOWc=
 github.com/go-openapi/spec v0.19.3/go.mod h1:FpwSN1ksY1eteniUU7X0N/BgJ7a4WvBFVA8Lj9mJglo=
-github.com/go-openapi/swag v0.0.0-20160704191624-1d0bd113de87/go.mod h1:DXUve3Dpr1UfpPtxFw+EFuQ41HhCWZfha5jSVRG7C7I=
 github.com/go-openapi/swag v0.19.2/go.mod h1:POnQmlKehdgb5mhVOsnJFsivZCEZ/vjK9gh66Z9tfKk=
 github.com/go-openapi/swag v0.19.5/go.mod h1:POnQmlKehdgb5mhVOsnJFsivZCEZ/vjK9gh66Z9tfKk=
 github.com/go-stack/stack v1.8.0 h1:5SgMzNM5HxrEjV0ww2lTmX6E2Izsfxas4+YHWRs3Lsk=
@@ -151,7 +135,6 @@ github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrU
 github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w=
 github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0=
 github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8=
-github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI=
 github.com/golang/protobuf v1.4.3 h1:JjCZWpVbqXDqFVmTfYWEVTMIYrL/NPdPSCHPJ0T/raM=
 github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI=
 github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ=
@@ -163,7 +146,6 @@ github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMyw
 github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
 github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
 github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
-github.com/google/go-cmp v0.5.2 h1:X2ev0eStA3AbceY54o37/0PQ/UWqKEiiO2dKL5OPaFM=
 github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
 github.com/google/go-cmp v0.5.5 h1:Khx7svrCpmxxtHBq5j2mp/xVjsi8hQMfNLvJFAlrGgU=
 github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
@@ -186,7 +168,6 @@ github.com/googleapis/gnostic v0.4.1 h1:DLJCy1n/vrD4HPjOvYcT8aYQXpPIzoRZONaYwyyc
 github.com/googleapis/gnostic v0.4.1/go.mod h1:LRhVm6pbyptWbWbuZ38d1eyptfvIytN3ir6b65WBswg=
 github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1 h1:EGx4pi6eqNxGaHF6qqu48+N2wcFQ5qg5FXgOdqsJ5d8=
 github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY=
-github.com/gorilla/websocket v1.4.0/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ=
 github.com/gorilla/websocket v1.4.2/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE=
 github.com/gregjones/httpcache v0.0.0-20180305231024-9cad4c3443a7/go.mod h1:FecbI9+v66THATjSRHfNgh1IVFe/9kFxbXtjV0ctIMA=
 github.com/grpc-ecosystem/go-grpc-middleware v1.0.0/go.mod h1:FiyG127CGDf3tlThmgyCl78X/SZQqEOJBCDaAfeWzPs=
@@ -227,9 +208,6 @@ github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpO
 github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc=
 github.com/imdario/mergo v0.3.5 h1:JboBksRwiiAJWvIYJVo46AfV+IAIKZpfrSzVKj42R4Q=
 github.com/imdario/mergo v0.3.5/go.mod h1:2EnlNZ0deacrJVfApfmtdGgDfMuh/nq6Ok1EcJh5FfA=
-github.com/inconshreveable/mousetrap v1.0.0 h1:Z8tu5sraLXCXIcARxBp/8cbvlwVa7Z1NHg9XEKhtSvM=
-github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8=
-github.com/jessevdk/go-flags v1.4.0/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI=
 github.com/jonboulle/clockwork v0.1.0/go.mod h1:Ii8DK3G1RaLaWxj9trq07+26W01tbo22gdxWY5EU2bo=
 github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU=
 github.com/json-iterator/go v1.1.10 h1:Kz6Cvnvv2wGdaG/V8yMvfkmNiXq9Ya2KUv4rouJJr68=
@@ -253,16 +231,12 @@ github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
 github.com/kr/pty v1.1.5/go.mod h1:9r2w37qlBe7rQ6e1fg1S/9xpWHSnaqNdHD3WcMdbPDA=
 github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE=
 github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
-github.com/magiconair/properties v1.8.0/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ=
 github.com/magiconair/properties v1.8.1 h1:ZC2Vc7/ZFkGmsVC9KvOjumD+G5lXy2RtTKyzRKO2BQ4=
 github.com/magiconair/properties v1.8.1/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ=
-github.com/mailru/easyjson v0.0.0-20160728113105-d5b7844b561a/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc=
 github.com/mailru/easyjson v0.0.0-20190614124828-94de47d64c63/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc=
 github.com/mailru/easyjson v0.0.0-20190626092158-b2ccc519800e/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc=
 github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU=
 github.com/mattn/go-isatty v0.0.3/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4=
-github.com/mattn/go-isatty v0.0.12 h1:wuysRhFDzyxgEmMf5xjvJ2M9dZoWAXNNr5LSBS7uHXY=
-github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU=
 github.com/matttproud/golang_protobuf_extensions v1.0.1 h1:4hp9jkHxhMHkqkrB3Ix0jegS5sx/RkqARlsWZ6pIwiU=
 github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0=
 github.com/mdlayher/arp v0.0.0-20191213142603-f72070a231fc h1:m7rJJJeXrYCFpsxXYapkDW53wJCDmf9bsIXUg0HoeQY=
@@ -273,7 +247,6 @@ github.com/mdlayher/ethernet v0.0.0-20190606142754-0394541c37b7/go.mod h1:U6ZQob
 github.com/mdlayher/ndp v0.0.0-20200602162440-17ab9e3e5567 h1:x+xs91ZJ+lr0C6sedWeREvck4uGCt+AA1kKXwsHB6jI=
 github.com/mdlayher/ndp v0.0.0-20200602162440-17ab9e3e5567/go.mod h1:32w/5dDZWVSEOxyniAgKK4d7dHTuO6TCxWmUznQe3f8=
 github.com/mdlayher/raw v0.0.0-20190313224157-43dbcdd7739d/go.mod h1:r1fbeITl2xL/zLbVnNHFyOzQJTgr/3fpf1lJX/cjzR8=
-github.com/mdlayher/raw v0.0.0-20190606142536-fef19f00fc18 h1:zwOa3e/13D6veNIz6zzuqrd3eZEMF0dzD0AQWKcYSs4=
 github.com/mdlayher/raw v0.0.0-20190606142536-fef19f00fc18/go.mod h1:7EpbotpCmVZcu+KCX4g9WaRNuu11uyhiW7+Le1dKawg=
 github.com/mdlayher/raw v0.0.0-20191009151244-50f2db8cc065 h1:aFkJ6lx4FPip+S+Uw4aTegFMct9shDvP+79PsSxpm3w=
 github.com/mdlayher/raw v0.0.0-20191009151244-50f2db8cc065/go.mod h1:7EpbotpCmVZcu+KCX4g9WaRNuu11uyhiW7+Le1dKawg=
@@ -284,7 +257,6 @@ github.com/mikioh/ipaddr v0.0.0-20190404000644-d465c8ab6721 h1:RlZweED6sbSArvlE9
 github.com/mikioh/ipaddr v0.0.0-20190404000644-d465c8ab6721/go.mod h1:Ickgr2WtCLZ2MDGd4Gr0geeCH5HybhRJbonOgQpvSxc=
 github.com/mitchellh/cli v1.0.0/go.mod h1:hNIlj7HEI86fIcpObd7a0FcrxTWetlwJDGcceTlRvqc=
 github.com/mitchellh/go-homedir v1.0.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0=
-github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0=
 github.com/mitchellh/go-testing-interface v1.0.0/go.mod h1:kRemZodwjscx+RGhAo8eIhFbs2+BFgRtFPeD/KE+zxI=
 github.com/mitchellh/gox v0.4.0/go.mod h1:Sd9lOJ0+aimLBi73mGofS1ycjY8lL3uZM3JPS42BGNg=
 github.com/mitchellh/iochan v1.0.0/go.mod h1:JwYml1nuB7xOzsp52dPpHFffvOCDupsG0QubkSMEySY=
@@ -312,14 +284,12 @@ github.com/osrg/gobgp v2.0.0+incompatible h1:91ARQbE1AtO0U4TIxHPJ7wYVZIqduyBwS1+
 github.com/osrg/gobgp v2.0.0+incompatible/go.mod h1:vGVJPLW6JFDD7WA1vJsjB8OKmbbC2TKwHtr90CZS/u4=
 github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c h1:Lgl0gzECD8GnQ5QCWA8o6BtfL6mDH5rQgM4/fX3avOs=
 github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc=
-github.com/pelletier/go-toml v1.2.0 h1:T5zMGML61Wp+FlcbWjRDT7yAxhJNAiPPLOFECq181zc=
 github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic=
 github.com/pelletier/go-toml v1.8.1 h1:1Nf83orprkJyknT6h7zbuEGUEjcyVlCxSUGTENmNCRM=
 github.com/pelletier/go-toml v1.8.1/go.mod h1:T2/BmBdy8dvIRq1a/8aqjN41wvWlN4lrapLU/GW4pbc=
 github.com/peterbourgon/diskv v2.0.1+incompatible/go.mod h1:uqqh8zWWbv1HBMNONnaR/tNboyR3/BZd58JJSHlUSCU=
 github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
 github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
-github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
 github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
 github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
 github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
@@ -343,13 +313,11 @@ github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsT
 github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU=
 github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg=
 github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4=
-github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
 github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts=
 github.com/satori/go.uuid v1.2.0 h1:0uYX9dsZ2yD7q2RtLRtPSdGDWzjeM3TbMJP9utgA0ww=
 github.com/satori/go.uuid v1.2.0/go.mod h1:dA0hQrYB0VpLJoorglMZABFdXlWrHn1NEOzdhQKdks0=
 github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529 h1:nn5Wsu0esKSJiIVhscUtVbo7ada43DJhG55ua/hjS5I=
 github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc=
-github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc=
 github.com/sirupsen/logrus v1.2.0 h1:juTguoYk5qI21pwyTXY3B3Y5cOTH3ZUyZCg1v/mihuo=
 github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo=
 github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d h1:zE9ykElWQ6/NYmHa3jpm/yHnI4xSofP+UP6SpjHcSeM=
@@ -363,15 +331,12 @@ github.com/spf13/afero v1.2.2 h1:5jhuqJyZCZf2JRofRvN/nIFgIWNzPa3/Vz8mYylgbWc=
 github.com/spf13/afero v1.2.2/go.mod h1:9ZxEEn6pIJ8Rxe320qSDBk6AsU0r9pR7Q4OcevTdifk=
 github.com/spf13/cast v1.3.0 h1:oget//CVOEoFewqQxwr0Ej5yjygnqGkvggSE/gB35Q8=
 github.com/spf13/cast v1.3.0/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE=
-github.com/spf13/cobra v1.0.0 h1:6m/oheQuQ13N9ks4hubMG6BnvwOeaJrqSPLahSnczz8=
-github.com/spf13/cobra v1.0.0/go.mod h1:/6GTrnGXV9HjY+aR4k0oJ5tcvakLuG6EuKReYlHNrgE=
 github.com/spf13/jwalterweatherman v1.0.0 h1:XHEdyB+EcvlqZamSM4ZOMGlc93t6AcsBEu9Gc1vn7yk=
 github.com/spf13/jwalterweatherman v1.0.0/go.mod h1:cQK4TGJAtQXfYWX+Ddv3mKDzgVb68N+wFjFa4jdeBTo=
 github.com/spf13/pflag v0.0.0-20170130214245-9ff6c6923cff/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4=
 github.com/spf13/pflag v1.0.3/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4=
 github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA=
 github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
-github.com/spf13/viper v1.4.0/go.mod h1:PTJ7Z/lr49W6bUbkmS1V3by4uWynFiR9p7+dSq/yZzE=
 github.com/spf13/viper v1.7.0 h1:xVKxvI7ouOI5I+U9s2eeiUfMaWBVoXA3AWskkrqK0VM=
 github.com/spf13/viper v1.7.0/go.mod h1:8WkrPz2fc9jxqZNCJI/76HCieCp4Q8HaLFoCha5qpdg=
 github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
@@ -385,13 +350,11 @@ github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/
 github.com/subosito/gotenv v1.2.0 h1:Slr1R9HxAlEKefgq5jn9U+DnETlIUa6HfgEzj0g5d7s=
 github.com/subosito/gotenv v1.2.0/go.mod h1:N0PQaV/YGNqwC0u51sEeR/aUtSLEXKX9iv69rRypqCw=
 github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U=
-github.com/ugorji/go v1.1.4/go.mod h1:uQMGLiO92mf5W77hV/PUCpI3pbzQx3CRekS0kk+RGrc=
 github.com/vishvananda/netlink v1.0.0 h1:bqNY2lgheFIu1meHUFSH3d7vG93AFyqg3oGbJCOJgSM=
 github.com/vishvananda/netlink v1.0.0/go.mod h1:+SR5DhBJrl6ZM7CoCKvpw5BKroDKQ+PJqOg65H/2ktk=
 github.com/vishvananda/netns v0.0.0-20190625233234-7109fa855b0f h1:nBX3nTcmxEtHSERBJaIo1Qa26VwRaopnZmfDQUXsF4I=
 github.com/vishvananda/netns v0.0.0-20190625233234-7109fa855b0f/go.mod h1:ZjcWmFBXmLKZu9Nxj3WKYEafiSqer2rnvPr0en9UNpI=
 github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2/go.mod h1:UETIi67q53MR2AWcXfiuqkDkRtnGDLqkBTpCHuJHxtU=
-github.com/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77/go.mod h1:aYKd//L2LvnjZzWKhF00oedf4jCCReLcmhLdhm1A27Q=
 gitlab.com/golang-commonmark/puny v0.0.0-20191124015043-9f83538fa04f h1:Wku8eEdeJqIOFHtrfkYUByc4bCaTeA6fL0UJgfEiFMI=
 gitlab.com/golang-commonmark/puny v0.0.0-20191124015043-9f83538fa04f/go.mod h1:Tiuhl+njh/JIg0uS/sOJVYi0x2HEa5rc1OAaVsb5tAs=
 go.etcd.io/bbolt v1.3.2/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU=
@@ -457,7 +420,6 @@ golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn
 golang.org/x/net v0.0.0-20190419010253-1f3472d942ba/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
 golang.org/x/net v0.0.0-20190501004415-9ce7a6920f09/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
 golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
-golang.org/x/net v0.0.0-20190522155817-f3200d17e092/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks=
 golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks=
 golang.org/x/net v0.0.0-20190613194153-d28f0bde5980/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
 golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
@@ -472,8 +434,6 @@ golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLL
 golang.org/x/net v0.0.0-20200301022130-244492dfa37a/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
 golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A=
 golang.org/x/net v0.0.0-20200602114024-627f9648deb9/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A=
-golang.org/x/net v0.0.0-20200707034311-ab3426394381/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA=
-golang.org/x/net v0.0.0-20201110031124-69a78807bb2b h1:uwuIcX0g4Yl1NC5XAz37xsr2lTtcqevgzYNVt49waME=
 golang.org/x/net v0.0.0-20201110031124-69a78807bb2b/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU=
 golang.org/x/net v0.0.0-20210226172049-e18ecbb05110 h1:qWPm9rbaAMKs8Bq/9LRpbMqxWRVUAQwMI9fVrssnTfw=
 golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
@@ -488,7 +448,6 @@ golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJ
 golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
 golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
 golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
-golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e h1:vcxGaoTs7kV8m5Np9uUNQin4BrLOthgV7252N8V+FwY=
 golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
 golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a h1:WXEvlFVvvGxCJLG6REjsT03iWnKLEWinaScsxF2Vm2o=
 golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
@@ -517,7 +476,6 @@ golang.org/x/sys v0.0.0-20191005200804-aed5e4c7ecf9/go.mod h1:h1NjWce9XRLGQEsW7w
 golang.org/x/sys v0.0.0-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
 golang.org/x/sys v0.0.0-20191228213918-04cbcbbfeed8/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
 golang.org/x/sys v0.0.0-20200113162924-86b910548bc1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
 golang.org/x/sys v0.0.0-20200122134326-e047566fdf82/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
 golang.org/x/sys v0.0.0-20200202164722-d101bd2416d5/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
 golang.org/x/sys v0.0.0-20200212091648-12a6c2dcc1e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
@@ -525,8 +483,6 @@ golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7w
 golang.org/x/sys v0.0.0-20200302150141-5c8b2ff67527/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
 golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
 golang.org/x/sys v0.0.0-20200602100848-8d3cce7afc34/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20200622214017-ed371f2e16b4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20200928205150-006507a75852/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
 golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
 golang.org/x/sys v0.0.0-20201112073958-5cba982894dd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
 golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
@@ -547,7 +503,6 @@ golang.org/x/time v0.0.0-20200630173020-3af7569d3a1e h1:EHBhcS0mlXEAVwNyO2dLfjTo
 golang.org/x/time v0.0.0-20200630173020-3af7569d3a1e/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
 golang.org/x/tools v0.0.0-20180221164845-07fd8470d635/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
 golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
-golang.org/x/tools v0.0.0-20181011042414-1f849cf54d09/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
 golang.org/x/tools v0.0.0-20181030221726-6c7e314b6563/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
 golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
 golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY=
@@ -625,7 +580,6 @@ google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013 h1:+kGHl1aib/qcwaR
 google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo=
 google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c=
 google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38=
-google.golang.org/grpc v1.21.0/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM=
 google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM=
 google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg=
 google.golang.org/grpc v1.26.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk=
@@ -640,7 +594,6 @@ google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzi
 google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU=
 google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU=
 google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU=
-google.golang.org/protobuf v1.24.0/go.mod h1:r/3tXBNzIEhYS9I1OUVjXDlt8tc493IdKGjtUeSXeh4=
 google.golang.org/protobuf v1.25.0 h1:Ejskq+SyPohKW+1uil0JJMtmHCgJPJ/qWTxr8qp+R4c=
 google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c=
 gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw=
@@ -665,7 +618,6 @@ gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
 gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
 gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY=
 gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ=
-gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo=
 gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
 gopkg.in/yaml.v3 v3.0.0-20200615113413-eeeca48fe776 h1:tQIYjPdBoyREyB9XMu+nnTclpTYkz2zFM+lzLJFO4gQ=
 gopkg.in/yaml.v3 v3.0.0-20200615113413-eeeca48fe776/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
@@ -677,7 +629,6 @@ honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt
 honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k=
 k8s.io/api v0.20.2 h1:y/HR22XDZY3pniu9hIFDLpUCPq2w5eQ6aV/VFQ7uJMw=
 k8s.io/api v0.20.2/go.mod h1:d7n6Ehyzx+S+cE3VhTGfVNNqtGc/oL9DCdYYahlurV8=
-k8s.io/apimachinery v0.19.2/go.mod h1:DnPGDnARWFvYa3pMHgSxtbZb7gpzzAZ1pTfaUNDVlmA=
 k8s.io/apimachinery v0.20.2 h1:hFx6Sbt1oG0n6DZ+g4bFt5f6BoMkOjKWsQFu077M3Vg=
 k8s.io/apimachinery v0.20.2/go.mod h1:WlLqWAHZGg07AeltaI0MV5uk1Omp8xaN0JGLY6gkRpU=
 k8s.io/client-go v0.20.2 h1:uuf+iIAbfnCSw8IGAv/Rg0giM+2bOzHLOsbbrwrdhNQ=
@@ -686,10 +637,8 @@ k8s.io/gengo v0.0.0-20200413195148-3a45101e95ac/go.mod h1:ezvh/TsK7cY6rbqRK0oQQ8
 k8s.io/klog v0.3.1 h1:RVgyDHY/kFKtLqh67NvEWIgkMneNoIrdkN0CxDSQc68=
 k8s.io/klog v0.3.1/go.mod h1:Gq+BEi5rUBO/HRz0bTSXDUcqjScdoY3a9IHpCEIOOfk=
 k8s.io/klog/v2 v2.0.0/go.mod h1:PBfzABfn139FHAV07az/IF9Wp1bkk3vpT2XSJ76fSDE=
-k8s.io/klog/v2 v2.2.0/go.mod h1:Od+F08eJP+W3HUb4pSrPpgp9DGU4GzlpG/TmITuYh/Y=
 k8s.io/klog/v2 v2.4.0 h1:7+X0fUguPyrKEC4WjH8iGDg3laWgMo5tMnRTIGTTxGQ=
 k8s.io/klog/v2 v2.4.0/go.mod h1:Od+F08eJP+W3HUb4pSrPpgp9DGU4GzlpG/TmITuYh/Y=
-k8s.io/kube-openapi v0.0.0-20200805222855-6aeccd4b50c6/go.mod h1:UuqjUnNftUyPE5H64/qeyjQoUZhGpeFDVdxjTeEVN2o=
 k8s.io/kube-openapi v0.0.0-20201113171705-d219536bb9fd h1:sOHNzJIkytDF6qadMNKhhDRpc6ODik8lVC6nOur7B2c=
 k8s.io/kube-openapi v0.0.0-20201113171705-d219536bb9fd/go.mod h1:WOJ3KddDSol4tAGcJo0Tvi+dK12EcqSLqcWsryKMpfM=
 k8s.io/utils v0.0.0-20201110183641-67b214c5f920 h1:CbnUZsM497iRC5QMVkHwyl8s2tB3g7yaSHkYPkpgelw=
@@ -697,9 +646,6 @@ k8s.io/utils v0.0.0-20201110183641-67b214c5f920/go.mod h1:jPW/WVKK9YHAvNhRxK0md/
 rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8=
 rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0=
 rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA=
-sigs.k8s.io/kind v0.10.0 h1:Tm+QITIqdRd+efLOsxZHMAfLnr5K4e3/RH8MePspEXs=
-sigs.k8s.io/kind v0.10.0/go.mod h1:fb32zUw7ewC47bPwLnwhf47wd/vADtv3c38KP7sjIlo=
-sigs.k8s.io/structured-merge-diff/v4 v4.0.1/go.mod h1:bJZC9H9iH24zzfZ/41RGcq60oK1F7G282QMXDPYydCw=
 sigs.k8s.io/structured-merge-diff/v4 v4.0.2 h1:YHQV7Dajm86OuqnIR6zAelnDWBRjo+YhYV9PmGrh1s8=
 sigs.k8s.io/structured-merge-diff/v4 v4.0.2/go.mod h1:bJZC9H9iH24zzfZ/41RGcq60oK1F7G282QMXDPYydCw=
 sigs.k8s.io/yaml v1.1.0/go.mod h1:UJmg0vDUVViEyp3mgSv9WPwZCDxu4rQW1olrI1uml+o=
diff --git a/internal/k8s/endpoint_slices.go b/internal/k8s/endpoint_slices.go
new file mode 100644
index 00000000..226151ea
--- /dev/null
+++ b/internal/k8s/endpoint_slices.go
@@ -0,0 +1,29 @@
+package k8s
+
+import (
+	v1 "k8s.io/api/core/v1"
+	discovery "k8s.io/api/discovery/v1beta1"
+)
+
+type EpsOrSlices struct {
+	Type      EpsOrSliceType
+	EpVal     *v1.Endpoints
+	SlicesVal []*discovery.EndpointSlice
+}
+
+type EpsOrSliceType int
+
+const (
+	Unknown EpsOrSliceType = iota
+	Eps
+	Slices
+)
+
+// IsConditionReady tells if the conditions represent a ready state, interpreting
+// nil ready as ready
+func IsConditionReady(conditions discovery.EndpointConditions) bool {
+	if conditions.Ready == nil {
+		return true
+	}
+	return *conditions.Ready
+}
diff --git a/internal/k8s/k8s.go b/internal/k8s/k8s.go
index cceb4874..3d5edc70 100644
--- a/internal/k8s/k8s.go
+++ b/internal/k8s/k8s.go
@@ -7,12 +7,14 @@ import (
 	"errors"
 	"fmt"
 	"net/http"
+	"time"
 
 	"go.universe.tf/metallb/internal/config"
 
 	"github.com/go-kit/kit/log"
 	"github.com/prometheus/client_golang/prometheus/promhttp"
-	"k8s.io/api/core/v1"
+	v1 "k8s.io/api/core/v1"
+	discovery "k8s.io/api/discovery/v1beta1"
 	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
 	"k8s.io/apimachinery/pkg/fields"
 	"k8s.io/client-go/kubernetes"
@@ -34,18 +36,20 @@ type Client struct {
 	events record.EventRecorder
 	queue  workqueue.RateLimitingInterface
 
-	svcIndexer   cache.Indexer
-	svcInformer  cache.Controller
-	epIndexer    cache.Indexer
-	epInformer   cache.Controller
-	cmIndexer    cache.Indexer
-	cmInformer   cache.Controller
-	nodeIndexer  cache.Indexer
-	nodeInformer cache.Controller
+	svcIndexer     cache.Indexer
+	svcInformer    cache.Controller
+	epIndexer      cache.Indexer
+	epInformer     cache.Controller
+	slicesIndexer  cache.Indexer
+	slicesInformer cache.Controller
+	cmIndexer      cache.Indexer
+	cmInformer     cache.Controller
+	nodeIndexer    cache.Indexer
+	nodeInformer   cache.Controller
 
 	syncFuncs []cache.InformerSynced
 
-	serviceChanged func(log.Logger, string, *v1.Service, *v1.Endpoints) SyncState
+	serviceChanged func(log.Logger, string, *v1.Service, EpsOrSlices) SyncState
 	configChanged  func(log.Logger, *config.Config) SyncState
 	nodeChanged    func(log.Logger, *v1.Node) SyncState
 	synced         func(log.Logger)
@@ -78,7 +82,7 @@ type Config struct {
 	Logger        log.Logger
 	Kubeconfig    string
 
-	ServiceChanged func(log.Logger, string, *v1.Service, *v1.Endpoints) SyncState
+	ServiceChanged func(log.Logger, string, *v1.Service, EpsOrSlices) SyncState
 	ConfigChanged  func(log.Logger, *config.Config) SyncState
 	NodeChanged    func(log.Logger, *v1.Node) SyncState
 	Synced         func(log.Logger)
@@ -89,6 +93,8 @@ type cmKey string
 type nodeKey string
 type synced string
 
+const slicesServiceIndexName = "ServiceName"
+
 // New connects to masterAddr, using kubeconfig to authenticate.
 //
 // The client uses processName to identify itself to the cluster
@@ -157,30 +163,80 @@ func New(cfg *Config) (*Client, error) {
 		c.syncFuncs = append(c.syncFuncs, c.svcInformer.HasSynced)
 
 		if cfg.ReadEndpoints {
-			epHandlers := cache.ResourceEventHandlerFuncs{
-				AddFunc: func(obj interface{}) {
-					key, err := cache.MetaNamespaceKeyFunc(obj)
-					if err == nil {
-						c.queue.Add(svcKey(key))
-					}
-				},
-				UpdateFunc: func(old interface{}, new interface{}) {
-					key, err := cache.MetaNamespaceKeyFunc(new)
-					if err == nil {
-						c.queue.Add(svcKey(key))
-					}
-				},
-				DeleteFunc: func(obj interface{}) {
-					key, err := cache.DeletionHandlingMetaNamespaceKeyFunc(obj)
-					if err == nil {
+			if !UseEndpointSlices(c.client) {
+				epHandlers := cache.ResourceEventHandlerFuncs{
+					AddFunc: func(obj interface{}) {
+						key, err := cache.MetaNamespaceKeyFunc(obj)
+						if err == nil {
+							c.queue.Add(svcKey(key))
+						}
+					},
+					UpdateFunc: func(old interface{}, new interface{}) {
+						key, err := cache.MetaNamespaceKeyFunc(new)
+						if err == nil {
+							c.queue.Add(svcKey(key))
+						}
+					},
+					DeleteFunc: func(obj interface{}) {
+						key, err := cache.DeletionHandlingMetaNamespaceKeyFunc(obj)
+						if err == nil {
+							c.queue.Add(svcKey(key))
+						}
+					},
+				}
+				epWatcher := cache.NewListWatchFromClient(c.client.CoreV1().RESTClient(), "endpoints", v1.NamespaceAll, fields.Everything())
+				c.epIndexer, c.epInformer = cache.NewIndexerInformer(epWatcher, &v1.Endpoints{}, 0, epHandlers, cache.Indexers{})
+
+				c.syncFuncs = append(c.syncFuncs, c.epInformer.HasSynced)
+			} else {
+				c.logger.Log("op", "New", "msg", "using endpoint slices")
+				slicesHandlers := cache.ResourceEventHandlerFuncs{
+					AddFunc: func(obj interface{}) {
+						slice, ok := obj.(*discovery.EndpointSlice)
+						if !ok {
+							c.logger.Log("op", "SliceAdd", "error", "received a non EndpointSlice item")
+							return
+						}
+
+						key, err := serviceKeyForSlice(slice)
+						if err != nil {
+							return
+						}
+						c.queue.Add(key)
+					},
+					UpdateFunc: func(old interface{}, new interface{}) {
+						slice, ok := new.(*discovery.EndpointSlice)
+						if !ok {
+							c.logger.Log("op", "SliceUpdate", "error", "received a non EndpointSlice item")
+							return
+						}
+						key, err := serviceKeyForSlice(slice)
+						if err != nil {
+							c.logger.Log("op", "SliceUpdate", "error", "failed to get serviceKey for slice", "slice", slice.Name)
+							return
+						}
+						c.queue.Add(key)
+					},
+					DeleteFunc: func(obj interface{}) {
+						slice, ok := obj.(*discovery.EndpointSlice)
+						if !ok {
+							c.logger.Log("op", "SliceDelete", "error", "received a non EndpointSlice item")
+							return
+						}
+						key, err := cache.DeletionHandlingMetaNamespaceKeyFunc(slice)
+						if err != nil {
+							c.logger.Log("op", "SliceDelete", "error", err)
+							return
+						}
 						c.queue.Add(svcKey(key))
-					}
-				},
+					},
+				}
+				slicesWatcher := cache.NewListWatchFromClient(c.client.DiscoveryV1beta1().RESTClient(), "endpointslices", v1.NamespaceAll, fields.Everything())
+				c.slicesIndexer, c.slicesInformer = cache.NewIndexerInformer(slicesWatcher, &discovery.EndpointSlice{}, 5*time.Second, slicesHandlers, cache.Indexers{
+					slicesServiceIndexName: slicesServiceIndex,
+				})
+				c.syncFuncs = append(c.syncFuncs, c.slicesInformer.HasSynced)
 			}
-			epWatcher := cache.NewListWatchFromClient(c.client.CoreV1().RESTClient(), "endpoints", v1.NamespaceAll, fields.Everything())
-			c.epIndexer, c.epInformer = cache.NewIndexerInformer(epWatcher, &v1.Endpoints{}, 0, epHandlers, cache.Indexers{})
-
-			c.syncFuncs = append(c.syncFuncs, c.epInformer.HasSynced)
 		}
 	}
 
@@ -332,6 +388,9 @@ func (c *Client) Run(stopCh <-chan struct{}) error {
 	if c.epInformer != nil {
 		go c.epInformer.Run(stopCh)
 	}
+	if c.slicesInformer != nil {
+		go c.slicesInformer.Run(stopCh)
+	}
 	if c.cmInformer != nil {
 		go c.cmInformer.Run(stopCh)
 	}
@@ -410,10 +469,10 @@ func (c *Client) sync(key interface{}) SyncState {
 			return SyncStateError
 		}
 		if !exists {
-			return c.serviceChanged(l, string(k), nil, nil)
+			return c.serviceChanged(l, string(k), nil, EpsOrSlices{})
 		}
 
-		var eps *v1.Endpoints
+		epsOrSlices := EpsOrSlices{}
 		if c.epIndexer != nil {
 			epsIntf, exists, err := c.epIndexer.GetByKey(string(k))
 			if err != nil {
@@ -421,12 +480,33 @@ func (c *Client) sync(key interface{}) SyncState {
 				return SyncStateError
 			}
 			if !exists {
-				return c.serviceChanged(l, string(k), nil, nil)
+				return c.serviceChanged(l, string(k), nil, EpsOrSlices{})
 			}
-			eps = epsIntf.(*v1.Endpoints)
-		}
 
-		return c.serviceChanged(l, string(k), svc.(*v1.Service), eps)
+			eps := epsIntf.(*v1.Endpoints)
+			epsOrSlices.EpVal = eps.DeepCopy()
+			epsOrSlices.Type = Eps
+		}
+		if c.slicesIndexer != nil {
+			slicesIntf, err := c.slicesIndexer.ByIndex(slicesServiceIndexName, string(k))
+			if err != nil {
+				l.Log("op", "getEndpointSlices", "error", err, "msg", "failed to get endpoints slices")
+				return SyncStateError
+			}
+			if len(slicesIntf) == 0 {
+				return c.serviceChanged(l, string(k), nil, EpsOrSlices{})
+			}
+			epsOrSlices.SlicesVal = make([]*discovery.EndpointSlice, 0)
+			for _, s := range slicesIntf {
+				slice, ok := s.(*discovery.EndpointSlice)
+				if !ok {
+					continue
+				}
+				epsOrSlices.SlicesVal = append(epsOrSlices.SlicesVal, slice.DeepCopy())
+			}
+			epsOrSlices.Type = Slices
+		}
+		return c.serviceChanged(l, string(k), svc.(*v1.Service), epsOrSlices)
 
 	case cmKey:
 		l := log.With(c.logger, "configmap", string(k))
@@ -489,3 +569,46 @@ func (c *Client) sync(key interface{}) SyncState {
 		panic(fmt.Errorf("unknown key type for %#v (%T)", key, key))
 	}
 }
+
+func serviceKeyForSlice(endpointSlice *discovery.EndpointSlice) (svcKey, error) {
+	if endpointSlice == nil {
+		return "", fmt.Errorf("nil EndpointSlice")
+	}
+	serviceName, err := serviceNameForSlice(endpointSlice)
+	if err != nil {
+		return "", err
+	}
+	return svcKey(fmt.Sprintf("%s/%s", endpointSlice.Namespace, serviceName)), nil
+}
+
+func slicesServiceIndex(obj interface{}) ([]string, error) {
+	endpointSlice, ok := obj.(*discovery.EndpointSlice)
+	if !ok {
+		return nil, fmt.Errorf("Passed object is not a slice")
+	}
+	serviceKey, err := serviceKeyForSlice(endpointSlice)
+	if err != nil {
+		return nil, err
+	}
+	return []string{string(serviceKey)}, nil
+}
+
+func serviceNameForSlice(endpointSlice *discovery.EndpointSlice) (string, error) {
+	serviceName, ok := endpointSlice.Labels["kubernetes.io/service-name"]
+	if !ok || serviceName == "" {
+		return "", fmt.Errorf("endpointSlice missing %s label", "kubernetes.io/service-name")
+	}
+	return serviceName, nil
+}
+
+// UseEndpointSlices detect if Endpoints Slices are enabled in the cluster
+func UseEndpointSlices(kubeClient kubernetes.Interface) bool {
+	if _, err := kubeClient.Discovery().ServerResourcesForGroupVersion(discovery.SchemeGroupVersion.String()); err != nil {
+		return false
+	}
+	// this is needed to check if ep slices are enabled on the cluster. In 1.17 the resources are there but disabled by default
+	if _, err := kubeClient.DiscoveryV1beta1().EndpointSlices("default").Get(context.Background(), "kubernetes", metav1.GetOptions{}); err != nil {
+		return false
+	}
+	return true
+}
diff --git a/manifests/metallb.yaml b/manifests/metallb.yaml
index 76fc648b..f48edc14 100644
--- a/manifests/metallb.yaml
+++ b/manifests/metallb.yaml
@@ -149,6 +149,13 @@ rules:
   - get
   - list
   - watch
+- apiGroups: ["discovery.k8s.io"]
+  resources:
+  - endpointslices
+  verbs:
+  - get
+  - list
+  - watch
 - apiGroups:
   - ''
   resources:
diff --git a/speaker/bgp_controller.go b/speaker/bgp_controller.go
index 67deb88f..b4e9771f 100644
--- a/speaker/bgp_controller.go
+++ b/speaker/bgp_controller.go
@@ -25,7 +25,8 @@ import (
 
 	"go.universe.tf/metallb/internal/bgp"
 	"go.universe.tf/metallb/internal/config"
-	"k8s.io/api/core/v1"
+	"go.universe.tf/metallb/internal/k8s"
+	v1 "k8s.io/api/core/v1"
 	"k8s.io/apimachinery/pkg/labels"
 
 	"github.com/go-kit/kit/log"
@@ -82,49 +83,48 @@ newPeers:
 	return c.syncPeers(l)
 }
 
-// nodeHasHealthyEndpoint return true if this node has at least one healthy endpoint.
-func nodeHasHealthyEndpoint(eps *v1.Endpoints, node string) bool {
+// hasHealthyEndpoint return true if this node has at least one healthy endpoint.
+// It only checks nodes matching the given filterNode function.
+func hasHealthyEndpoint(eps k8s.EpsOrSlices, filterNode func(*string) bool) bool {
 	ready := map[string]bool{}
-	for _, subset := range eps.Subsets {
-		for _, ep := range subset.Addresses {
-			if ep.NodeName == nil || *ep.NodeName != node {
-				continue
+	switch eps.Type {
+	case k8s.Eps:
+		for _, subset := range eps.EpVal.Subsets {
+			for _, ep := range subset.Addresses {
+				if filterNode(ep.NodeName) {
+					continue
+				}
+				if _, ok := ready[ep.IP]; !ok {
+					// Only set true if nothing else has expressed an
+					// opinion. This means that false will take precedence
+					// if there's any unready ports for a given endpoint.
+					ready[ep.IP] = true
+				}
 			}
-			if _, ok := ready[ep.IP]; !ok {
-				// Only set true if nothing else has expressed an
-				// opinion. This means that false will take precedence
-				// if there's any unready ports for a given endpoint.
-				ready[ep.IP] = true
+			for _, ep := range subset.NotReadyAddresses {
+				ready[ep.IP] = false
 			}
 		}
-		for _, ep := range subset.NotReadyAddresses {
-			ready[ep.IP] = false
-		}
-	}
-
-	for _, r := range ready {
-		if r {
-			// At least one fully healthy endpoint on this machine.
-			return true
-		}
-	}
-	return false
-}
-
-func healthyEndpointExists(eps *v1.Endpoints) bool {
-	ready := map[string]bool{}
-	for _, subset := range eps.Subsets {
-		for _, ep := range subset.Addresses {
-			if _, ok := ready[ep.IP]; !ok {
-				// Only set true if nothing else has expressed an
-				// opinion. This means that false will take precedence
-				// if there's any unready ports for a given endpoint.
-				ready[ep.IP] = true
+	case k8s.Slices:
+		for _, slice := range eps.SlicesVal {
+			for _, ep := range slice.Endpoints {
+				node := ep.Topology["kubernetes.io/hostname"]
+				if filterNode(&node) {
+					continue
+				}
+				for _, addr := range ep.Addresses {
+					if _, ok := ready[addr]; !ok && k8s.IsConditionReady(ep.Conditions) {
+						// Only set true if nothing else has expressed an
+						// opinion. This means that false will take precedence
+						// if there's any unready ports for a given endpoint.
+						ready[addr] = true
+					}
+					if !k8s.IsConditionReady(ep.Conditions) {
+						ready[addr] = false
+					}
+				}
 			}
 		}
-		for _, ep := range subset.NotReadyAddresses {
-			ready[ep.IP] = false
-		}
 	}
 
 	for _, r := range ready {
@@ -136,15 +136,22 @@ func healthyEndpointExists(eps *v1.Endpoints) bool {
 	return false
 }
 
-func (c *bgpController) ShouldAnnounce(l log.Logger, name string, svc *v1.Service, eps *v1.Endpoints) string {
+func (c *bgpController) ShouldAnnounce(l log.Logger, name string, svc *v1.Service, eps k8s.EpsOrSlices) string {
 	// Should we advertise?
 	// Yes, if externalTrafficPolicy is
 	//  Cluster && any healthy endpoint exists
 	// or
 	//  Local && there's a ready local endpoint.
-	if svc.Spec.ExternalTrafficPolicy == v1.ServiceExternalTrafficPolicyTypeLocal && !nodeHasHealthyEndpoint(eps, c.myNode) {
+	filterNode := func(toFilter *string) bool {
+		if toFilter == nil || *toFilter != c.myNode {
+			return true
+		}
+		return false
+	}
+
+	if svc.Spec.ExternalTrafficPolicy == v1.ServiceExternalTrafficPolicyTypeLocal && !hasHealthyEndpoint(eps, filterNode) {
 		return "noLocalEndpoints"
-	} else if !healthyEndpointExists(eps) {
+	} else if !hasHealthyEndpoint(eps, func(toFilter *string) bool { return false }) {
 		return "noEndpoints"
 	}
 	return ""
diff --git a/speaker/layer2_controller.go b/speaker/layer2_controller.go
index 83e3e101..110d8736 100644
--- a/speaker/layer2_controller.go
+++ b/speaker/layer2_controller.go
@@ -22,8 +22,9 @@ import (
 
 	"github.com/go-kit/kit/log"
 	"go.universe.tf/metallb/internal/config"
+	"go.universe.tf/metallb/internal/k8s"
 	"go.universe.tf/metallb/internal/layer2"
-	"k8s.io/api/core/v1"
+	v1 "k8s.io/api/core/v1"
 )
 
 type layer2Controller struct {
@@ -41,20 +42,43 @@ func (c *layer2Controller) SetConfig(log.Logger, *config.Config) error {
 // The speakers parameter is a map with the node name as key and the readiness
 // status as value (true means ready, false means not ready).
 // If the speakers map is nil, it is ignored.
-func usableNodes(eps *v1.Endpoints, speakers map[string]bool) []string {
+func usableNodes(eps k8s.EpsOrSlices, speakers map[string]bool) []string {
 	usable := map[string]bool{}
-	for _, subset := range eps.Subsets {
-		for _, ep := range subset.Addresses {
-			if ep.NodeName == nil {
-				continue
-			}
-			if speakers != nil {
-				if ready, ok := speakers[*ep.NodeName]; !ok || !ready {
+	switch eps.Type {
+	case k8s.Eps:
+		for _, subset := range eps.EpVal.Subsets {
+			for _, ep := range subset.Addresses {
+				if ep.NodeName == nil {
 					continue
 				}
+				if speakers != nil {
+					if ready, ok := speakers[*ep.NodeName]; !ok || !ready {
+						continue
+					}
+				}
+				if _, ok := usable[*ep.NodeName]; !ok {
+					usable[*ep.NodeName] = true
+				}
 			}
-			if _, ok := usable[*ep.NodeName]; !ok {
-				usable[*ep.NodeName] = true
+		}
+	case k8s.Slices:
+		for _, slice := range eps.SlicesVal {
+			for _, ep := range slice.Endpoints {
+				if !k8s.IsConditionReady(ep.Conditions) {
+					continue
+				}
+				nodeName := ep.Topology["kubernetes.io/hostname"]
+				if nodeName == "" {
+					continue
+				}
+				if speakers != nil {
+					if ready, ok := speakers[nodeName]; !ok || !ready {
+						continue
+					}
+				}
+				if _, ok := usable[nodeName]; !ok {
+					usable[nodeName] = true
+				}
 			}
 		}
 	}
@@ -69,7 +93,7 @@ func usableNodes(eps *v1.Endpoints, speakers map[string]bool) []string {
 	return ret
 }
 
-func (c *layer2Controller) ShouldAnnounce(l log.Logger, name string, svc *v1.Service, eps *v1.Endpoints) string {
+func (c *layer2Controller) ShouldAnnounce(l log.Logger, name string, svc *v1.Service, eps k8s.EpsOrSlices) string {
 	nodes := usableNodes(eps, c.sList.UsableSpeakers())
 	// Sort the slice by the hash of node + service name. This
 	// produces an ordering of ready nodes that is unique to this
diff --git a/speaker/main.go b/speaker/main.go
index 1db042dd..a7e5f984 100644
--- a/speaker/main.go
+++ b/speaker/main.go
@@ -203,7 +203,7 @@ func newController(cfg controllerConfig) (*controller, error) {
 	return ret, nil
 }
 
-func (c *controller) SetBalancer(l gokitlog.Logger, name string, svc *v1.Service, eps *v1.Endpoints) k8s.SyncState {
+func (c *controller) SetBalancer(l gokitlog.Logger, name string, svc *v1.Service, eps k8s.EpsOrSlices) k8s.SyncState {
 	if svc == nil {
 		return c.deleteBalancer(l, name, "serviceDeleted")
 	}
@@ -367,7 +367,7 @@ func (c *controller) SetNode(l gokitlog.Logger, node *v1.Node) k8s.SyncState {
 // A Protocol can advertise an IP address.
 type Protocol interface {
 	SetConfig(gokitlog.Logger, *config.Config) error
-	ShouldAnnounce(gokitlog.Logger, string, *v1.Service, *v1.Endpoints) string
+	ShouldAnnounce(gokitlog.Logger, string, *v1.Service, k8s.EpsOrSlices) string
 	SetBalancer(gokitlog.Logger, string, net.IP, *config.Pool) error
 	DeleteBalancer(gokitlog.Logger, string, string) error
 	SetNode(gokitlog.Logger, *v1.Node) error
diff --git a/tasks.py b/tasks.py
index b1c12efb..ce8584d8 100644
--- a/tasks.py
+++ b/tasks.py
@@ -185,14 +185,17 @@ def validate_kind_version():
     "name": "name of the kind cluster to use.",
     "protocol": "Pre-configure MetalLB with the specified protocol. "
                 "Unconfigured by default. Supported: 'bgp','layer2'",
+    "node_img": "Optional node image to use for the kind cluster (e.g. kindest/node:v1.18.19)."
+                "The node image drives the kubernetes version used in kind."
 })
-def dev_env(ctx, architecture="amd64", name="kind", cni=None, protocol=None):
+def dev_env(ctx, architecture="amd64", name="kind", cni=None, protocol=None, node_img=None):
     """Build and run MetalLB in a local Kind cluster.
 
     If the cluster specified by --name (default "kind") doesn't exist,
     it is created. Then, build MetalLB docker images from the
     checkout, push them into kind, and deploy manifests/metallb.yaml
     to run those images.
+    The optional node_img parameter will be used to determine the version of the cluster.
     """
 
     validate_kind_version()
@@ -216,11 +219,14 @@ def dev_env(ctx, architecture="amd64", name="kind", cni=None, protocol=None):
             config["networking"] = {
                 "disableDefaultCNI": True,
             }
+        extra_options = ""
+        if node_img != None:
+            extra_options = "--image={}".format(node_img)
         config = yaml.dump(config).encode("utf-8")
         with tempfile.NamedTemporaryFile() as tmp:
             tmp.write(config)
             tmp.flush()
-            run("kind create cluster --name={} --config={}".format(name, tmp.name), pty=True, echo=True)
+            run("kind create cluster --name={} --config={} {}".format(name, tmp.name, extra_options), pty=True, echo=True)
 
     if mk_cluster and cni:
         run("kubectl apply -f e2etest/manifests/{}.yaml".format(cni), echo=True)
@@ -545,8 +551,9 @@ def lint(ctx, env="container"):
 
 @task(help={
     "name": "name of the kind cluster to test.",
+    "export": "where to export kind logs"
 })
-def e2etest(ctx, name="kind"):
+def e2etest(ctx, name="kind", export=None):
     """Run E2E tests against development cluster."""
     validate_kind_version()
     clusters = run("kind get clusters", hide=True).stdout.strip().splitlines()
@@ -569,3 +576,6 @@ def e2etest(ctx, name="kind"):
             "go test --provider=local -ginkgo.focus=BGP --kubeconfig={}".format(kubeconfig.name))
     else:
         print("dev-env environment not configured. Try running `inv dev-env -p <layer2/bgp>`")
+    
+    if export != None:
+        run("kind export logs {}".format(export))
diff --git a/website/content/release-notes/_index.md b/website/content/release-notes/_index.md
index e3b9a0fa..8b5c717d 100644
--- a/website/content/release-notes/_index.md
+++ b/website/content/release-notes/_index.md
@@ -17,6 +17,10 @@ New Features:
   options or `METALLB_ML_SECRET_NAME` and `METALLB_DEPLOYMENT` environment variables.
   This is already done in the manifests provided with this release.
 
+- Endpoint Slices support. Endpoint slices are the proposed and more scalable
+  way introduced in k8s to find services endpoints. From this version, MetalLB checks for
+  EndpointSlices availability and uses them, otherwise it backs up to endpoints.
+
 Bug Fixes:
 
 Changes in behavior:


Test patch:
diff --git a/controller/controller_test.go b/controller/controller_test.go
index c699f9f4..f3a99b7c 100644
--- a/controller/controller_test.go
+++ b/controller/controller_test.go
@@ -12,7 +12,7 @@ import (
 
 	"github.com/go-kit/kit/log"
 	"github.com/google/go-cmp/cmp"
-	"k8s.io/api/core/v1"
+	v1 "k8s.io/api/core/v1"
 	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
 )
 
@@ -486,7 +486,7 @@ func TestControllerMutation(t *testing.T) {
 			t.Logf("Running case %q", test.desc)
 			k.reset()
 
-			if c.SetBalancer(l, "test", test.in, nil) == k8s.SyncStateError {
+			if c.SetBalancer(l, "test", test.in, k8s.EpsOrSlices{}) == k8s.SyncStateError {
 				t.Errorf("%q: SetBalancer returned error", test.desc)
 				continue
 			}
@@ -549,7 +549,7 @@ func TestControllerConfig(t *testing.T) {
 			ClusterIP: "1.2.3.4",
 		},
 	}
-	if c.SetBalancer(l, "test", svc, nil) == k8s.SyncStateError {
+	if c.SetBalancer(l, "test", svc, k8s.EpsOrSlices{}) == k8s.SyncStateError {
 		t.Fatalf("SetBalancer failed")
 	}
 
@@ -567,7 +567,7 @@ func TestControllerConfig(t *testing.T) {
 	if c.SetConfig(l, &config.Config{}) == k8s.SyncStateError {
 		t.Fatalf("SetConfig with empty config failed")
 	}
-	if c.SetBalancer(l, "test", svc, nil) != k8s.SyncStateError {
+	if c.SetBalancer(l, "test", svc, k8s.EpsOrSlices{}) != k8s.SyncStateError {
 		t.Fatal("SetBalancer did not fail")
 	}
 
@@ -591,7 +591,7 @@ func TestControllerConfig(t *testing.T) {
 	if c.SetConfig(l, cfg) == k8s.SyncStateError {
 		t.Fatalf("SetConfig failed")
 	}
-	if c.SetBalancer(l, "test", svc, nil) != k8s.SyncStateError {
+	if c.SetBalancer(l, "test", svc, k8s.EpsOrSlices{}) != k8s.SyncStateError {
 		t.Fatal("SetBalancer did not fail")
 	}
 
@@ -606,7 +606,7 @@ func TestControllerConfig(t *testing.T) {
 	// Mark synced. Finally, we can allocate.
 	c.MarkSynced(l)
 
-	if c.SetBalancer(l, "test", svc, nil) == k8s.SyncStateError {
+	if c.SetBalancer(l, "test", svc, k8s.EpsOrSlices{}) == k8s.SyncStateError {
 		t.Fatalf("SetBalancer failed")
 	}
 
@@ -656,7 +656,7 @@ func TestDeleteRecyclesIP(t *testing.T) {
 			ClusterIP: "1.2.3.4",
 		},
 	}
-	if c.SetBalancer(l, "test", svc1, nil) == k8s.SyncStateError {
+	if c.SetBalancer(l, "test", svc1, k8s.EpsOrSlices{}) == k8s.SyncStateError {
 		t.Fatal("SetBalancer svc1 failed")
 	}
 	gotSvc := k.gotService(svc1)
@@ -676,7 +676,7 @@ func TestDeleteRecyclesIP(t *testing.T) {
 			ClusterIP: "1.2.3.4",
 		},
 	}
-	if c.SetBalancer(l, "test2", svc2, nil) == k8s.SyncStateError {
+	if c.SetBalancer(l, "test2", svc2, k8s.EpsOrSlices{}) == k8s.SyncStateError {
 		t.Fatal("SetBalancer svc2 failed")
 	}
 	if k.gotService(svc2) != nil {
@@ -685,12 +685,12 @@ func TestDeleteRecyclesIP(t *testing.T) {
 	k.reset()
 
 	// Deleting the first LB should tell us to reprocess all services.
-	if c.SetBalancer(l, "test", nil, nil) != k8s.SyncStateReprocessAll {
+	if c.SetBalancer(l, "test", nil, k8s.EpsOrSlices{}) != k8s.SyncStateReprocessAll {
 		t.Fatal("SetBalancer with nil LB didn't tell us to reprocess all balancers")
 	}
 
 	// Setting svc2 should now allocate correctly.
-	if c.SetBalancer(l, "test2", svc2, nil) == k8s.SyncStateError {
+	if c.SetBalancer(l, "test2", svc2, k8s.EpsOrSlices{}) == k8s.SyncStateError {
 		t.Fatal("SetBalancer svc2 failed")
 	}
 	gotSvc = k.gotService(svc2)
diff --git a/speaker/bgp_controller_test.go b/speaker/bgp_controller_test.go
index 05d20fd5..00693499 100644
--- a/speaker/bgp_controller_test.go
+++ b/speaker/bgp_controller_test.go
@@ -15,7 +15,8 @@ import (
 
 	"github.com/go-kit/kit/log"
 	"github.com/google/go-cmp/cmp"
-	"k8s.io/api/core/v1"
+	v1 "k8s.io/api/core/v1"
+	discovery "k8s.io/api/discovery/v1beta1"
 	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
 	"k8s.io/apimachinery/pkg/labels"
 )
@@ -208,7 +209,7 @@ func TestBGPSpeaker(t *testing.T) {
 		balancer string
 		config   *config.Config
 		svc      *v1.Service
-		eps      *v1.Endpoints
+		eps      k8s.EpsOrSlices
 
 		wantAds map[string][]*bgp.Advertisement
 	}{
@@ -222,21 +223,730 @@ func TestBGPSpeaker(t *testing.T) {
 				},
 				Status: statusAssigned("10.20.30.1"),
 			},
-			eps: &v1.Endpoints{
-				Subsets: []v1.EndpointSubset{
+			eps: k8s.EpsOrSlices{
+				EpVal: &v1.Endpoints{
+					Subsets: []v1.EndpointSubset{
+						{
+							Addresses: []v1.EndpointAddress{
+								{
+									IP:       "2.3.4.5",
+									NodeName: strptr("iris"),
+								},
+							},
+						},
+					},
+				},
+				Type: k8s.Eps,
+			},
+			wantAds: map[string][]*bgp.Advertisement{},
+		},
+
+		{
+			desc: "One peer, no services",
+			config: &config.Config{
+				Peers: []*config.Peer{
+					{
+						Addr:          net.ParseIP("1.2.3.4"),
+						NodeSelectors: []labels.Selector{labels.Everything()},
+					},
+				},
+				Pools: map[string]*config.Pool{
+					"default": {
+						Protocol: config.BGP,
+						CIDR:     []*net.IPNet{ipnet("10.20.30.0/24")},
+						BGPAdvertisements: []*config.BGPAdvertisement{
+							{
+								AggregationLength: 32,
+							},
+						},
+					},
+				},
+			},
+			wantAds: map[string][]*bgp.Advertisement{
+				"1.2.3.4:0": nil,
+			},
+		},
+
+		{
+			desc:     "Add service, not an LB",
+			balancer: "test1",
+			svc: &v1.Service{
+				Spec: v1.ServiceSpec{
+					Type:                  "ClusterIP",
+					ExternalTrafficPolicy: "Cluster",
+				},
+			},
+			eps: k8s.EpsOrSlices{
+				EpVal: &v1.Endpoints{
+					Subsets: []v1.EndpointSubset{
+						{
+							Addresses: []v1.EndpointAddress{
+								{
+									IP:       "2.3.4.5",
+									NodeName: strptr("pandora"),
+								},
+							},
+						},
+					},
+				},
+				Type: k8s.Eps,
+			},
+			wantAds: map[string][]*bgp.Advertisement{
+				"1.2.3.4:0": nil,
+			},
+		},
+
+		{
+			desc:     "Add service, it's an LB!",
+			balancer: "test1",
+			svc: &v1.Service{
+				Spec: v1.ServiceSpec{
+					Type:                  "LoadBalancer",
+					ExternalTrafficPolicy: "Cluster",
+				},
+				Status: statusAssigned("10.20.30.1"),
+			},
+			eps: k8s.EpsOrSlices{
+				EpVal: &v1.Endpoints{
+					Subsets: []v1.EndpointSubset{
+						{
+							Addresses: []v1.EndpointAddress{
+								{
+									IP:       "2.3.4.5",
+									NodeName: strptr("iris"),
+								},
+							},
+						},
+					},
+				},
+				Type: k8s.Eps,
+			},
+			wantAds: map[string][]*bgp.Advertisement{
+				"1.2.3.4:0": {
+					{
+						Prefix: ipnet("10.20.30.1/32"),
+					},
+				},
+			},
+		},
+
+		{
+			desc:     "LB switches to local traffic policy, endpoint isn't on our node",
+			balancer: "test1",
+			svc: &v1.Service{
+				Spec: v1.ServiceSpec{
+					Type:                  "LoadBalancer",
+					ExternalTrafficPolicy: "Local",
+				},
+				Status: statusAssigned("10.20.30.1"),
+			},
+			eps: k8s.EpsOrSlices{
+				EpVal: &v1.Endpoints{
+					Subsets: []v1.EndpointSubset{
+						{
+							Addresses: []v1.EndpointAddress{
+								{
+									IP:       "2.3.4.5",
+									NodeName: strptr("iris"),
+								},
+							},
+						},
+					},
+				},
+				Type: k8s.Eps,
+			},
+			wantAds: map[string][]*bgp.Advertisement{
+				"1.2.3.4:0": nil,
+			},
+		},
+
+		{
+			desc:     "New endpoint, on our node",
+			balancer: "test1",
+			svc: &v1.Service{
+				Spec: v1.ServiceSpec{
+					Type:                  "LoadBalancer",
+					ExternalTrafficPolicy: "Local",
+				},
+				Status: statusAssigned("10.20.30.1"),
+			},
+			eps: k8s.EpsOrSlices{
+				EpVal: &v1.Endpoints{
+					Subsets: []v1.EndpointSubset{
+						{
+							Addresses: []v1.EndpointAddress{
+								{
+									IP:       "2.3.4.5",
+									NodeName: strptr("iris"),
+								},
+								{
+									IP:       "2.3.4.6",
+									NodeName: strptr("pandora"),
+								},
+							},
+						},
+					},
+				},
+				Type: k8s.Eps,
+			},
+			wantAds: map[string][]*bgp.Advertisement{
+				"1.2.3.4:0": {
+					{
+						Prefix: ipnet("10.20.30.1/32"),
+					},
+				},
+			},
+		},
+
+		{
+			desc:     "Endpoint on our node has some unready ports",
+			balancer: "test1",
+			svc: &v1.Service{
+				Spec: v1.ServiceSpec{
+					Type:                  "LoadBalancer",
+					ExternalTrafficPolicy: "Local",
+				},
+				Status: statusAssigned("10.20.30.1"),
+			},
+			eps: k8s.EpsOrSlices{
+				EpVal: &v1.Endpoints{
+					Subsets: []v1.EndpointSubset{
+						{
+							Addresses: []v1.EndpointAddress{
+								{
+									IP:       "2.3.4.5",
+									NodeName: strptr("iris"),
+								},
+								{
+									IP:       "2.3.4.6",
+									NodeName: strptr("pandora"),
+								},
+							},
+						},
+						{
+							Addresses: []v1.EndpointAddress{
+								{
+									IP:       "2.3.4.5",
+									NodeName: strptr("iris"),
+								},
+							},
+							NotReadyAddresses: []v1.EndpointAddress{
+								{
+									IP:       "2.3.4.6",
+									NodeName: strptr("pandora"),
+								},
+							},
+						},
+					},
+				},
+				Type: k8s.Eps,
+			},
+			wantAds: map[string][]*bgp.Advertisement{
+				"1.2.3.4:0": nil,
+			},
+		},
+
+		{
+			desc:     "Endpoint list is empty",
+			balancer: "test1",
+			svc: &v1.Service{
+				Spec: v1.ServiceSpec{
+					Type:                  "LoadBalancer",
+					ExternalTrafficPolicy: "Cluster",
+				},
+				Status: statusAssigned("10.20.30.1"),
+			},
+			eps: k8s.EpsOrSlices{},
+			wantAds: map[string][]*bgp.Advertisement{
+				"1.2.3.4:0": nil,
+			},
+		},
+
+		{
+			desc:     "Endpoint list contains only unhealthy endpoints",
+			balancer: "test1",
+			svc: &v1.Service{
+				Spec: v1.ServiceSpec{
+					Type:                  "LoadBalancer",
+					ExternalTrafficPolicy: "Cluster",
+				},
+				Status: statusAssigned("10.20.30.1"),
+			},
+			eps: k8s.EpsOrSlices{
+				EpVal: &v1.Endpoints{
+					Subsets: []v1.EndpointSubset{
+						{
+							NotReadyAddresses: []v1.EndpointAddress{
+								{
+									IP:       "2.3.4.5",
+									NodeName: strptr("iris"),
+								},
+							},
+						},
+					},
+				},
+				Type: k8s.Eps,
+			},
+			wantAds: map[string][]*bgp.Advertisement{
+				"1.2.3.4:0": nil,
+			},
+		},
+
+		{
+			desc:     "Endpoint list contains some unhealthy endpoints",
+			balancer: "test1",
+			svc: &v1.Service{
+				Spec: v1.ServiceSpec{
+					Type:                  "LoadBalancer",
+					ExternalTrafficPolicy: "Cluster",
+				},
+				Status: statusAssigned("10.20.30.1"),
+			},
+			eps: k8s.EpsOrSlices{
+				EpVal: &v1.Endpoints{
+					Subsets: []v1.EndpointSubset{
+						{
+							Addresses: []v1.EndpointAddress{
+								{
+									IP:       "2.3.4.5",
+									NodeName: strptr("iris"),
+								},
+							},
+							NotReadyAddresses: []v1.EndpointAddress{
+								{
+									IP:       "2.3.4.6",
+									NodeName: strptr("pandora"),
+								},
+							},
+						},
+					},
+				},
+				Type: k8s.Eps,
+			},
+			wantAds: map[string][]*bgp.Advertisement{
+				"1.2.3.4:0": {
+					{
+						Prefix: ipnet("10.20.30.1/32"),
+					},
+				},
+			},
+		},
+
+		{
+			desc: "Multiple advertisement config",
+			config: &config.Config{
+				Peers: []*config.Peer{
+					{
+						Addr:          net.ParseIP("1.2.3.4"),
+						NodeSelectors: []labels.Selector{labels.Everything()},
+					},
+				},
+				Pools: map[string]*config.Pool{
+					"default": {
+						Protocol: config.BGP,
+						CIDR:     []*net.IPNet{ipnet("10.20.30.0/24")},
+						BGPAdvertisements: []*config.BGPAdvertisement{
+							{
+								AggregationLength: 32,
+								LocalPref:         100,
+								Communities:       map[uint32]bool{1234: true, 2345: true},
+							},
+							{
+								AggregationLength: 24,
+								LocalPref:         1000,
+							},
+						},
+					},
+				},
+			},
+			balancer: "test1",
+			svc: &v1.Service{
+				Spec: v1.ServiceSpec{
+					Type:                  "LoadBalancer",
+					ExternalTrafficPolicy: "Cluster",
+				},
+				Status: statusAssigned("10.20.30.1"),
+			},
+			eps: k8s.EpsOrSlices{
+				EpVal: &v1.Endpoints{
+					Subsets: []v1.EndpointSubset{
+						{
+							Addresses: []v1.EndpointAddress{
+								{
+									IP:       "2.3.4.5",
+									NodeName: strptr("iris"),
+								},
+							},
+						},
+					},
+				},
+				Type: k8s.Eps,
+			},
+			wantAds: map[string][]*bgp.Advertisement{
+				"1.2.3.4:0": {
+					{
+						Prefix:      ipnet("10.20.30.1/32"),
+						LocalPref:   100,
+						Communities: []uint32{1234, 2345},
+					},
+					{
+						Prefix:    ipnet("10.20.30.0/24"),
+						LocalPref: 1000,
+					},
+				},
+			},
+		},
+
+		{
+			desc: "Multiple peers",
+			config: &config.Config{
+				Peers: []*config.Peer{
+					{
+						Addr:          net.ParseIP("1.2.3.4"),
+						NodeSelectors: []labels.Selector{labels.Everything()},
+					},
+					{
+						Addr:          net.ParseIP("1.2.3.5"),
+						NodeSelectors: []labels.Selector{labels.Everything()},
+					},
+				},
+				Pools: map[string]*config.Pool{
+					"default": {
+						Protocol: config.BGP,
+						CIDR:     []*net.IPNet{ipnet("10.20.30.0/24")},
+						BGPAdvertisements: []*config.BGPAdvertisement{
+							{
+								AggregationLength: 32,
+							},
+						},
+					},
+				},
+			},
+			balancer: "test1",
+			svc: &v1.Service{
+				Spec: v1.ServiceSpec{
+					Type:                  "LoadBalancer",
+					ExternalTrafficPolicy: "Cluster",
+				},
+				Status: statusAssigned("10.20.30.1"),
+			},
+			eps: k8s.EpsOrSlices{
+				EpVal: &v1.Endpoints{
+					Subsets: []v1.EndpointSubset{
+						{
+							Addresses: []v1.EndpointAddress{
+								{
+									IP:       "2.3.4.5",
+									NodeName: strptr("iris"),
+								},
+							},
+						},
+					},
+				},
+				Type: k8s.Eps,
+			},
+			wantAds: map[string][]*bgp.Advertisement{
+				"1.2.3.4:0": {
+					{
+						Prefix: ipnet("10.20.30.1/32"),
+					},
+				},
+				"1.2.3.5:0": {
+					{
+						Prefix: ipnet("10.20.30.1/32"),
+					},
+				},
+			},
+		},
+
+		{
+			desc:     "Second balancer, no ingress assigned",
+			balancer: "test2",
+			svc: &v1.Service{
+				Spec: v1.ServiceSpec{
+					Type:                  "LoadBalancer",
+					ExternalTrafficPolicy: "Cluster",
+				},
+			},
+			eps: k8s.EpsOrSlices{
+				EpVal: &v1.Endpoints{
+					Subsets: []v1.EndpointSubset{
+						{
+							Addresses: []v1.EndpointAddress{
+								{
+									IP:       "2.3.4.5",
+									NodeName: strptr("iris"),
+								},
+							},
+						},
+					},
+				},
+				Type: k8s.Eps,
+			},
+			wantAds: map[string][]*bgp.Advertisement{
+				"1.2.3.4:0": {
+					{
+						Prefix: ipnet("10.20.30.1/32"),
+					},
+				},
+				"1.2.3.5:0": {
+					{
+						Prefix: ipnet("10.20.30.1/32"),
+					},
+				},
+			},
+		},
+
+		{
+			desc:     "Second balancer, ingress gets assigned",
+			balancer: "test2",
+			svc: &v1.Service{
+				Spec: v1.ServiceSpec{
+					Type:                  "LoadBalancer",
+					ExternalTrafficPolicy: "Cluster",
+				},
+				Status: statusAssigned("10.20.30.5"),
+			},
+			eps: k8s.EpsOrSlices{
+				EpVal: &v1.Endpoints{
+					Subsets: []v1.EndpointSubset{
+						{
+							Addresses: []v1.EndpointAddress{
+								{
+									IP:       "2.3.4.5",
+									NodeName: strptr("iris"),
+								},
+							},
+						},
+					},
+				},
+				Type: k8s.Eps,
+			},
+			wantAds: map[string][]*bgp.Advertisement{
+				"1.2.3.4:0": {
+					{
+						Prefix: ipnet("10.20.30.1/32"),
+					},
+					{
+						Prefix: ipnet("10.20.30.5/32"),
+					},
+				},
+				"1.2.3.5:0": {
+					{
+						Prefix: ipnet("10.20.30.1/32"),
+					},
+					{
+						Prefix: ipnet("10.20.30.5/32"),
+					},
+				},
+			},
+		},
+
+		{
+			desc:     "Second balancer, ingress shared with first",
+			balancer: "test2",
+			svc: &v1.Service{
+				Spec: v1.ServiceSpec{
+					Type:                  "LoadBalancer",
+					ExternalTrafficPolicy: "Cluster",
+				},
+				Status: statusAssigned("10.20.30.1"),
+			},
+			eps: k8s.EpsOrSlices{
+				EpVal: &v1.Endpoints{
+					Subsets: []v1.EndpointSubset{
+						{
+							Addresses: []v1.EndpointAddress{
+								{
+									IP:       "2.3.4.5",
+									NodeName: strptr("iris"),
+								},
+							},
+						},
+					},
+				},
+				Type: k8s.Eps,
+			},
+			wantAds: map[string][]*bgp.Advertisement{
+				"1.2.3.4:0": {
+					// Prefixes duplicated because the dedupe happens
+					// inside the real BGP session.
+					{
+						Prefix: ipnet("10.20.30.1/32"),
+					},
+					{
+						Prefix: ipnet("10.20.30.1/32"),
+					},
+				},
+				"1.2.3.5:0": {
+					{
+						Prefix: ipnet("10.20.30.1/32"),
+					},
+					{
+						Prefix: ipnet("10.20.30.1/32"),
+					},
+				},
+			},
+		},
+
+		{
+			desc:     "Delete svc",
+			balancer: "test1",
+			wantAds: map[string][]*bgp.Advertisement{
+				"1.2.3.4:0": {
+					{
+						Prefix: ipnet("10.20.30.1/32"),
+					},
+				},
+				"1.2.3.5:0": {
+					{
+						Prefix: ipnet("10.20.30.1/32"),
+					},
+				},
+			},
+		},
+
+		{
+			desc: "Delete peer",
+			config: &config.Config{
+				Peers: []*config.Peer{
 					{
-						Addresses: []v1.EndpointAddress{
+						Addr:          net.ParseIP("1.2.3.5"),
+						NodeSelectors: []labels.Selector{labels.Everything()},
+					},
+				},
+				Pools: map[string]*config.Pool{
+					"default": {
+						Protocol: config.BGP,
+						CIDR:     []*net.IPNet{ipnet("10.20.30.0/24")},
+						BGPAdvertisements: []*config.BGPAdvertisement{
 							{
-								IP:       "2.3.4.5",
-								NodeName: strptr("iris"),
+								AggregationLength: 32,
 							},
 						},
 					},
 				},
 			},
-			wantAds: map[string][]*bgp.Advertisement{},
+			balancer: "test2",
+			svc: &v1.Service{
+				Spec: v1.ServiceSpec{
+					Type:                  "LoadBalancer",
+					ExternalTrafficPolicy: "Cluster",
+				},
+				Status: statusAssigned("10.20.30.1"),
+			},
+			eps: k8s.EpsOrSlices{
+				EpVal: &v1.Endpoints{
+					Subsets: []v1.EndpointSubset{
+						{
+							Addresses: []v1.EndpointAddress{
+								{
+									IP:       "2.3.4.5",
+									NodeName: strptr("iris"),
+								},
+							},
+						},
+					},
+				},
+				Type: k8s.Eps,
+			},
+			wantAds: map[string][]*bgp.Advertisement{
+				"1.2.3.5:0": {
+					{
+						Prefix: ipnet("10.20.30.1/32"),
+					},
+				},
+			},
+		},
+
+		{
+			desc:     "Delete second svc",
+			balancer: "test2",
+			wantAds: map[string][]*bgp.Advertisement{
+				"1.2.3.5:0": nil,
+			},
 		},
+	}
+
+	l := log.NewNopLogger()
+	for _, test := range tests {
+		if test.config != nil {
+			if c.SetConfig(l, test.config) == k8s.SyncStateError {
+				t.Errorf("%q: SetConfig failed", test.desc)
+			}
+		}
+		if test.balancer != "" {
+			if c.SetBalancer(l, test.balancer, test.svc, test.eps) == k8s.SyncStateError {
+				t.Errorf("%q: SetBalancer failed", test.desc)
+			}
+		}
+
+		gotAds := b.Ads()
+		sortAds(test.wantAds)
+		sortAds(gotAds)
+		if diff := cmp.Diff(test.wantAds, gotAds); diff != "" {
+			t.Errorf("%q: unexpected advertisement state (-want +got)\n%s", test.desc, diff)
+		}
+	}
+}
+
+func TestBGPSpeakerEPSlices(t *testing.T) {
+	b := &fakeBGP{
+		t:      t,
+		gotAds: map[string][]*bgp.Advertisement{},
+	}
+	newBGP = b.New
+	c, err := newController(controllerConfig{
+		MyNode:        "pandora",
+		DisableLayer2: true,
+	})
+	if err != nil {
+		t.Fatalf("creating controller: %s", err)
+	}
+	c.client = &testK8S{t: t}
+
+	tests := []struct {
+		desc string
+
+		balancer string
+		config   *config.Config
+		svc      *v1.Service
+		eps      k8s.EpsOrSlices
 
+		wantAds map[string][]*bgp.Advertisement
+	}{
+		{
+			desc:     "Service ignored, no config",
+			balancer: "test1",
+			svc: &v1.Service{
+				Spec: v1.ServiceSpec{
+					Type:                  "LoadBalancer",
+					ExternalTrafficPolicy: "Cluster",
+				},
+				Status: statusAssigned("10.20.30.1"),
+			},
+			eps: k8s.EpsOrSlices{
+				SlicesVal: []*discovery.EndpointSlice{
+					{
+						Endpoints: []discovery.Endpoint{
+							{
+								Addresses: []string{
+									"2.3.4.5",
+								},
+								Topology: map[string]string{
+									"kubernetes.io/hostname": "iris",
+								},
+								Conditions: discovery.EndpointConditions{
+									Ready: boolPtr(true),
+								},
+							},
+						},
+					},
+				},
+				Type: k8s.Slices,
+			},
+			wantAds: map[string][]*bgp.Advertisement{},
+		},
 		{
 			desc: "One peer, no services",
 			config: &config.Config{
@@ -262,7 +972,6 @@ func TestBGPSpeaker(t *testing.T) {
 				"1.2.3.4:0": nil,
 			},
 		},
-
 		{
 			desc:     "Add service, not an LB",
 			balancer: "test1",
@@ -272,17 +981,25 @@ func TestBGPSpeaker(t *testing.T) {
 					ExternalTrafficPolicy: "Cluster",
 				},
 			},
-			eps: &v1.Endpoints{
-				Subsets: []v1.EndpointSubset{
+			eps: k8s.EpsOrSlices{
+				SlicesVal: []*discovery.EndpointSlice{
 					{
-						Addresses: []v1.EndpointAddress{
+						Endpoints: []discovery.Endpoint{
 							{
-								IP:       "2.3.4.5",
-								NodeName: strptr("pandora"),
+								Addresses: []string{
+									"2.3.4.5",
+								},
+								Topology: map[string]string{
+									"kubernetes.io/hostname": "pandora",
+								},
+								Conditions: discovery.EndpointConditions{
+									Ready: boolPtr(true),
+								},
 							},
 						},
 					},
 				},
+				Type: k8s.Slices,
 			},
 			wantAds: map[string][]*bgp.Advertisement{
 				"1.2.3.4:0": nil,
@@ -299,17 +1016,25 @@ func TestBGPSpeaker(t *testing.T) {
 				},
 				Status: statusAssigned("10.20.30.1"),
 			},
-			eps: &v1.Endpoints{
-				Subsets: []v1.EndpointSubset{
+			eps: k8s.EpsOrSlices{
+				SlicesVal: []*discovery.EndpointSlice{
 					{
-						Addresses: []v1.EndpointAddress{
+						Endpoints: []discovery.Endpoint{
 							{
-								IP:       "2.3.4.5",
-								NodeName: strptr("iris"),
+								Addresses: []string{
+									"2.3.4.5",
+								},
+								Topology: map[string]string{
+									"kubernetes.io/hostname": "iris",
+								},
+								Conditions: discovery.EndpointConditions{
+									Ready: boolPtr(true),
+								},
 							},
 						},
 					},
 				},
+				Type: k8s.Slices,
 			},
 			wantAds: map[string][]*bgp.Advertisement{
 				"1.2.3.4:0": {
@@ -330,17 +1055,25 @@ func TestBGPSpeaker(t *testing.T) {
 				},
 				Status: statusAssigned("10.20.30.1"),
 			},
-			eps: &v1.Endpoints{
-				Subsets: []v1.EndpointSubset{
+			eps: k8s.EpsOrSlices{
+				SlicesVal: []*discovery.EndpointSlice{
 					{
-						Addresses: []v1.EndpointAddress{
+						Endpoints: []discovery.Endpoint{
 							{
-								IP:       "2.3.4.5",
-								NodeName: strptr("iris"),
+								Addresses: []string{
+									"2.3.4.5",
+								},
+								Topology: map[string]string{
+									"kubernetes.io/hostname": "iris",
+								},
+								Conditions: discovery.EndpointConditions{
+									Ready: boolPtr(true),
+								},
 							},
 						},
 					},
 				},
+				Type: k8s.Slices,
 			},
 			wantAds: map[string][]*bgp.Advertisement{
 				"1.2.3.4:0": nil,
@@ -357,21 +1090,40 @@ func TestBGPSpeaker(t *testing.T) {
 				},
 				Status: statusAssigned("10.20.30.1"),
 			},
-			eps: &v1.Endpoints{
-				Subsets: []v1.EndpointSubset{
+			eps: k8s.EpsOrSlices{
+				SlicesVal: []*discovery.EndpointSlice{
 					{
-						Addresses: []v1.EndpointAddress{
+						Endpoints: []discovery.Endpoint{
 							{
-								IP:       "2.3.4.5",
-								NodeName: strptr("iris"),
+								Addresses: []string{
+									"2.3.4.5",
+								},
+								Topology: map[string]string{
+									"kubernetes.io/hostname": "iris",
+								},
+								Conditions: discovery.EndpointConditions{
+									Ready: boolPtr(true),
+								},
 							},
+						},
+					},
+					{
+						Endpoints: []discovery.Endpoint{
 							{
-								IP:       "2.3.4.6",
-								NodeName: strptr("pandora"),
+								Addresses: []string{
+									"2.3.4.6",
+								},
+								Topology: map[string]string{
+									"kubernetes.io/hostname": "pandora",
+								},
+								Conditions: discovery.EndpointConditions{
+									Ready: boolPtr(true),
+								},
 							},
 						},
 					},
 				},
+				Type: k8s.Slices,
 			},
 			wantAds: map[string][]*bgp.Advertisement{
 				"1.2.3.4:0": {
@@ -392,35 +1144,70 @@ func TestBGPSpeaker(t *testing.T) {
 				},
 				Status: statusAssigned("10.20.30.1"),
 			},
-			eps: &v1.Endpoints{
-				Subsets: []v1.EndpointSubset{
+			eps: k8s.EpsOrSlices{
+				SlicesVal: []*discovery.EndpointSlice{
 					{
-						Addresses: []v1.EndpointAddress{
+						Endpoints: []discovery.Endpoint{
 							{
-								IP:       "2.3.4.5",
-								NodeName: strptr("iris"),
+								Addresses: []string{
+									"2.3.4.5",
+								},
+								Topology: map[string]string{
+									"kubernetes.io/hostname": "iris",
+								},
+								Conditions: discovery.EndpointConditions{
+									Ready: boolPtr(true),
+								},
 							},
+						},
+					},
+					{
+						Endpoints: []discovery.Endpoint{
 							{
-								IP:       "2.3.4.6",
-								NodeName: strptr("pandora"),
+								Addresses: []string{
+									"2.3.4.6",
+								},
+								Topology: map[string]string{
+									"kubernetes.io/hostname": "pandora",
+								},
+								Conditions: discovery.EndpointConditions{
+									Ready: boolPtr(false),
+								},
 							},
 						},
 					},
 					{
-						Addresses: []v1.EndpointAddress{
+						Endpoints: []discovery.Endpoint{
 							{
-								IP:       "2.3.4.5",
-								NodeName: strptr("iris"),
+								Addresses: []string{
+									"2.3.4.7",
+								},
+								Topology: map[string]string{
+									"kubernetes.io/hostname": "iris",
+								},
+								Conditions: discovery.EndpointConditions{
+									Ready: boolPtr(true),
+								},
 							},
 						},
-						NotReadyAddresses: []v1.EndpointAddress{
+					},
+					{
+						Endpoints: []discovery.Endpoint{
 							{
-								IP:       "2.3.4.6",
-								NodeName: strptr("pandora"),
+								Addresses: []string{
+									"2.3.4.6",
+								},
+								Topology: map[string]string{
+									"kubernetes.io/hostname": "pandora",
+								},
+								Conditions: discovery.EndpointConditions{
+									Ready: boolPtr(true),
+								},
 							},
 						},
 					},
 				},
+				Type: k8s.Slices,
 			},
 			wantAds: map[string][]*bgp.Advertisement{
 				"1.2.3.4:0": nil,
@@ -437,7 +1224,7 @@ func TestBGPSpeaker(t *testing.T) {
 				},
 				Status: statusAssigned("10.20.30.1"),
 			},
-			eps: &v1.Endpoints{},
+			eps: k8s.EpsOrSlices{},
 			wantAds: map[string][]*bgp.Advertisement{
 				"1.2.3.4:0": nil,
 			},
@@ -453,17 +1240,25 @@ func TestBGPSpeaker(t *testing.T) {
 				},
 				Status: statusAssigned("10.20.30.1"),
 			},
-			eps: &v1.Endpoints{
-				Subsets: []v1.EndpointSubset{
+			eps: k8s.EpsOrSlices{
+				SlicesVal: []*discovery.EndpointSlice{
 					{
-						NotReadyAddresses: []v1.EndpointAddress{
+						Endpoints: []discovery.Endpoint{
 							{
-								IP:       "2.3.4.5",
-								NodeName: strptr("iris"),
+								Addresses: []string{
+									"2.3.4.5",
+								},
+								Topology: map[string]string{
+									"kubernetes.io/hostname": "iris",
+								},
+								Conditions: discovery.EndpointConditions{
+									Ready: boolPtr(false),
+								},
 							},
 						},
 					},
 				},
+				Type: k8s.Slices,
 			},
 			wantAds: map[string][]*bgp.Advertisement{
 				"1.2.3.4:0": nil,
@@ -480,23 +1275,36 @@ func TestBGPSpeaker(t *testing.T) {
 				},
 				Status: statusAssigned("10.20.30.1"),
 			},
-			eps: &v1.Endpoints{
-				Subsets: []v1.EndpointSubset{
+			eps: k8s.EpsOrSlices{
+				SlicesVal: []*discovery.EndpointSlice{
 					{
-						Addresses: []v1.EndpointAddress{
+						Endpoints: []discovery.Endpoint{
 							{
-								IP:       "2.3.4.5",
-								NodeName: strptr("iris"),
+								Addresses: []string{
+									"2.3.4.5",
+								},
+								Topology: map[string]string{
+									"kubernetes.io/hostname": "iris",
+								},
+								Conditions: discovery.EndpointConditions{
+									Ready: boolPtr(true),
+								},
 							},
-						},
-						NotReadyAddresses: []v1.EndpointAddress{
 							{
-								IP:       "2.3.4.6",
-								NodeName: strptr("pandora"),
+								Addresses: []string{
+									"2.3.4.6",
+								},
+								Topology: map[string]string{
+									"kubernetes.io/hostname": "pandora",
+								},
+								Conditions: discovery.EndpointConditions{
+									Ready: boolPtr(false),
+								},
 							},
 						},
 					},
 				},
+				Type: k8s.Slices,
 			},
 			wantAds: map[string][]*bgp.Advertisement{
 				"1.2.3.4:0": {
@@ -542,17 +1350,25 @@ func TestBGPSpeaker(t *testing.T) {
 				},
 				Status: statusAssigned("10.20.30.1"),
 			},
-			eps: &v1.Endpoints{
-				Subsets: []v1.EndpointSubset{
+			eps: k8s.EpsOrSlices{
+				SlicesVal: []*discovery.EndpointSlice{
 					{
-						Addresses: []v1.EndpointAddress{
+						Endpoints: []discovery.Endpoint{
 							{
-								IP:       "2.3.4.5",
-								NodeName: strptr("iris"),
+								Addresses: []string{
+									"2.3.4.5",
+								},
+								Topology: map[string]string{
+									"kubernetes.io/hostname": "iris",
+								},
+								Conditions: discovery.EndpointConditions{
+									Ready: boolPtr(true),
+								},
 							},
 						},
 					},
 				},
+				Type: k8s.Slices,
 			},
 			wantAds: map[string][]*bgp.Advertisement{
 				"1.2.3.4:0": {
@@ -602,17 +1418,25 @@ func TestBGPSpeaker(t *testing.T) {
 				},
 				Status: statusAssigned("10.20.30.1"),
 			},
-			eps: &v1.Endpoints{
-				Subsets: []v1.EndpointSubset{
+			eps: k8s.EpsOrSlices{
+				SlicesVal: []*discovery.EndpointSlice{
 					{
-						Addresses: []v1.EndpointAddress{
+						Endpoints: []discovery.Endpoint{
 							{
-								IP:       "2.3.4.5",
-								NodeName: strptr("iris"),
+								Addresses: []string{
+									"2.3.4.5",
+								},
+								Topology: map[string]string{
+									"kubernetes.io/hostname": "iris",
+								},
+								Conditions: discovery.EndpointConditions{
+									Ready: boolPtr(true),
+								},
 							},
 						},
 					},
 				},
+				Type: k8s.Slices,
 			},
 			wantAds: map[string][]*bgp.Advertisement{
 				"1.2.3.4:0": {
@@ -637,17 +1461,25 @@ func TestBGPSpeaker(t *testing.T) {
 					ExternalTrafficPolicy: "Cluster",
 				},
 			},
-			eps: &v1.Endpoints{
-				Subsets: []v1.EndpointSubset{
+			eps: k8s.EpsOrSlices{
+				SlicesVal: []*discovery.EndpointSlice{
 					{
-						Addresses: []v1.EndpointAddress{
+						Endpoints: []discovery.Endpoint{
 							{
-								IP:       "2.3.4.5",
-								NodeName: strptr("iris"),
+								Addresses: []string{
+									"2.3.4.5",
+								},
+								Topology: map[string]string{
+									"kubernetes.io/hostname": "iris",
+								},
+								Conditions: discovery.EndpointConditions{
+									Ready: boolPtr(true),
+								},
 							},
 						},
 					},
 				},
+				Type: k8s.Slices,
 			},
 			wantAds: map[string][]*bgp.Advertisement{
 				"1.2.3.4:0": {
@@ -673,17 +1505,25 @@ func TestBGPSpeaker(t *testing.T) {
 				},
 				Status: statusAssigned("10.20.30.5"),
 			},
-			eps: &v1.Endpoints{
-				Subsets: []v1.EndpointSubset{
+			eps: k8s.EpsOrSlices{
+				SlicesVal: []*discovery.EndpointSlice{
 					{
-						Addresses: []v1.EndpointAddress{
+						Endpoints: []discovery.Endpoint{
 							{
-								IP:       "2.3.4.5",
-								NodeName: strptr("iris"),
+								Addresses: []string{
+									"2.3.4.5",
+								},
+								Topology: map[string]string{
+									"kubernetes.io/hostname": "iris",
+								},
+								Conditions: discovery.EndpointConditions{
+									Ready: boolPtr(true),
+								},
 							},
 						},
 					},
 				},
+				Type: k8s.Slices,
 			},
 			wantAds: map[string][]*bgp.Advertisement{
 				"1.2.3.4:0": {
@@ -715,17 +1555,25 @@ func TestBGPSpeaker(t *testing.T) {
 				},
 				Status: statusAssigned("10.20.30.1"),
 			},
-			eps: &v1.Endpoints{
-				Subsets: []v1.EndpointSubset{
+			eps: k8s.EpsOrSlices{
+				SlicesVal: []*discovery.EndpointSlice{
 					{
-						Addresses: []v1.EndpointAddress{
+						Endpoints: []discovery.Endpoint{
 							{
-								IP:       "2.3.4.5",
-								NodeName: strptr("iris"),
+								Addresses: []string{
+									"2.3.4.5",
+								},
+								Topology: map[string]string{
+									"kubernetes.io/hostname": "iris",
+								},
+								Conditions: discovery.EndpointConditions{
+									Ready: boolPtr(true),
+								},
 							},
 						},
 					},
 				},
+				Type: k8s.Slices,
 			},
 			wantAds: map[string][]*bgp.Advertisement{
 				"1.2.3.4:0": {
@@ -795,17 +1643,25 @@ func TestBGPSpeaker(t *testing.T) {
 				},
 				Status: statusAssigned("10.20.30.1"),
 			},
-			eps: &v1.Endpoints{
-				Subsets: []v1.EndpointSubset{
+			eps: k8s.EpsOrSlices{
+				SlicesVal: []*discovery.EndpointSlice{
 					{
-						Addresses: []v1.EndpointAddress{
+						Endpoints: []discovery.Endpoint{
 							{
-								IP:       "2.3.4.5",
-								NodeName: strptr("iris"),
+								Addresses: []string{
+									"2.3.4.5",
+								},
+								Topology: map[string]string{
+									"kubernetes.io/hostname": "iris",
+								},
+								Conditions: discovery.EndpointConditions{
+									Ready: boolPtr(true),
+								},
 							},
 						},
 					},
 				},
+				Type: k8s.Slices,
 			},
 			wantAds: map[string][]*bgp.Advertisement{
 				"1.2.3.5:0": {
diff --git a/speaker/layer2_controller_test.go b/speaker/layer2_controller_test.go
index e9d56940..616aceb9 100644
--- a/speaker/layer2_controller_test.go
+++ b/speaker/layer2_controller_test.go
@@ -11,6 +11,7 @@ import (
 
 	"github.com/go-kit/kit/log"
 	v1 "k8s.io/api/core/v1"
+	discovery "k8s.io/api/discovery/v1beta1"
 )
 
 type fakeSpeakerList struct {
@@ -51,7 +52,7 @@ func TestUsableNodes(t *testing.T) {
 	tests := []struct {
 		desc string
 
-		eps *v1.Endpoints
+		eps k8s.EpsOrSlices
 
 		usableSpeakers map[string]bool
 
@@ -59,83 +60,1091 @@ func TestUsableNodes(t *testing.T) {
 	}{
 		{
 			desc: "Two endpoints, different hosts",
-			eps: &v1.Endpoints{
-				Subsets: []v1.EndpointSubset{
+			eps: k8s.EpsOrSlices{
+				EpVal: &v1.Endpoints{
+					Subsets: []v1.EndpointSubset{
+						{
+							Addresses: []v1.EndpointAddress{
+								{
+									IP:       "2.3.4.5",
+									NodeName: strptr("iris1"),
+								},
+								{
+									IP:       "2.3.4.15",
+									NodeName: strptr("iris2"),
+								},
+							},
+						},
+					},
+				},
+				Type: k8s.Eps,
+			},
+			usableSpeakers:  map[string]bool{"iris1": true, "iris2": true},
+			cExpectedResult: []string{"iris1", "iris2"},
+		},
+
+		{
+			desc: "Two endpoints, same host",
+			eps: k8s.EpsOrSlices{
+				EpVal: &v1.Endpoints{
+					Subsets: []v1.EndpointSubset{
+						{
+							Addresses: []v1.EndpointAddress{
+								{
+									IP:       "2.3.4.5",
+									NodeName: strptr("iris1"),
+								},
+								{
+									IP:       "2.3.4.15",
+									NodeName: strptr("iris1"),
+								},
+							},
+						},
+					},
+				},
+				Type: k8s.Eps,
+			},
+			usableSpeakers:  map[string]bool{"iris1": true, "iris2": true},
+			cExpectedResult: []string{"iris1"},
+		},
+
+		{
+			desc: "Two endpoints, same host, one is not ready",
+			eps: k8s.EpsOrSlices{
+				EpVal: &v1.Endpoints{
+					Subsets: []v1.EndpointSubset{
+						{
+							Addresses: []v1.EndpointAddress{
+								{
+									IP:       "2.3.4.5",
+									NodeName: strptr("iris1"),
+								},
+							},
+							NotReadyAddresses: []v1.EndpointAddress{
+								{
+									IP:       "2.3.4.15",
+									NodeName: strptr("iris1"),
+								},
+							},
+						},
+					},
+				},
+				Type: k8s.Eps,
+			},
+			usableSpeakers:  map[string]bool{"iris1": true, "iris2": true},
+			cExpectedResult: []string{"iris1"},
+		},
+	}
+
+	for _, test := range tests {
+		response := usableNodes(test.eps, test.usableSpeakers)
+		sort.Strings(response)
+		if !compareUseableNodesReturnedValue(response, test.cExpectedResult) {
+			t.Errorf("%q: shouldAnnounce for controller returned incorrect result, expected '%s', but received '%s'", test.desc, test.cExpectedResult, response)
+		}
+	}
+}
+
+func TestUsableNodesEPSlices(t *testing.T) {
+	c, err := newController(controllerConfig{
+		MyNode: "iris1",
+		Logger: log.NewLogfmtLogger(log.NewSyncWriter(os.Stderr)),
+	})
+	if err != nil {
+		t.Fatalf("creating controller: %s", err)
+	}
+	c.client = &testK8S{t: t}
+
+	tests := []struct {
+		desc string
+
+		eps k8s.EpsOrSlices
+
+		usableSpeakers map[string]bool
+
+		cExpectedResult []string
+	}{
+		{
+			desc: "Two endpoints, different hosts, multi slice",
+			eps: k8s.EpsOrSlices{
+				SlicesVal: []*discovery.EndpointSlice{
+					{
+						Endpoints: []discovery.Endpoint{
+							{
+								Addresses: []string{
+									"2.3.4.5",
+								},
+								Topology: map[string]string{
+									"kubernetes.io/hostname": "iris1",
+								},
+								Conditions: discovery.EndpointConditions{
+									Ready: boolPtr(true),
+								},
+							},
+						},
+					},
+					{
+						Endpoints: []discovery.Endpoint{
+							{
+								Addresses: []string{
+									"2.3.4.15",
+								},
+								Topology: map[string]string{
+									"kubernetes.io/hostname": "iris2",
+								},
+								Conditions: discovery.EndpointConditions{
+									Ready: boolPtr(true),
+								},
+							},
+						},
+					},
+				},
+				Type: k8s.Slices,
+			},
+			usableSpeakers:  map[string]bool{"iris1": true, "iris2": true},
+			cExpectedResult: []string{"iris1", "iris2"},
+		},
+		{
+			desc: "Two endpoints, different hosts",
+			eps: k8s.EpsOrSlices{
+				SlicesVal: []*discovery.EndpointSlice{
+					{
+						Endpoints: []discovery.Endpoint{
+							{
+								Addresses: []string{
+									"2.3.4.5",
+								},
+								Topology: map[string]string{
+									"kubernetes.io/hostname": "iris1",
+								},
+								Conditions: discovery.EndpointConditions{
+									Ready: boolPtr(true),
+								},
+							},
+							{
+								Addresses: []string{
+									"2.3.4.15",
+								},
+								Topology: map[string]string{
+									"kubernetes.io/hostname": "iris2",
+								},
+								Conditions: discovery.EndpointConditions{
+									Ready: boolPtr(true),
+								},
+							},
+						},
+					},
+				},
+				Type: k8s.Slices,
+			},
+			usableSpeakers:  map[string]bool{"iris1": true, "iris2": true},
+			cExpectedResult: []string{"iris1", "iris2"},
+		},
+		{
+			desc: "Two endpoints, same host",
+			eps: k8s.EpsOrSlices{
+				SlicesVal: []*discovery.EndpointSlice{
+					{
+						Endpoints: []discovery.Endpoint{
+							{
+								Addresses: []string{
+									"2.3.4.5",
+								},
+								Topology: map[string]string{
+									"kubernetes.io/hostname": "iris1",
+								},
+								Conditions: discovery.EndpointConditions{
+									Ready: boolPtr(true),
+								},
+							},
+							{
+								Addresses: []string{
+									"2.3.4.15",
+								},
+								Topology: map[string]string{
+									"kubernetes.io/hostname": "iris1",
+								},
+								Conditions: discovery.EndpointConditions{
+									Ready: boolPtr(true),
+								},
+							},
+						},
+					},
+				},
+				Type: k8s.Slices,
+			},
+			usableSpeakers:  map[string]bool{"iris1": true, "iris2": true},
+			cExpectedResult: []string{"iris1"},
+		},
+
+		{
+			desc: "Two endpoints, same host, one is not ready",
+			eps: k8s.EpsOrSlices{
+				SlicesVal: []*discovery.EndpointSlice{
 					{
-						Addresses: []v1.EndpointAddress{
+						Endpoints: []discovery.Endpoint{
+							{
+								Addresses: []string{
+									"2.3.4.5",
+								},
+								Topology: map[string]string{
+									"kubernetes.io/hostname": "iris1",
+								},
+								Conditions: discovery.EndpointConditions{
+									Ready: boolPtr(true),
+								},
+							},
+							{
+								Addresses: []string{
+									"2.3.4.15",
+								},
+								Topology: map[string]string{
+									"kubernetes.io/hostname": "iris1",
+								},
+								Conditions: discovery.EndpointConditions{
+									Ready: boolPtr(false),
+								},
+							},
+						},
+					},
+				},
+				Type: k8s.Slices,
+			},
+			usableSpeakers:  map[string]bool{"iris1": true, "iris2": true},
+			cExpectedResult: []string{"iris1"},
+		},
+	}
+
+	for _, test := range tests {
+		response := usableNodes(test.eps, test.usableSpeakers)
+		sort.Strings(response)
+		if !compareUseableNodesReturnedValue(response, test.cExpectedResult) {
+			t.Errorf("%q: shouldAnnounce for controller returned incorrect result, expected '%s', but received '%s'", test.desc, test.cExpectedResult, response)
+		}
+	}
+}
+
+func TestShouldAnnounce(t *testing.T) {
+	fakeSL := &fakeSpeakerList{
+		speakers: map[string]bool{
+			"iris1": true,
+			"iris2": true,
+		},
+	}
+	c1, err := newController(controllerConfig{
+		MyNode: "iris1",
+		Logger: log.NewLogfmtLogger(log.NewSyncWriter(os.Stderr)),
+		SList:  fakeSL,
+	})
+	if err != nil {
+		t.Fatalf("creating controller: %s", err)
+	}
+	c1.client = &testK8S{t: t}
+
+	c2, err := newController(controllerConfig{
+		MyNode: "iris2",
+		Logger: log.NewLogfmtLogger(log.NewSyncWriter(os.Stderr)),
+		SList:  fakeSL,
+	})
+	if err != nil {
+		t.Fatalf("creating controller: %s", err)
+	}
+	c2.client = &testK8S{t: t}
+
+	tests := []struct {
+		desc string
+
+		balancer string
+		config   *config.Config
+		svcs     []*v1.Service
+		eps      map[string]k8s.EpsOrSlices
+
+		c1ExpectedResult map[string]string
+		c2ExpectedResult map[string]string
+	}{
+		{
+			desc:     "One service, two endpoints, one host, controller 1 should announce",
+			balancer: "test1",
+			config: &config.Config{
+				Pools: map[string]*config.Pool{
+					"default": {
+						Protocol: config.Layer2,
+						CIDR:     []*net.IPNet{ipnet("10.20.30.0/24")},
+					},
+				},
+			},
+			svcs: []*v1.Service{
+				{
+					Spec: v1.ServiceSpec{
+						Type:                  "LoadBalancer",
+						ExternalTrafficPolicy: "Cluster",
+					},
+					Status: statusAssigned("10.20.30.1"),
+				},
+			},
+			eps: map[string]k8s.EpsOrSlices{
+				"10.20.30.1": {
+					EpVal: &v1.Endpoints{
+						Subsets: []v1.EndpointSubset{
 							{
-								IP:       "2.3.4.5",
-								NodeName: strptr("iris1"),
+								Addresses: []v1.EndpointAddress{
+									{
+										IP:       "2.3.4.5",
+										NodeName: strptr("iris1"),
+									},
+									{
+										IP:       "2.3.4.15",
+										NodeName: strptr("iris1"),
+									},
+								},
 							},
+						},
+					},
+					Type: k8s.Eps,
+				},
+			},
+			c1ExpectedResult: map[string]string{
+				"10.20.30.1": "",
+			},
+			c2ExpectedResult: map[string]string{
+				"10.20.30.1": "notOwner",
+			},
+		},
+
+		{
+			desc:     "One service, two endpoints, one host, neither endpoint is ready, no controller should announce",
+			balancer: "test1",
+			config: &config.Config{
+				Pools: map[string]*config.Pool{
+					"default": {
+						Protocol: config.Layer2,
+						CIDR:     []*net.IPNet{ipnet("10.20.30.0/24")},
+					},
+				},
+			},
+			svcs: []*v1.Service{
+				{
+					Spec: v1.ServiceSpec{
+						Type:                  "LoadBalancer",
+						ExternalTrafficPolicy: "Cluster",
+					},
+					Status: statusAssigned("10.20.30.1"),
+				},
+			},
+			eps: map[string]k8s.EpsOrSlices{
+				"10.20.30.1": {
+					EpVal: &v1.Endpoints{
+						Subsets: []v1.EndpointSubset{
+							{
+								NotReadyAddresses: []v1.EndpointAddress{
+									{
+										IP:       "2.3.4.5",
+										NodeName: strptr("iris1"),
+									},
+									{
+										IP:       "2.3.4.15",
+										NodeName: strptr("iris1"),
+									},
+								},
+							},
+						},
+					},
+					Type: k8s.Eps,
+				},
+			},
+			c1ExpectedResult: map[string]string{
+				"10.20.30.1": "notOwner",
+			},
+			c2ExpectedResult: map[string]string{
+				"10.20.30.1": "notOwner",
+			},
+		},
+		{
+			desc:     "One service, two endpoints across two hosts, controller2 should announce",
+			balancer: "test1",
+			config: &config.Config{
+				Pools: map[string]*config.Pool{
+					"default": {
+						Protocol: config.Layer2,
+						CIDR:     []*net.IPNet{ipnet("10.20.30.0/24")},
+					},
+				},
+			},
+			svcs: []*v1.Service{
+				{
+					Spec: v1.ServiceSpec{
+						Type:                  "LoadBalancer",
+						ExternalTrafficPolicy: "Cluster",
+					},
+					Status: statusAssigned("10.20.30.1"),
+				},
+			},
+			eps: map[string]k8s.EpsOrSlices{
+				"10.20.30.1": {
+					EpVal: &v1.Endpoints{
+						Subsets: []v1.EndpointSubset{
+							{
+								Addresses: []v1.EndpointAddress{
+									{
+										IP:       "2.3.4.5",
+										NodeName: strptr("iris1"),
+									},
+									{
+										IP:       "2.3.4.15",
+										NodeName: strptr("iris2"),
+									},
+								},
+							},
+						},
+					},
+					Type: k8s.Eps,
+				},
+			},
+			c1ExpectedResult: map[string]string{
+				"10.20.30.1": "notOwner",
+			},
+			c2ExpectedResult: map[string]string{
+				"10.20.30.1": "",
+			},
+		},
+
+		{
+			desc:     "One service, two endpoints across two hosts, neither endpoint is ready, no controllers should announce",
+			balancer: "test1",
+			config: &config.Config{
+				Pools: map[string]*config.Pool{
+					"default": {
+						Protocol: config.Layer2,
+						CIDR:     []*net.IPNet{ipnet("10.20.30.0/24")},
+					},
+				},
+			},
+			svcs: []*v1.Service{
+				{
+					Spec: v1.ServiceSpec{
+						Type:                  "LoadBalancer",
+						ExternalTrafficPolicy: "Cluster",
+					},
+					Status: statusAssigned("10.20.30.1"),
+				},
+			},
+			eps: map[string]k8s.EpsOrSlices{
+				"10.20.30.1": {
+					EpVal: &v1.Endpoints{
+						Subsets: []v1.EndpointSubset{
+							{
+								NotReadyAddresses: []v1.EndpointAddress{
+									{
+										IP:       "2.3.4.5",
+										NodeName: strptr("iris1"),
+									},
+									{
+										IP:       "2.3.4.15",
+										NodeName: strptr("iris2"),
+									},
+								},
+							},
+						},
+					},
+					Type: k8s.Eps,
+				},
+			},
+			c1ExpectedResult: map[string]string{
+				"10.20.30.1": "notOwner",
+			},
+			c2ExpectedResult: map[string]string{
+				"10.20.30.1": "notOwner",
+			},
+		},
+
+		{
+			desc:     "One service, two endpoints across two hosts, controller 2 is not ready, controller 1 should announce",
+			balancer: "test1",
+			config: &config.Config{
+				Pools: map[string]*config.Pool{
+					"default": {
+						Protocol: config.Layer2,
+						CIDR:     []*net.IPNet{ipnet("10.20.30.0/24")},
+					},
+				},
+			},
+			svcs: []*v1.Service{
+				{
+					Spec: v1.ServiceSpec{
+						Type:                  "LoadBalancer",
+						ExternalTrafficPolicy: "Cluster",
+					},
+					Status: statusAssigned("10.20.30.1"),
+				},
+			},
+			eps: map[string]k8s.EpsOrSlices{
+				"10.20.30.1": {
+					EpVal: &v1.Endpoints{
+						Subsets: []v1.EndpointSubset{
+							{
+								Addresses: []v1.EndpointAddress{
+									{
+										IP:       "2.3.4.5",
+										NodeName: strptr("iris1"),
+									},
+								},
+								NotReadyAddresses: []v1.EndpointAddress{
+									{
+										IP:       "2.3.4.15",
+										NodeName: strptr("iris2"),
+									},
+								},
+							},
+						},
+					},
+					Type: k8s.Eps,
+				},
+			},
+			c1ExpectedResult: map[string]string{
+				"10.20.30.1": "",
+			},
+			c2ExpectedResult: map[string]string{
+				"10.20.30.1": "notOwner",
+			},
+		},
+
+		{
+			desc:     "Two services each with two endpoints across across two hosts, controller 2 should announce for both services",
+			balancer: "test1",
+			config: &config.Config{
+				Pools: map[string]*config.Pool{
+					"default": {
+						Protocol: config.Layer2,
+						CIDR:     []*net.IPNet{ipnet("10.20.30.0/24")},
+					},
+				},
+			},
+			svcs: []*v1.Service{
+				{
+					Spec: v1.ServiceSpec{
+						Type:                  "LoadBalancer",
+						ExternalTrafficPolicy: "Cluster",
+					},
+					Status: statusAssigned("10.20.30.1"),
+				},
+				{
+					Spec: v1.ServiceSpec{
+						Type:                  "LoadBalancer",
+						ExternalTrafficPolicy: "Cluster",
+					},
+					Status: statusAssigned("10.20.30.2"),
+				},
+			},
+			eps: map[string]k8s.EpsOrSlices{
+				"10.20.30.1": {
+					EpVal: &v1.Endpoints{
+						Subsets: []v1.EndpointSubset{
+							{
+								Addresses: []v1.EndpointAddress{
+									{
+										IP:       "2.3.4.5",
+										NodeName: strptr("iris1"),
+									},
+									{
+										IP:       "2.3.4.15",
+										NodeName: strptr("iris2"),
+									},
+								},
+							},
+						},
+					},
+					Type: k8s.Eps,
+				},
+				"10.20.30.2": {
+					EpVal: &v1.Endpoints{
+						Subsets: []v1.EndpointSubset{
+							{
+								Addresses: []v1.EndpointAddress{
+									{
+										IP:       "2.3.4.25",
+										NodeName: strptr("iris1"),
+									},
+									{
+										IP:       "2.3.4.35",
+										NodeName: strptr("iris2"),
+									},
+								},
+							},
+						},
+					},
+					Type: k8s.Eps,
+				},
+			},
+			c1ExpectedResult: map[string]string{
+				"10.20.30.1": "notOwner",
+				"10.20.30.2": "notOwner",
+			},
+			c2ExpectedResult: map[string]string{
+				"10.20.30.1": "",
+				"10.20.30.2": "",
+			},
+		},
+
+		{
+			desc:     "Two services each with two endpoints across across two hosts, one service has an endpoint not ready on controller 2, controller 2 should not announce for the service with the not ready endpoint",
+			balancer: "test1",
+			config: &config.Config{
+				Pools: map[string]*config.Pool{
+					"default": {
+						Protocol: config.Layer2,
+						CIDR:     []*net.IPNet{ipnet("10.20.30.0/24")},
+					},
+				},
+			},
+			svcs: []*v1.Service{
+				{
+					Spec: v1.ServiceSpec{
+						Type:                  "LoadBalancer",
+						ExternalTrafficPolicy: "Cluster",
+					},
+					Status: statusAssigned("10.20.30.1"),
+				},
+				{
+					Spec: v1.ServiceSpec{
+						Type:                  "LoadBalancer",
+						ExternalTrafficPolicy: "Cluster",
+					},
+					Status: statusAssigned("10.20.30.2"),
+				},
+			},
+			eps: map[string]k8s.EpsOrSlices{
+				"10.20.30.1": {
+					EpVal: &v1.Endpoints{
+						Subsets: []v1.EndpointSubset{
+							{
+								Addresses: []v1.EndpointAddress{
+									{
+										IP:       "2.3.4.5",
+										NodeName: strptr("iris1"),
+									},
+									{
+										IP:       "2.3.4.15",
+										NodeName: strptr("iris2"),
+									},
+								},
+							},
+						},
+					},
+					Type: k8s.Eps,
+				},
+				"10.20.30.2": {
+					EpVal: &v1.Endpoints{
+						Subsets: []v1.EndpointSubset{
+							{
+								Addresses: []v1.EndpointAddress{
+									{
+										IP:       "2.3.4.25",
+										NodeName: strptr("iris1"),
+									},
+								},
+								NotReadyAddresses: []v1.EndpointAddress{
+									{
+										IP:       "2.3.4.35",
+										NodeName: strptr("iris2"),
+									},
+								},
+							},
+						},
+					},
+					Type: k8s.Eps,
+				},
+			},
+			c1ExpectedResult: map[string]string{
+				"10.20.30.1": "notOwner",
+				"10.20.30.2": "",
+			},
+			c2ExpectedResult: map[string]string{
+				"10.20.30.1": "",
+				"10.20.30.2": "notOwner",
+			},
+		},
+
+		{
+			desc:     "Two services each with two endpoints across across two hosts, one service has an endpoint not ready on controller 1, the other service has an endpoint not ready on controller 2. Each controller should announce for the service with the ready endpoint on that controller",
+			balancer: "test1",
+			config: &config.Config{
+				Pools: map[string]*config.Pool{
+					"default": {
+						Protocol: config.Layer2,
+						CIDR:     []*net.IPNet{ipnet("10.20.30.0/24")},
+					},
+				},
+			},
+			svcs: []*v1.Service{
+				{
+					Spec: v1.ServiceSpec{
+						Type:                  "LoadBalancer",
+						ExternalTrafficPolicy: "Cluster",
+					},
+					Status: statusAssigned("10.20.30.1"),
+				},
+				{
+					Spec: v1.ServiceSpec{
+						Type:                  "LoadBalancer",
+						ExternalTrafficPolicy: "Cluster",
+					},
+					Status: statusAssigned("10.20.30.2"),
+				},
+			},
+			eps: map[string]k8s.EpsOrSlices{
+				"10.20.30.1": {
+					EpVal: &v1.Endpoints{
+						Subsets: []v1.EndpointSubset{
+							{
+								Addresses: []v1.EndpointAddress{
+									{
+										IP:       "2.3.4.5",
+										NodeName: strptr("iris2"),
+									},
+								},
+								NotReadyAddresses: []v1.EndpointAddress{
+									{
+										IP:       "2.3.4.15",
+										NodeName: strptr("iris1"),
+									},
+								},
+							},
+						},
+					},
+					Type: k8s.Eps,
+				},
+				"10.20.30.2": {
+					EpVal: &v1.Endpoints{
+						Subsets: []v1.EndpointSubset{
+							{
+								Addresses: []v1.EndpointAddress{
+									{
+										IP:       "2.3.4.25",
+										NodeName: strptr("iris1"),
+									},
+								},
+								NotReadyAddresses: []v1.EndpointAddress{
+									{
+										IP:       "2.3.4.35",
+										NodeName: strptr("iris2"),
+									},
+								},
+							},
+						},
+					},
+					Type: k8s.Eps,
+				},
+			},
+			c1ExpectedResult: map[string]string{
+				"10.20.30.1": "notOwner",
+				"10.20.30.2": "",
+			},
+			c2ExpectedResult: map[string]string{
+				"10.20.30.1": "",
+				"10.20.30.2": "notOwner",
+			},
+		},
+
+		{
+			desc:     "One service with three endpoints across across two hosts, controller 2 hosts two endpoints controller 2 should announce for the service",
+			balancer: "test1",
+			config: &config.Config{
+				Pools: map[string]*config.Pool{
+					"default": {
+						Protocol: config.Layer2,
+						CIDR:     []*net.IPNet{ipnet("10.20.30.0/24")},
+					},
+				},
+			},
+			svcs: []*v1.Service{
+				{
+					Spec: v1.ServiceSpec{
+						Type:                  "LoadBalancer",
+						ExternalTrafficPolicy: "Cluster",
+					},
+					Status: statusAssigned("10.20.30.1"),
+				},
+			},
+			eps: map[string]k8s.EpsOrSlices{
+				"10.20.30.1": {
+					EpVal: &v1.Endpoints{
+						Subsets: []v1.EndpointSubset{
+							{
+								Addresses: []v1.EndpointAddress{
+									{
+										IP:       "2.3.4.5",
+										NodeName: strptr("iris1"),
+									},
+									{
+										IP:       "2.3.4.15",
+										NodeName: strptr("iris2"),
+									},
+									{
+										IP:       "2.3.4.25",
+										NodeName: strptr("iris2"),
+									},
+								},
+							},
+						},
+					},
+					Type: k8s.Eps,
+				},
+			},
+			c1ExpectedResult: map[string]string{
+				"10.20.30.1": "notOwner",
+			},
+			c2ExpectedResult: map[string]string{
+				"10.20.30.1": "",
+			},
+		},
+
+		{
+			desc:     "One service with three endpoints across across two hosts, controller 1 hosts two endpoints controller 2 should announce for the service",
+			balancer: "test1",
+			config: &config.Config{
+				Pools: map[string]*config.Pool{
+					"default": {
+						Protocol: config.Layer2,
+						CIDR:     []*net.IPNet{ipnet("10.20.30.0/24")},
+					},
+				},
+			},
+			svcs: []*v1.Service{
+				{
+					Spec: v1.ServiceSpec{
+						Type:                  "LoadBalancer",
+						ExternalTrafficPolicy: "Cluster",
+					},
+					Status: statusAssigned("10.20.30.1"),
+				},
+			},
+			eps: map[string]k8s.EpsOrSlices{
+				"10.20.30.1": {
+					EpVal: &v1.Endpoints{
+						Subsets: []v1.EndpointSubset{
 							{
-								IP:       "2.3.4.15",
-								NodeName: strptr("iris2"),
+								Addresses: []v1.EndpointAddress{
+									{
+										IP:       "2.3.4.5",
+										NodeName: strptr("iris1"),
+									},
+									{
+										IP:       "2.3.4.15",
+										NodeName: strptr("iris2"),
+									},
+									{
+										IP:       "2.3.4.25",
+										NodeName: strptr("iris1"),
+									},
+								},
 							},
 						},
 					},
+					Type: k8s.Eps,
 				},
 			},
-			usableSpeakers:  map[string]bool{"iris1": true, "iris2": true},
-			cExpectedResult: []string{"iris1", "iris2"},
+			c1ExpectedResult: map[string]string{
+				"10.20.30.1": "notOwner",
+			},
+			c2ExpectedResult: map[string]string{
+				"10.20.30.1": "",
+			},
 		},
 
 		{
-			desc: "Two endpoints, same host",
-			eps: &v1.Endpoints{
-				Subsets: []v1.EndpointSubset{
-					{
-						Addresses: []v1.EndpointAddress{
-							{
-								IP:       "2.3.4.5",
-								NodeName: strptr("iris1"),
-							},
+			desc:     "One service with three endpoints across across two hosts, controller 2 hosts two endpoints, one of which is not ready, controller 2 should announce for the service",
+			balancer: "test1",
+			config: &config.Config{
+				Pools: map[string]*config.Pool{
+					"default": {
+						Protocol: config.Layer2,
+						CIDR:     []*net.IPNet{ipnet("10.20.30.0/24")},
+					},
+				},
+			},
+			svcs: []*v1.Service{
+				{
+					Spec: v1.ServiceSpec{
+						Type:                  "LoadBalancer",
+						ExternalTrafficPolicy: "Cluster",
+					},
+					Status: statusAssigned("10.20.30.1"),
+				},
+			},
+			eps: map[string]k8s.EpsOrSlices{
+				"10.20.30.1": {
+					EpVal: &v1.Endpoints{
+						Subsets: []v1.EndpointSubset{
 							{
-								IP:       "2.3.4.15",
-								NodeName: strptr("iris1"),
+								Addresses: []v1.EndpointAddress{
+									{
+										IP:       "2.3.4.5",
+										NodeName: strptr("iris1"),
+									},
+									{
+										IP:       "2.3.4.15",
+										NodeName: strptr("iris2"),
+									},
+								},
+								NotReadyAddresses: []v1.EndpointAddress{
+									{
+										IP:       "2.3.4.25",
+										NodeName: strptr("iris2"),
+									},
+								},
 							},
 						},
 					},
+					Type: k8s.Eps,
 				},
 			},
-			usableSpeakers:  map[string]bool{"iris1": true, "iris2": true},
-			cExpectedResult: []string{"iris1"},
+			c1ExpectedResult: map[string]string{
+				"10.20.30.1": "notOwner",
+			},
+			c2ExpectedResult: map[string]string{
+				"10.20.30.1": "",
+			},
 		},
 
 		{
-			desc: "Two endpoints, same host, one is not ready",
-			eps: &v1.Endpoints{
-				Subsets: []v1.EndpointSubset{
-					{
-						Addresses: []v1.EndpointAddress{
+			desc:     "One service with three endpoints across across two hosts, controller 1 hosts two endpoints, one of which is not ready, controller 2 should announce for the service",
+			balancer: "test1",
+			config: &config.Config{
+				Pools: map[string]*config.Pool{
+					"default": {
+						Protocol: config.Layer2,
+						CIDR:     []*net.IPNet{ipnet("10.20.30.0/24")},
+					},
+				},
+			},
+			svcs: []*v1.Service{
+				{
+					Spec: v1.ServiceSpec{
+						Type:                  "LoadBalancer",
+						ExternalTrafficPolicy: "Cluster",
+					},
+					Status: statusAssigned("10.20.30.1"),
+				},
+			},
+			eps: map[string]k8s.EpsOrSlices{
+				"10.20.30.1": {
+					EpVal: &v1.Endpoints{
+						Subsets: []v1.EndpointSubset{
 							{
-								IP:       "2.3.4.5",
-								NodeName: strptr("iris1"),
+								Addresses: []v1.EndpointAddress{
+									{
+										IP:       "2.3.4.5",
+										NodeName: strptr("iris1"),
+									},
+									{
+										IP:       "2.3.4.15",
+										NodeName: strptr("iris2"),
+									},
+								},
+								NotReadyAddresses: []v1.EndpointAddress{
+									{
+										IP:       "2.3.4.25",
+										NodeName: strptr("iris1"),
+									},
+								},
 							},
 						},
-						NotReadyAddresses: []v1.EndpointAddress{
+					},
+					Type: k8s.Eps,
+				},
+			},
+			c1ExpectedResult: map[string]string{
+				"10.20.30.1": "notOwner",
+			},
+			c2ExpectedResult: map[string]string{
+				"10.20.30.1": "",
+			},
+		},
+
+		{
+			desc:     "One service with three endpoints across across two hosts, controller 2 hosts two endpoints, both of which are not ready, controller 1 should announce for the service",
+			balancer: "test1",
+			config: &config.Config{
+				Pools: map[string]*config.Pool{
+					"default": {
+						Protocol: config.Layer2,
+						CIDR:     []*net.IPNet{ipnet("10.20.30.0/24")},
+					},
+				},
+			},
+			svcs: []*v1.Service{
+				{
+					Spec: v1.ServiceSpec{
+						Type:                  "LoadBalancer",
+						ExternalTrafficPolicy: "Cluster",
+					},
+					Status: statusAssigned("10.20.30.1"),
+				},
+			},
+			eps: map[string]k8s.EpsOrSlices{
+				"10.20.30.1": {
+					EpVal: &v1.Endpoints{
+						Subsets: []v1.EndpointSubset{
 							{
-								IP:       "2.3.4.15",
-								NodeName: strptr("iris1"),
+								Addresses: []v1.EndpointAddress{
+									{
+										IP:       "2.3.4.5",
+										NodeName: strptr("iris1"),
+									},
+								},
+								NotReadyAddresses: []v1.EndpointAddress{
+									{
+										IP:       "2.3.4.15",
+										NodeName: strptr("iris2"),
+									},
+									{
+										IP:       "2.3.4.25",
+										NodeName: strptr("iris2"),
+									},
+								},
 							},
 						},
 					},
+					Type: k8s.Eps,
 				},
 			},
-			usableSpeakers:  map[string]bool{"iris1": true, "iris2": true},
-			cExpectedResult: []string{"iris1"},
+			c1ExpectedResult: map[string]string{
+				"10.20.30.1": "",
+			},
+			c2ExpectedResult: map[string]string{
+				"10.20.30.1": "notOwner",
+			},
 		},
 	}
 
+	l := log.NewNopLogger()
 	for _, test := range tests {
-		response := usableNodes(test.eps, test.usableSpeakers)
-		sort.Strings(response)
-		if !compareUseableNodesReturnedValue(response, test.cExpectedResult) {
-			t.Errorf("%q: shouldAnnounce for controller returned incorrect result, expected '%s', but received '%s'", test.desc, test.cExpectedResult, response)
+		if test.config != nil {
+			if c1.SetConfig(l, test.config) == k8s.SyncStateError {
+				t.Errorf("%q: SetConfig failed", test.desc)
+			}
+			if c2.SetConfig(l, test.config) == k8s.SyncStateError {
+				t.Errorf("%q: SetConfig failed", test.desc)
+			}
+		}
+
+		for _, svc := range test.svcs {
+			lbIP := net.ParseIP(svc.Status.LoadBalancer.Ingress[0].IP)
+			lbIP_s := lbIP.String()
+			pool := c1.config.Pools[poolFor(c1.config.Pools, lbIP)]
+			response1 := c1.protocols[pool.Protocol].ShouldAnnounce(l, test.balancer, svc, test.eps[lbIP_s])
+			response2 := c2.protocols[pool.Protocol].ShouldAnnounce(l, test.balancer, svc, test.eps[lbIP_s])
+			if response1 != test.c1ExpectedResult[lbIP_s] {
+				t.Errorf("%q: shouldAnnounce for controller 1 for service %s returned incorrect result, expected '%s', but received '%s'", test.desc, lbIP_s, test.c1ExpectedResult[lbIP_s], response1)
+			}
+			if response2 != test.c2ExpectedResult[lbIP_s] {
+				t.Errorf("%q: shouldAnnounce for controller 2 for service %s returned incorrect result, expected '%s', but received '%s'", test.desc, lbIP_s, test.c2ExpectedResult[lbIP_s], response2)
+			}
 		}
 	}
 }
 
-func TestShouldAnnounce(t *testing.T) {
+func TestShouldAnnounceEPSlices(t *testing.T) {
 	fakeSL := &fakeSpeakerList{
 		speakers: map[string]bool{
 			"iris1": true,
@@ -168,7 +1177,7 @@ func TestShouldAnnounce(t *testing.T) {
 		balancer string
 		config   *config.Config
 		svcs     []*v1.Service
-		eps      map[string]*v1.Endpoints
+		eps      map[string]k8s.EpsOrSlices
 
 		c1ExpectedResult map[string]string
 		c2ExpectedResult map[string]string
@@ -193,22 +1202,37 @@ func TestShouldAnnounce(t *testing.T) {
 					Status: statusAssigned("10.20.30.1"),
 				},
 			},
-			eps: map[string]*v1.Endpoints{
+			eps: map[string]k8s.EpsOrSlices{
 				"10.20.30.1": {
-					Subsets: []v1.EndpointSubset{
+					SlicesVal: []*discovery.EndpointSlice{
 						{
-							Addresses: []v1.EndpointAddress{
+							Endpoints: []discovery.Endpoint{
 								{
-									IP:       "2.3.4.5",
-									NodeName: strptr("iris1"),
+									Addresses: []string{
+										"2.3.4.5",
+									},
+									Topology: map[string]string{
+										"kubernetes.io/hostname": "iris1",
+									},
+									Conditions: discovery.EndpointConditions{
+										Ready: boolPtr(true),
+									},
 								},
 								{
-									IP:       "2.3.4.15",
-									NodeName: strptr("iris1"),
+									Addresses: []string{
+										"2.3.4.15",
+									},
+									Topology: map[string]string{
+										"kubernetes.io/hostname": "iris1",
+									},
+									Conditions: discovery.EndpointConditions{
+										Ready: boolPtr(true),
+									},
 								},
 							},
 						},
 					},
+					Type: k8s.Slices,
 				},
 			},
 			c1ExpectedResult: map[string]string{
@@ -239,22 +1263,37 @@ func TestShouldAnnounce(t *testing.T) {
 					Status: statusAssigned("10.20.30.1"),
 				},
 			},
-			eps: map[string]*v1.Endpoints{
+			eps: map[string]k8s.EpsOrSlices{
 				"10.20.30.1": {
-					Subsets: []v1.EndpointSubset{
+					SlicesVal: []*discovery.EndpointSlice{
 						{
-							NotReadyAddresses: []v1.EndpointAddress{
+							Endpoints: []discovery.Endpoint{
 								{
-									IP:       "2.3.4.5",
-									NodeName: strptr("iris1"),
+									Addresses: []string{
+										"2.3.4.5",
+									},
+									Topology: map[string]string{
+										"kubernetes.io/hostname": "iris1",
+									},
+									Conditions: discovery.EndpointConditions{
+										Ready: boolPtr(false),
+									},
 								},
 								{
-									IP:       "2.3.4.15",
-									NodeName: strptr("iris1"),
+									Addresses: []string{
+										"2.3.4.15",
+									},
+									Topology: map[string]string{
+										"kubernetes.io/hostname": "iris1",
+									},
+									Conditions: discovery.EndpointConditions{
+										Ready: boolPtr(false),
+									},
 								},
 							},
 						},
 					},
+					Type: k8s.Slices,
 				},
 			},
 			c1ExpectedResult: map[string]string{
@@ -284,22 +1323,37 @@ func TestShouldAnnounce(t *testing.T) {
 					Status: statusAssigned("10.20.30.1"),
 				},
 			},
-			eps: map[string]*v1.Endpoints{
+			eps: map[string]k8s.EpsOrSlices{
 				"10.20.30.1": {
-					Subsets: []v1.EndpointSubset{
+					SlicesVal: []*discovery.EndpointSlice{
 						{
-							Addresses: []v1.EndpointAddress{
+							Endpoints: []discovery.Endpoint{
 								{
-									IP:       "2.3.4.5",
-									NodeName: strptr("iris1"),
+									Addresses: []string{
+										"2.3.4.5",
+									},
+									Topology: map[string]string{
+										"kubernetes.io/hostname": "iris1",
+									},
+									Conditions: discovery.EndpointConditions{
+										Ready: boolPtr(true),
+									},
 								},
 								{
-									IP:       "2.3.4.15",
-									NodeName: strptr("iris2"),
+									Addresses: []string{
+										"2.3.4.15",
+									},
+									Topology: map[string]string{
+										"kubernetes.io/hostname": "iris2",
+									},
+									Conditions: discovery.EndpointConditions{
+										Ready: boolPtr(true),
+									},
 								},
 							},
 						},
 					},
+					Type: k8s.Slices,
 				},
 			},
 			c1ExpectedResult: map[string]string{
@@ -330,22 +1384,37 @@ func TestShouldAnnounce(t *testing.T) {
 					Status: statusAssigned("10.20.30.1"),
 				},
 			},
-			eps: map[string]*v1.Endpoints{
+			eps: map[string]k8s.EpsOrSlices{
 				"10.20.30.1": {
-					Subsets: []v1.EndpointSubset{
+					SlicesVal: []*discovery.EndpointSlice{
 						{
-							NotReadyAddresses: []v1.EndpointAddress{
+							Endpoints: []discovery.Endpoint{
 								{
-									IP:       "2.3.4.5",
-									NodeName: strptr("iris1"),
+									Addresses: []string{
+										"2.3.4.5",
+									},
+									Topology: map[string]string{
+										"kubernetes.io/hostname": "iris1",
+									},
+									Conditions: discovery.EndpointConditions{
+										Ready: boolPtr(false),
+									},
 								},
 								{
-									IP:       "2.3.4.15",
-									NodeName: strptr("iris2"),
+									Addresses: []string{
+										"2.3.4.15",
+									},
+									Topology: map[string]string{
+										"kubernetes.io/hostname": "iris2",
+									},
+									Conditions: discovery.EndpointConditions{
+										Ready: boolPtr(false),
+									},
 								},
 							},
 						},
 					},
+					Type: k8s.Slices,
 				},
 			},
 			c1ExpectedResult: map[string]string{
@@ -376,24 +1445,37 @@ func TestShouldAnnounce(t *testing.T) {
 					Status: statusAssigned("10.20.30.1"),
 				},
 			},
-			eps: map[string]*v1.Endpoints{
+			eps: map[string]k8s.EpsOrSlices{
 				"10.20.30.1": {
-					Subsets: []v1.EndpointSubset{
+					SlicesVal: []*discovery.EndpointSlice{
 						{
-							Addresses: []v1.EndpointAddress{
+							Endpoints: []discovery.Endpoint{
 								{
-									IP:       "2.3.4.5",
-									NodeName: strptr("iris1"),
+									Addresses: []string{
+										"2.3.4.5",
+									},
+									Topology: map[string]string{
+										"kubernetes.io/hostname": "iris1",
+									},
+									Conditions: discovery.EndpointConditions{
+										Ready: boolPtr(true),
+									},
 								},
-							},
-							NotReadyAddresses: []v1.EndpointAddress{
 								{
-									IP:       "2.3.4.15",
-									NodeName: strptr("iris2"),
+									Addresses: []string{
+										"2.3.4.15",
+									},
+									Topology: map[string]string{
+										"kubernetes.io/hostname": "iris2",
+									},
+									Conditions: discovery.EndpointConditions{
+										Ready: boolPtr(false),
+									},
 								},
 							},
 						},
 					},
+					Type: k8s.Slices,
 				},
 			},
 			c1ExpectedResult: map[string]string{
@@ -431,38 +1513,68 @@ func TestShouldAnnounce(t *testing.T) {
 					Status: statusAssigned("10.20.30.2"),
 				},
 			},
-			eps: map[string]*v1.Endpoints{
+			eps: map[string]k8s.EpsOrSlices{
 				"10.20.30.1": {
-					Subsets: []v1.EndpointSubset{
+					SlicesVal: []*discovery.EndpointSlice{
 						{
-							Addresses: []v1.EndpointAddress{
+							Endpoints: []discovery.Endpoint{
 								{
-									IP:       "2.3.4.5",
-									NodeName: strptr("iris1"),
+									Addresses: []string{
+										"2.3.4.5",
+									},
+									Topology: map[string]string{
+										"kubernetes.io/hostname": "iris1",
+									},
+									Conditions: discovery.EndpointConditions{
+										Ready: boolPtr(true),
+									},
 								},
 								{
-									IP:       "2.3.4.15",
-									NodeName: strptr("iris2"),
+									Addresses: []string{
+										"2.3.4.15",
+									},
+									Topology: map[string]string{
+										"kubernetes.io/hostname": "iris2",
+									},
+									Conditions: discovery.EndpointConditions{
+										Ready: boolPtr(true),
+									},
 								},
 							},
 						},
 					},
+					Type: k8s.Slices,
 				},
 				"10.20.30.2": {
-					Subsets: []v1.EndpointSubset{
+					SlicesVal: []*discovery.EndpointSlice{
 						{
-							Addresses: []v1.EndpointAddress{
+							Endpoints: []discovery.Endpoint{
 								{
-									IP:       "2.3.4.25",
-									NodeName: strptr("iris1"),
+									Addresses: []string{
+										"2.3.4.25",
+									},
+									Topology: map[string]string{
+										"kubernetes.io/hostname": "iris1",
+									},
+									Conditions: discovery.EndpointConditions{
+										Ready: boolPtr(true),
+									},
 								},
 								{
-									IP:       "2.3.4.35",
-									NodeName: strptr("iris2"),
+									Addresses: []string{
+										"2.3.4.35",
+									},
+									Topology: map[string]string{
+										"kubernetes.io/hostname": "iris2",
+									},
+									Conditions: discovery.EndpointConditions{
+										Ready: boolPtr(true),
+									},
 								},
 							},
 						},
 					},
+					Type: k8s.Slices,
 				},
 			},
 			c1ExpectedResult: map[string]string{
@@ -502,40 +1614,68 @@ func TestShouldAnnounce(t *testing.T) {
 					Status: statusAssigned("10.20.30.2"),
 				},
 			},
-			eps: map[string]*v1.Endpoints{
+			eps: map[string]k8s.EpsOrSlices{
 				"10.20.30.1": {
-					Subsets: []v1.EndpointSubset{
+					SlicesVal: []*discovery.EndpointSlice{
 						{
-							Addresses: []v1.EndpointAddress{
+							Endpoints: []discovery.Endpoint{
 								{
-									IP:       "2.3.4.5",
-									NodeName: strptr("iris1"),
+									Addresses: []string{
+										"2.3.4.5",
+									},
+									Topology: map[string]string{
+										"kubernetes.io/hostname": "iris1",
+									},
+									Conditions: discovery.EndpointConditions{
+										Ready: boolPtr(true),
+									},
 								},
 								{
-									IP:       "2.3.4.15",
-									NodeName: strptr("iris2"),
+									Addresses: []string{
+										"2.3.4.15",
+									},
+									Topology: map[string]string{
+										"kubernetes.io/hostname": "iris2",
+									},
+									Conditions: discovery.EndpointConditions{
+										Ready: boolPtr(true),
+									},
 								},
 							},
 						},
 					},
+					Type: k8s.Slices,
 				},
 				"10.20.30.2": {
-					Subsets: []v1.EndpointSubset{
+					SlicesVal: []*discovery.EndpointSlice{
 						{
-							Addresses: []v1.EndpointAddress{
+							Endpoints: []discovery.Endpoint{
 								{
-									IP:       "2.3.4.25",
-									NodeName: strptr("iris1"),
+									Addresses: []string{
+										"2.3.4.25",
+									},
+									Topology: map[string]string{
+										"kubernetes.io/hostname": "iris1",
+									},
+									Conditions: discovery.EndpointConditions{
+										Ready: boolPtr(true),
+									},
 								},
-							},
-							NotReadyAddresses: []v1.EndpointAddress{
 								{
-									IP:       "2.3.4.35",
-									NodeName: strptr("iris2"),
+									Addresses: []string{
+										"2.3.4.35",
+									},
+									Topology: map[string]string{
+										"kubernetes.io/hostname": "iris2",
+									},
+									Conditions: discovery.EndpointConditions{
+										Ready: boolPtr(false),
+									},
 								},
 							},
 						},
 					},
+					Type: k8s.Slices,
 				},
 			},
 			c1ExpectedResult: map[string]string{
@@ -575,42 +1715,68 @@ func TestShouldAnnounce(t *testing.T) {
 					Status: statusAssigned("10.20.30.2"),
 				},
 			},
-			eps: map[string]*v1.Endpoints{
+			eps: map[string]k8s.EpsOrSlices{
 				"10.20.30.1": {
-					Subsets: []v1.EndpointSubset{
+					SlicesVal: []*discovery.EndpointSlice{
 						{
-							Addresses: []v1.EndpointAddress{
+							Endpoints: []discovery.Endpoint{
 								{
-									IP:       "2.3.4.5",
-									NodeName: strptr("iris2"),
+									Addresses: []string{
+										"2.3.4.5",
+									},
+									Topology: map[string]string{
+										"kubernetes.io/hostname": "iris2",
+									},
+									Conditions: discovery.EndpointConditions{
+										Ready: boolPtr(true),
+									},
 								},
-							},
-							NotReadyAddresses: []v1.EndpointAddress{
 								{
-									IP:       "2.3.4.15",
-									NodeName: strptr("iris1"),
+									Addresses: []string{
+										"2.3.4.15",
+									},
+									Topology: map[string]string{
+										"kubernetes.io/hostname": "iris1",
+									},
+									Conditions: discovery.EndpointConditions{
+										Ready: boolPtr(false),
+									},
 								},
 							},
 						},
 					},
+					Type: k8s.Slices,
 				},
 				"10.20.30.2": {
-					Subsets: []v1.EndpointSubset{
+					SlicesVal: []*discovery.EndpointSlice{
 						{
-							Addresses: []v1.EndpointAddress{
+							Endpoints: []discovery.Endpoint{
 								{
-									IP:       "2.3.4.25",
-									NodeName: strptr("iris1"),
+									Addresses: []string{
+										"2.3.4.25",
+									},
+									Topology: map[string]string{
+										"kubernetes.io/hostname": "iris1",
+									},
+									Conditions: discovery.EndpointConditions{
+										Ready: boolPtr(true),
+									},
 								},
-							},
-							NotReadyAddresses: []v1.EndpointAddress{
 								{
-									IP:       "2.3.4.35",
-									NodeName: strptr("iris2"),
+									Addresses: []string{
+										"2.3.4.35",
+									},
+									Topology: map[string]string{
+										"kubernetes.io/hostname": "iris2",
+									},
+									Conditions: discovery.EndpointConditions{
+										Ready: boolPtr(false),
+									},
 								},
 							},
 						},
 					},
+					Type: k8s.Slices,
 				},
 			},
 			c1ExpectedResult: map[string]string{
@@ -643,26 +1809,52 @@ func TestShouldAnnounce(t *testing.T) {
 					Status: statusAssigned("10.20.30.1"),
 				},
 			},
-			eps: map[string]*v1.Endpoints{
+			eps: map[string]k8s.EpsOrSlices{
 				"10.20.30.1": {
-					Subsets: []v1.EndpointSubset{
+					SlicesVal: []*discovery.EndpointSlice{
 						{
-							Addresses: []v1.EndpointAddress{
+							Endpoints: []discovery.Endpoint{
 								{
-									IP:       "2.3.4.5",
-									NodeName: strptr("iris1"),
+									Addresses: []string{
+										"2.3.4.5",
+									},
+									Topology: map[string]string{
+										"kubernetes.io/hostname": "iris1",
+									},
+									Conditions: discovery.EndpointConditions{
+										Ready: boolPtr(true),
+									},
 								},
 								{
-									IP:       "2.3.4.15",
-									NodeName: strptr("iris2"),
+									Addresses: []string{
+										"2.3.4.15",
+									},
+									Topology: map[string]string{
+										"kubernetes.io/hostname": "iris2",
+									},
+									Conditions: discovery.EndpointConditions{
+										Ready: boolPtr(true),
+									},
 								},
+							},
+						},
+						{
+							Endpoints: []discovery.Endpoint{
 								{
-									IP:       "2.3.4.25",
-									NodeName: strptr("iris2"),
+									Addresses: []string{
+										"2.3.4.25",
+									},
+									Topology: map[string]string{
+										"kubernetes.io/hostname": "iris2",
+									},
+									Conditions: discovery.EndpointConditions{
+										Ready: boolPtr(true),
+									},
 								},
 							},
 						},
 					},
+					Type: k8s.Slices,
 				},
 			},
 			c1ExpectedResult: map[string]string{
@@ -693,26 +1885,48 @@ func TestShouldAnnounce(t *testing.T) {
 					Status: statusAssigned("10.20.30.1"),
 				},
 			},
-			eps: map[string]*v1.Endpoints{
+			eps: map[string]k8s.EpsOrSlices{
 				"10.20.30.1": {
-					Subsets: []v1.EndpointSubset{
+					SlicesVal: []*discovery.EndpointSlice{
 						{
-							Addresses: []v1.EndpointAddress{
+							Endpoints: []discovery.Endpoint{
 								{
-									IP:       "2.3.4.5",
-									NodeName: strptr("iris1"),
+									Addresses: []string{
+										"2.3.4.5",
+									},
+									Topology: map[string]string{
+										"kubernetes.io/hostname": "iris1",
+									},
+									Conditions: discovery.EndpointConditions{
+										Ready: boolPtr(true),
+									},
 								},
 								{
-									IP:       "2.3.4.15",
-									NodeName: strptr("iris2"),
+									Addresses: []string{
+										"2.3.4.15",
+									},
+									Topology: map[string]string{
+										"kubernetes.io/hostname": "iris2",
+									},
+									Conditions: discovery.EndpointConditions{
+										Ready: boolPtr(true),
+									},
 								},
 								{
-									IP:       "2.3.4.25",
-									NodeName: strptr("iris1"),
+									Addresses: []string{
+										"2.3.4.25",
+									},
+									Topology: map[string]string{
+										"kubernetes.io/hostname": "iris1",
+									},
+									Conditions: discovery.EndpointConditions{
+										Ready: boolPtr(true),
+									},
 								},
 							},
 						},
 					},
+					Type: k8s.Slices,
 				},
 			},
 			c1ExpectedResult: map[string]string{
@@ -743,28 +1957,48 @@ func TestShouldAnnounce(t *testing.T) {
 					Status: statusAssigned("10.20.30.1"),
 				},
 			},
-			eps: map[string]*v1.Endpoints{
+			eps: map[string]k8s.EpsOrSlices{
 				"10.20.30.1": {
-					Subsets: []v1.EndpointSubset{
+					SlicesVal: []*discovery.EndpointSlice{
 						{
-							Addresses: []v1.EndpointAddress{
+							Endpoints: []discovery.Endpoint{
 								{
-									IP:       "2.3.4.5",
-									NodeName: strptr("iris1"),
+									Addresses: []string{
+										"2.3.4.5",
+									},
+									Topology: map[string]string{
+										"kubernetes.io/hostname": "iris1",
+									},
+									Conditions: discovery.EndpointConditions{
+										Ready: boolPtr(true),
+									},
 								},
 								{
-									IP:       "2.3.4.15",
-									NodeName: strptr("iris2"),
+									Addresses: []string{
+										"2.3.4.15",
+									},
+									Topology: map[string]string{
+										"kubernetes.io/hostname": "iris2",
+									},
+									Conditions: discovery.EndpointConditions{
+										Ready: boolPtr(true),
+									},
 								},
-							},
-							NotReadyAddresses: []v1.EndpointAddress{
 								{
-									IP:       "2.3.4.25",
-									NodeName: strptr("iris2"),
+									Addresses: []string{
+										"2.3.4.25",
+									},
+									Topology: map[string]string{
+										"kubernetes.io/hostname": "iris2",
+									},
+									Conditions: discovery.EndpointConditions{
+										Ready: boolPtr(true),
+									},
 								},
 							},
 						},
 					},
+					Type: k8s.Slices,
 				},
 			},
 			c1ExpectedResult: map[string]string{
@@ -795,28 +2029,48 @@ func TestShouldAnnounce(t *testing.T) {
 					Status: statusAssigned("10.20.30.1"),
 				},
 			},
-			eps: map[string]*v1.Endpoints{
+			eps: map[string]k8s.EpsOrSlices{
 				"10.20.30.1": {
-					Subsets: []v1.EndpointSubset{
+					SlicesVal: []*discovery.EndpointSlice{
 						{
-							Addresses: []v1.EndpointAddress{
+							Endpoints: []discovery.Endpoint{
 								{
-									IP:       "2.3.4.5",
-									NodeName: strptr("iris1"),
+									Addresses: []string{
+										"2.3.4.5",
+									},
+									Topology: map[string]string{
+										"kubernetes.io/hostname": "iris1",
+									},
+									Conditions: discovery.EndpointConditions{
+										Ready: boolPtr(true),
+									},
 								},
 								{
-									IP:       "2.3.4.15",
-									NodeName: strptr("iris2"),
+									Addresses: []string{
+										"2.3.4.15",
+									},
+									Topology: map[string]string{
+										"kubernetes.io/hostname": "iris2",
+									},
+									Conditions: discovery.EndpointConditions{
+										Ready: boolPtr(true),
+									},
 								},
-							},
-							NotReadyAddresses: []v1.EndpointAddress{
 								{
-									IP:       "2.3.4.25",
-									NodeName: strptr("iris1"),
+									Addresses: []string{
+										"2.3.4.25",
+									},
+									Topology: map[string]string{
+										"kubernetes.io/hostname": "iris1",
+									},
+									Conditions: discovery.EndpointConditions{
+										Ready: boolPtr(false),
+									},
 								},
 							},
 						},
 					},
+					Type: k8s.Slices,
 				},
 			},
 			c1ExpectedResult: map[string]string{
@@ -847,28 +2101,48 @@ func TestShouldAnnounce(t *testing.T) {
 					Status: statusAssigned("10.20.30.1"),
 				},
 			},
-			eps: map[string]*v1.Endpoints{
+			eps: map[string]k8s.EpsOrSlices{
 				"10.20.30.1": {
-					Subsets: []v1.EndpointSubset{
+					SlicesVal: []*discovery.EndpointSlice{
 						{
-							Addresses: []v1.EndpointAddress{
+							Endpoints: []discovery.Endpoint{
 								{
-									IP:       "2.3.4.5",
-									NodeName: strptr("iris1"),
+									Addresses: []string{
+										"2.3.4.5",
+									},
+									Topology: map[string]string{
+										"kubernetes.io/hostname": "iris1",
+									},
+									Conditions: discovery.EndpointConditions{
+										Ready: boolPtr(true),
+									},
 								},
-							},
-							NotReadyAddresses: []v1.EndpointAddress{
 								{
-									IP:       "2.3.4.15",
-									NodeName: strptr("iris2"),
+									Addresses: []string{
+										"2.3.4.15",
+									},
+									Topology: map[string]string{
+										"kubernetes.io/hostname": "iris2",
+									},
+									Conditions: discovery.EndpointConditions{
+										Ready: boolPtr(false),
+									},
 								},
 								{
-									IP:       "2.3.4.25",
-									NodeName: strptr("iris2"),
+									Addresses: []string{
+										"2.3.4.25",
+									},
+									Topology: map[string]string{
+										"kubernetes.io/hostname": "iris2",
+									},
+									Conditions: discovery.EndpointConditions{
+										Ready: boolPtr(false),
+									},
 								},
 							},
 						},
 					},
+					Type: k8s.Slices,
 				},
 			},
 			c1ExpectedResult: map[string]string{
@@ -906,3 +2180,7 @@ func TestShouldAnnounce(t *testing.T) {
 		}
 	}
 }
+
+func boolPtr(b bool) *bool {
+	return &b
+}