Breaking changes in the BuilderInterface
released in a bug fix version (v2.1.1)
#1605
Labels
kind/bug
Categorizes issue or PR as related to a bug.
What happened:
#1499 introduces major breaking changes in the
BuilderInterface
interface.BuildStoresFunc
now returns[]*metricsstore.MetricsStore
(struct) instead of acache.Store
(interface). This made injecting custom stores impossible when kube state metrics is used as a library.Build()
not exposing the store anymore. The returned interface[]metricsstore.MetricsWriter
is very specific to the regular use-case and isn't generic enough. The builder should at least have a method to expose the store as is.What you expected to happen:
metricsstore.MetricsStore
implementscache.Store
already. Any reason why[]*metricsstore.MetricsStore
can't be replaced by[]cache.Store
?The text was updated successfully, but these errors were encountered: