commit | 68c58755e0a56e1b1c565d80f99056ec4948fbec | [log] [tgz] |
---|---|---|
author | Leopold Schabel <leo@nexantic.com> | Thu Nov 14 21:00:59 2019 +0100 |
committer | Leopold Schabel <leo@nexantic.com> | Thu Nov 14 21:00:59 2019 +0100 |
tree | f122ab392769d33620077c65ddf0f0a3aed43d1c | |
parent | 5ed291ea1833ffd07665b6194f7b6db2b7c1c4aa [diff] |
Improve documentation, remove dead code plus some minor refactorings This improves our code-to-comments ratio by a lot. On the refactorings: - Simplify the cluster join mode to just a single protobuf message - a node can either join an existing cluster or bootstrap a new one. All of the node-level setup like hostname and trust backend is done using the setup call, since those are identical for both cases. - We don't need a node name separate from the hostname. Ideally, we would get rid of IP addresses for etcd as well. - Google API design guidelines suggest the `List` term (vs. `Get`). - Add username to comments for consistency. I think the names provide useful context, but git blame is a thing. What do you think? - Fixed or silenced some ignored error checks in preparation of using an errcheck linter. Especially during early boot, many errors are obviously not recoverable, but logging them can provide useful debugging info. - Split up the common package into smaller subpackages. - Remove the audit package (this will be a separate service that probably uses it own database, rather than etcd). - Move storage constants to storage package. - Remove the unused KV type. I also added a bunch of TODO comments with discussion points. Added both of you as blocking reviewers - please comment if I misunderstood any of your code. Test Plan: Everything compiles and scripts:launch works (for whatever that's worth). X-Origin-Diff: phab/D235 GitOrigin-RevId: 922fec5076e8d683e1138f26d2cb490de64a9777
This is the monorepo storing all of nexantic's internal projects and libraries.
All builds should be executed using the shipped nexantic-dev
container which is automatically built by the create script.
The container contains all necessary dependencies and env configurations necessary to get started right away.
Spinning up: scripts/create_container.sh
Spinning down: scripts/destroy_container.sh
Running commands: scripts/run_in_container.sh @
Using bazel: scripts/bin/bazel @