commit | 42e61c6a3601d7f63176af3f53a3ac9c53120099 | [log] [tgz] |
---|---|---|
author | Serge Bazanski <serge@nexantic.com> | Thu Mar 18 15:07:18 2021 +0100 |
committer | Serge Bazanski <serge@nexantic.com> | Thu Mar 18 15:07:18 2021 +0100 |
tree | 2fd6e86b1a0dee6b4928f04ac359b4b262806d73 | |
parent | 34fe8c666811c63f33ba970ba0e39d25804ab4a3 [diff] |
m/n/core/cluster: rewrite bootstrap to conform to cluster lifecycle DD This removes the existing cluster/manager code and reimplements it from scratch, finally implementing the cluster lifecycle design document for cluster bootstrap. Test Plan: E2e should cover this. Maybe we could unit test the manager? But that would require a ton of DI work. Not sure if it's worth it. X-Origin-Diff: phab/D735 GitOrigin-RevId: b00c97b0a102a21605d16086df82a6ece6eb7f4d
This is the main repository containing Monogon's public source code, including Metropolis.
We assume a Fedora host system provisioned using rW, and IntelliJ as the IDE.
For better reproducibility, all builds are executed in containers.
Spinning up: scripts/create_container.sh
Spinning down: scripts/destroy_container.sh
Running commands: scripts/run_in_container.sh <...>
Using bazel using a wrapper script: scripts/bin/bazel <...>
(add to your local $PATH for convenience)
This repository is compatible with the IntelliJ Bazel plugin. All commands run inside the container, and necessary paths are mapped into the container.
The following steps are necessary:
Install Google's Bazel plugin in IntelliJ.
Add the absolute path to your ~/.cache/bazel-nxt
folder to your idea64.vmoptions
(Help → Edit Custom VM Options) and restart IntelliJ:
-Dbazel.bep.path=/home/leopold/.cache/bazel-nxt
Set "Bazel Binary Location" in Other Settings → Bazel Settings to the absolute path of scripts/bin/bazel
. This is a wrapper that will execute Bazel inside the container.
Use File → Import Bazel project... to create a new project from .bazelproject
.
After running the first sync, everything should now resolve in the IDE, including generated code.
It's strongly recommend to use our project presets for file watchers and other IDE features. Run this command and re-open the project in order to install them:
bazel run intellij/localconfig $(pwd)
Launch the node:
bazel run //:launch
Run a kubectl command:
bazel run //metropolis/cli/dbg -- kubectl describe