grafana / xk6-kubernetes

Client extension for interacting with Kubernetes clusters from your k6 tests.
Apache License 2.0
62 stars 20 forks source link

Add helpers #72

Closed pablochacin closed 1 year ago

pablochacin commented 1 year ago

This change set introduces helpers to facilitate common tasks when setting tests in Kubernetes.

It also introduces a set of structured operations that work on typed objects (e.g. Pods) as opposed to unstructured operations that work on generic objects. These structured operations are intended for the helpers, to avoid the complexity of manipulating generic objects in go.

pablochacin commented 1 year ago

I have addressed your concerns regarding the use of namespaces in the helpers:

javaducky commented 1 year ago

TODO: We need to try to find a way for the example scripts to be executed in the build pipeline as some sort of integration test.

pablochacin commented 1 year ago

TODO: We need to try to find a way for the example scripts to be executed in the build pipeline as some sort of integration test.

Totally agree. There is issue #48. I just added a comment on how e2e tests are implemented in xk6-disruptor. We could use that for running scripts as e2e tests.