grafana / xk6-kubernetes

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

Add ephemeral container to a running pod #34

Closed pablochacin closed 2 years ago

pablochacin commented 2 years ago

Add function to Pods for creating an ephemeral container in a running pod. Also added a function for creating a pod to facilitate testing.

Note: tested with K8s cluster 1.23.x. Previous versions may not work or may need enabling ephemeral containers feature gate

closes #30

javaducky commented 2 years ago

Confirmed create and add with Kube v1.22.7 (feature-gates=EphemeralContainers=true).

javaducky commented 2 years ago

LGTM! Thank you @pablochacin .