This repository has been archived by the owner on Mar 30, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
*: un-singletonize the cluster settings
Apologies to drop such a huge refactoring, but it was a bit of a coup de force required (or at least strongly suggested) by my inflight PR on version migration (#17411). We were previously using our singleton-based `settings` package that originally replaced the use of environment variables. Its use, however, has since diversified, the cluster version setting being the most elaborate addition. In #17411 it has turned out that with these singletons in place, a lot of effort and hacks are required to even be able to run tests at the same version. However, it would be nice to test nonidentical versions in cluster tests. Consequently, this PR - introduces a struct `cluster.Settings` which now holds all the settings previously scattered around the code base; and - plumbs this struct everywhere it's needed. There are some open FIXMEs but I'd like a reviewer to review the bulk that's here in the initial commit (which should pass all tests). I will then address the FIXMEs (which require more focused attention) in follow-up commits, before merging this PR.
- Loading branch information