This change adds a new/actual way of defining cloud options (options.cloud) to the k6-operator. A logic mimics the one in the k6-core; the prior is for defining cloud options with a fallback to the load impact.
I haven't touched the README in that PR. It could be updated along with updates to the k6-docs (once we are confident to do that).
How did I test
TBH, I haven't done any testing apart from the running unit tests (make test). I also quickly searched for any existing tests that could be adjusted by introducing a new logic. I could add a simple test case for the unit testing the fallback logic of the new TestName and ProjectID functions if you think it's necessary or any other place that could be better for keeping those tests.
What?
This change adds a new/actual way of defining cloud options (
options.cloud
) to the k6-operator. A logic mimics the one in the k6-core; the prior is for defining cloud options with a fallback to the load impact.I haven't touched the README in that PR. It could be updated along with updates to the k6-docs (once we are confident to do that).
How did I test
TBH, I haven't done any testing apart from the running unit tests (
make test
). I also quickly searched for any existing tests that could be adjusted by introducing a new logic. I could add a simple test case for the unit testing the fallback logic of the newTestName
andProjectID
functions if you think it's necessary or any other place that could be better for keeping those tests.Why?
The
options.cloud
refactor has been merged (https://github.com/grafana/k6/pull/3348) into k6-core, and the new way of defining options could appear soon.Closes: https://github.com/grafana/k6-operator/issues/309