siderolabs / talos

Talos Linux is a modern Linux distribution built for Kubernetes.
https://www.talos.dev
Mozilla Public License 2.0
5.75k stars 466 forks source link

`talosctl gen config` to output a single config type #6562

Closed smira closed 1 year ago

smira commented 1 year ago

Add a flag to output a single config type (controlplane/worker/talosconfig) instead of a bundle, specify destination file (we can default to stdout).

smira commented 1 year ago

Please note that gen config already supports creating reproducible base config from a secrets bundle, and add patches on top of it, so this issue is only about changing the output format.

andrewrynhard commented 1 year ago

User wants something like:

talosctl gen config --from=base.yaml --config-patch=patch.yaml

from is an existing base machine configuration.

smira commented 1 year ago

I don't like gen config with --from, how about talosctl machineconfig patch -f base.yaml -p @patch1.yaml ?