grafana / xk6-kubernetes

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

Remove Deprecated API #88

Closed pablochacin closed 1 year ago

pablochacin commented 1 year ago

Since the introduction of the Generic API the previous API around specific resource types was deprecated

There are several reasons for removing the deprecated API:

One of main blockers so far for removing the deprecated API is that most of the examples depend on that API. Most of these examples seems to be superfluous now and would add not benefit if converted to the new API because the tasks they implement are covered by the official k8s documentation.

Another blocker for removing the API is that some helper functions such as jobs.wait and pods.exec should be moved as helper functions. The pods.addEphemeralContainer function should probably be removed as it was introduced as a requirement for the xk6-disruptor and was since moved to that extension.

The suggested plan is: