Andrey Smirnov 7bb205ebe2
fix: don't use runtime-specs Mount struct in machine config
First of all, it breaks our backwards compatibility promises and breaks
documentation generation. Upstream `specs.Mount` might change at any
time.

The issue was that containerd 1.7.x brings in new `specs.Mount` which
contains extra fields which don't have `omitempty` for YAML, so
machinery always generates them which confuses old Talos versions.

Use a copy of the upstream struct with proper YAML tags, and also
provide a special trick to make sure if the upstream struct changes, we
have a chance to update our copy of the struct.

Also this fixes docs and JSON schema.

Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
2023-10-11 23:06:19 +04:00
..
2022-03-24 05:37:35 -07:00
2022-07-11 23:07:09 +05:30
2022-07-11 23:07:09 +05:30
2022-07-11 23:07:09 +05:30
2022-07-11 23:07:09 +05:30
2022-07-11 23:07:09 +05:30
2023-03-13 14:51:28 +04:00
2023-07-24 16:08:14 +04:00
2023-10-09 15:28:42 +04:00
2022-06-21 08:43:48 -04:00