Rename cleanup post
option to all
#454
Labels
breaking change
Breaking change can impact some existing workflows.
enhancement
New feature or request
UX
Feature Description
Currently
.spec.cleanup
inTestRun
supports only one option,"post"
. When set, it results in k6-operator cleaning up the CR and all its resources after the test run finishes. In #275, a request for at least one more option was made. It makes senses to rename"post"
to"all"
as it better reflects what is happening.Suggested Solution (optional)
Such a rename would be a breaking change. We can support both
"post"
and"all"
for some time, with deprecation warning for"post"
.Already existing or connected issues / PRs (optional)
As an additional context. Initially, the choice of the word was made probably to mean that resources are cleaned up "post" (after) the test run. But it's hard to imagine that we will ever have the need in, for example,
cleanup: "pre"
-- before the test run. At the same time, we already have a request from #275 to limit the amount of test runs impacted instead.The text was updated successfully, but these errors were encountered: