commit | 7457ee940f2fff2df6e6eef89dcfbd3a9c67cfb9 | [log] [tgz] |
---|---|---|
author | Serge Bazanski <serge@monogon.tech> | Wed Mar 15 19:06:28 2023 +0100 |
committer | Serge Bazanski <serge@monogon.tech> | Tue Mar 21 10:53:12 2023 +0000 |
tree | 412f5828491b819c1f4e7f547a6dec12e20ac38b | |
parent | e25b3a4154cd71c1efd4e26760f4e14d27ad005b [diff] |
go/types/mapsets: add OrderedMap Oh look, more Go generics. This is a pretty standard Ordered/SortedMap type structure, with a little twist: it implements having a subordinate 'CycleIterator' which allows to iterate over it in a round-robin fashion, even as its underlying OrderedMap is mutated. This will be used, unsurprisingly, in a little TCP load balancer implementation. Change-Id: Ic8ab6a7fbcd6e1faf6224fc93bcc997c09364190 Reviewed-on: https://review.monogon.dev/c/monogon/+/1334 Tested-by: Jenkins CI Reviewed-by: Lorenz Brun <lorenz@monogon.tech>
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 //...