You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
talosctl gen config could accept jsonpatch files as well as strings
Description
Using strings jsonpatch with talosctl is quite complicated inside shell. Each string must be properly quoted.
It would be nice to allow using jsonpatch file as well as strings. one could specify something like the below command to read a patchfile: talosctl gen config --config-patch @config-file ...
To provide a fully customized machine file, one has to provide an array of jsonpatch which is a very long string.
One nice to have features would also be able to aggregate json patches if one gives the --patch-config several times on the cmdline like: talosctl gen config --config-patch @machine1 --config-patch @sysctl-patch --config-patch @cluster-cidrs ...
The text was updated successfully, but these errors were encountered:
Include filename content if value begins with @ (see curl for example).
Add multiple config-path option on cmdline to apply them in order.
ex:
```
talosctl-linux-amd64 gen config talos1 https://127.0.0.1:6443 --config-patch-control-plan @cidrs.json --config-patch-worker @sysctls-workders.json --config-path @cluster-name.json
```
Load JSON patch from YAML.
This applies to all commands handling config patches.
Closes: siderolabs#4764
Signed-off-by: Sébastien Bernard <sbernard@nerim.net>
Signed-off-by: Andrey Smirnov <andrey.smirnov@talos-systems.com>
Feature Request
talosctl gen config could accept jsonpatch files as well as strings
Description
Using strings jsonpatch with talosctl is quite complicated inside shell. Each string must be properly quoted.
It would be nice to allow using jsonpatch file as well as strings. one could specify something like the below command to read a patchfile:
talosctl gen config --config-patch @config-file ...
To provide a fully customized machine file, one has to provide an array of jsonpatch which is a very long string.
One nice to have features would also be able to aggregate json patches if one gives the --patch-config several times on the cmdline like:
talosctl gen config --config-patch @machine1 --config-patch @sysctl-patch --config-patch @cluster-cidrs ...
The text was updated successfully, but these errors were encountered: