Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an experimental --dry-run #588

Merged
merged 13 commits into from
Nov 9, 2023
Merged

Add an experimental --dry-run #588

merged 13 commits into from
Nov 9, 2023

Conversation

kke
Copy link
Contributor

@kke kke commented Oct 30, 2023

Fixes #304
Fixes #586

Adds a mechanism for doing dry-runs.

Use k0sctl [apply|reset|backup|kubeconfig] --dry-run to activate.

image

@kke kke added the enhancement New feature or request label Oct 30, 2023
@kke kke force-pushed the plan branch 22 times, most recently from 9595520 to 39f1d79 Compare November 6, 2023 08:39
Signed-off-by: Kimmo Lehto <klehto@mirantis.com>
Signed-off-by: Kimmo Lehto <klehto@mirantis.com>
Signed-off-by: Kimmo Lehto <klehto@mirantis.com>
Signed-off-by: Kimmo Lehto <klehto@mirantis.com>
Signed-off-by: Kimmo Lehto <klehto@mirantis.com>
Signed-off-by: Kimmo Lehto <klehto@mirantis.com>
Signed-off-by: Kimmo Lehto <klehto@mirantis.com>
The strange interface magic done in configurers to allow overriding the
path functions is something I never quite understood how it actually
works and why it is necessary. Here the mechanism is replaced with a
simple map[string]string and getter functions + a setter because in the
dry-run mechanism it was necessary to programmatically override the
K0sBinaryPath() at run time.

Signed-off-by: Kimmo Lehto <klehto@mirantis.com>
Signed-off-by: Kimmo Lehto <klehto@mirantis.com>
Signed-off-by: Kimmo Lehto <klehto@mirantis.com>
Signed-off-by: Kimmo Lehto <klehto@mirantis.com>
Signed-off-by: Kimmo Lehto <klehto@mirantis.com>
Signed-off-by: Kimmo Lehto <klehto@mirantis.com>
@kke kke changed the title [wip] Dry-run/plan/preview Dry-run/plan/preview Nov 7, 2023
@kke kke marked this pull request as ready for review November 7, 2023 08:35
@kke kke changed the title Dry-run/plan/preview Add --dry-run Nov 7, 2023
@kke kke changed the title Add --dry-run Add --dry-run Nov 7, 2023
@kke kke changed the title Add --dry-run Add an experimental --dry-run Nov 9, 2023
@kke kke merged commit c924930 into main Nov 9, 2023
33 checks passed
@kke kke deleted the plan branch November 9, 2023 08:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Preview or Dry-Run functionality Ability to dry run apply
1 participant