commit | f2f85f5827b9df558606403d9451087873249265 | [log] [tgz] |
---|---|---|
author | Serge Bazanski <serge@monogon.tech> | Thu Mar 16 11:51:19 2023 +0100 |
committer | Serge Bazanski <serge@monogon.tech> | Thu Mar 16 18:10:14 2023 +0000 |
tree | 646fff1411bff4f9a294f347d6576305171412f7 | |
parent | 0164c717e7ca2420f86043283f4c56867734ecce [diff] |
m/n/core: make startup errors more readable Previously, fatal startup errors in the cluster manager/enrolment would get logged as general supervisor runnable errors, which is not very user friendly. This reworks error handling in main.go to switch over logging to an alternative 'fatal' channel as soon as an error is detected, and use it to clearly log that error. Fixes issues/77 Change-Id: Id73ee49f6bc5b4306dd67ede3a588f08dd2b33da Reviewed-on: https://review.monogon.dev/c/monogon/+/1355 Reviewed-by: Leopold Schabel <leo@monogon.tech> Tested-by: Jenkins CI
This is the main repository containing the source code for the Monogon Platform.
This is pre-release software - take a look, and check back later!
Our build environment is self-contained and requires only minimal host dependencies:
/dev/kvm
(if you want to run tests).Our docs assume that Bazelisk is available as bazel
on your PATH.
Refer to SETUP.md for detailed instructions.
Build CLI and node image:
bazel build //metropolis/cli/dbg //:launch -c dbg
Launch an ephemeral test node:
bazel test //:launch -c dbg --test_output=streamed
Run a kubectl command while the test is running:
bazel-bin/metropolis/cli/dbg/dbg_/dbg kubectl describe node
Run full test suite:
bazel test -c dbg //...