| commit | 69f5f4e5ffac12c1d8e45e4cc9dc72868aa3af41 | [log] [tgz] |
|---|---|---|
| author | Jan Schär <jan@monogon.tech> | Wed May 15 10:32:07 2024 +0200 |
| committer | Jan Schär <jan@monogon.tech> | Wed May 15 16:15:25 2024 +0000 |
| tree | a28c2166fc40b1a2bee20070b4ae6788477ccf1f | |
| parent | 6bc958326f8bd4f3a1606e8a767d21f12f584e88 [diff] |
m/n/k/reconciler: implement updates The reconciler now checks if already present object are equal to the expected object, and else updates them. If the update fails due to immutable fields, the object is instead deleted and recreated. Also, the reconciler now logs create/update/delete operations. For the CSI driver, the StorageCapacity and RequiresRepublish were added and set to their default value. If we don't do this, the API server will add these defaults, and then our update comparison fails. There is also a new test which ensures that expected objects have all defaults already applied. This test will fail if a Kubernetes upgrade adds new fields with default values. Closes #288. Change-Id: Ibfb37d07b4613ae1a883ad47715feeda87135820 Reviewed-on: https://review.monogon.dev/c/monogon/+/2893 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! In the meantime, join us on Matrix: #monogon-os-community:matrix.org.
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.
The source code lives in //metropolis (Metropolis is the codename of Monogon OS).
See the //metropolis/README.md for a developer quick start guide, or see the Monogon OS Handbook for user documentation.