mirror of https://github.com/linkerd/linkerd2.git
The destination controller's cluster store registers a gague in its constructor. When this constructor is called multiple times (i.e. in tests), this can lead to a panic. To avoid this panic, this change updates NewClusterStoreWithDecoder to accept a prometheus registry). The NewClusterStore constructor (used by the application's main) continues to use the default registry, but tests now construct their own temporary registries to avoid duplicate registration errors. |
||
---|---|---|
.. | ||
cluster_store.go | ||
cluster_store_test.go | ||
endpoints_watcher.go | ||
endpoints_watcher_test.go | ||
k8s.go | ||
opaque_ports_watcher.go | ||
opaque_ports_watcher_test.go | ||
profile_watcher.go | ||
profile_watcher_test.go | ||
prometheus.go | ||
test_util.go | ||
workload_watcher.go | ||
workload_watcher_test.go |