Andrey Smirnov 9a2f6d9c9e
fix: support specifying patch file without '@' symbol
Try to be more smart while parsing `--config-patch` (and similar) flags:

* we still support inline patches
* if the flag value doesn't look like a patch, try to use it as a
  filename directly

This avoids common confusion with `--config-patch=patch.yaml` returning
an error "expected a mapping node".

Also clarify/updated documentation for `talosctl edit` and `talosctl
patch`, as they only work for the machineconfig, there is no other
usecase now.

Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
(cherry picked from commit e2ee39b8ac54ada49dd0a7ffaab4b0ae5d684792)
2025-11-27 17:07:03 +01:00
..
2022-08-24 17:27:01 +03:00
2025-11-04 15:21:57 +04:00
2025-11-14 14:49:44 +04:00
2023-09-22 12:13:13 +04:00
2025-07-16 15:33:51 +02:00
2025-11-04 15:21:57 +04:00
2025-11-04 15:21:57 +04:00
2025-11-04 15:21:57 +04:00
2023-06-14 15:08:31 +04:00
2024-03-21 01:06:53 +03:00
2025-11-04 15:21:57 +04:00
2023-03-15 22:17:52 +04:00
2025-11-14 14:49:44 +04:00
2023-03-30 23:39:38 +04:00
2024-07-08 18:14:00 +03:00
2023-10-12 16:24:02 +04:00
2025-10-23 19:10:48 +04:00
2025-11-04 15:21:57 +04:00