-
Notifications
You must be signed in to change notification settings - Fork 115
Description
https://spectrocloud.slack.com/archives/C056VJ4V1HP/p1755285335046689
We propose adding a dry-run command to kairos-init
to display the stages and steps that would execute without making any changes to the system. This would help users debug configurations, verify workflows, or understand the initialization process before applying it.
Problem
Currently, kairos-init
executes stages immediately without an option to preview the actions. This limits transparency and makes it harder to validate configurations.
Proposed Solution
Add a --dry-run
flag to kairos-init
that:
- Parses the configuration and identifies all stages to be executed.
- Outputs a detailed list of steps (e.g., package installations, file modifications, service configurations) without applying them.
- Includes stage dependencies and order of execution.
Acceptance Criteria
- Implement
--dry-run
flag inkairos-init
to show execution steps. - Document the flag in the CLI help and README.
- Provide examples in the documentation (e.g.,
kairos-init --dry-run config.yaml
). - Ensure the output is machine-readable (e.g., JSON format) for automation.
- Validate that no system changes occur during a dry run.
Use Cases
- Debugging initialization failures.
- Validating custom bundle configurations.
- Educating users about the initialization process.
Additional Notes
This feature aligns with Kairos' focus on transparency and reproducibility. It would complement existing tools like kairos-bundle
and kairos-image
by providing a safety check before deployment.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status