You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add further support for EndpointSlice in multicluster & healthcheck
While EndpointSlice was used in key locations certain paths do not yet use EndpointSlice as described in #14781
Added support to service-mirror, including new cluster_watcher_headless service in multicluster. Updated healthcheck checkMisconfiguredOpaquePort checks to support EndpointSlice.
New test file cluster_watcher_endpointslice_test, and tests added to healthcheck_test.
Signed-off-by: Matt Mercer <reg.linkerd2@vurtechs.com>
Copy file name to clipboardExpand all lines: multicluster/cmd/service-mirror/main.go
+27-6Lines changed: 27 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -53,6 +53,7 @@ func Main(args []string) {
53
53
repairPeriod:=cmd.Duration("endpoint-refresh-period", 1*time.Minute, "frequency to refresh endpoint resolution")
54
54
enableHeadlessSvc:=cmd.Bool("enable-headless-services", false, "toggle support for headless service mirroring")
55
55
enableNamespaceCreation:=cmd.Bool("enable-namespace-creation", false, "toggle support for namespace creation")
56
+
enableEndpointSlices:=cmd.Bool("enable-endpoint-slices", true, "Use EndpointSlice resources instead of Endpoints")
56
57
enablePprof:=cmd.Bool("enable-pprof", false, "Enable pprof endpoints on the admin server")
57
58
localMirror:=cmd.Bool("local-mirror", false, "watch the local cluster for federated service members")
58
59
federatedServiceSelector:=cmd.String("federated-service-selector", k8s.DefaultFederatedServiceSelector, "Selector (label query) for federated service members in the local cluster")
@@ -92,14 +93,23 @@ func Main(args []string) {
92
93
// controllerK8sAPI is used by the cluster watcher to manage
93
94
// mirror resources such as services, namespaces, and endpoints.
94
95
96
+
// Build the list of resources to watch based on configuration
0 commit comments