ankaios
ankaios copied to clipboard
Add dry-run before applying manifests
Description
When calling ank apply
there are different possible actions for each workload in the manifests that would have been passed.
- No action for that workload: The workload has not been changed and as such no action for this workload will be executed.
- Workload will be created: The workload did not exist so far and will be created.
- Workload will be deleted and created again: The workload exists already but the new manifest contains a change (e.g. in the runtime config) that requires the workload to be deleted and created again such that the change get effective.
- Workload will be deleted
When there are a lot of workloads already running it might not be obvious for the user which action will be applied for each workload. For this a --dry-run
option might be useful.
Probably the dry run needs to be executed by the server. I am not sure if the CLI could also perform a dry run without involving the server.
In addition this dry-run might also be executed by a workload for example in a web based dashboard.
Goals
Add a dry run functionality to the control interface and CLI.
Final result
Summary
To be filled when the final solution is sketched.
Tasks
- [ ] Task 1
- [ ] Task 2
- [ ] ...