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

Implement SkipTeardown Modes #40

Merged
merged 2 commits into from
Oct 10, 2024

Conversation

alromeros
Copy link
Contributor

This Pull Request introduces a new SkipTeardown field in the configuration for storage checkups. It allows users to control whether teardown steps should be skipped, improving debugging flexibility.

The available modes are:

  • SkipTeardownAlways (always): Always skips the teardown process.
  • SkipTeardownOnFailure (onfailure): Skips teardown only when a failure occurs (useful for debugging).
  • SkipTeardownNever (never): Ensures resources are always cleaned up after a checkup run.

@arnongilboa
Copy link
Collaborator

@alromeros looks good. Can you please document its usage in README.md?

README.md Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
arnongilboa
arnongilboa previously approved these changes Oct 10, 2024
This commit introduces a new SkipTeardown field in the configuration for storage checkups. It allows users to control whether teardown steps should be skipped, improving debugging flexibility.

The available modes are:

- SkipTeardownAlways: Always skips the teardown process.
- SkipTeardownOnFailure: Skips teardown only when a failure occurs (useful for debugging).
- SkipTeardownNever: Ensures resources are always cleaned up after a checkup run.

Signed-off-by: Alvaro Romero <[email protected]>
@alromeros
Copy link
Contributor Author

The linter was complaining about a switch statement lacking case config.SkipTeardownNever so had to modify it a bit.

@arnongilboa arnongilboa merged commit dbc94e3 into kiagnose:main Oct 10, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants