Closed brucedevcom closed 1 year ago
This PR adds a debug() function to pod repositories which allows you to attach an ephemeral container to a running pod.
debug()
Functionally similar to kubectl debug but providing the ability to provide an entire EphemeralContainer spec (see: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.23/#ephemeralcontainer-v1-core)
kubectl debug
The $spec param should be an array of a strategic merge patch, ie:
[ "spec" => [ "ephemeralContainers" => [ ... ] ] ]
This PR adds a
debug()
function to pod repositories which allows you to attach an ephemeral container to a running pod.Functionally similar to
kubectl debug
but providing the ability to provide an entire EphemeralContainer spec (see: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.23/#ephemeralcontainer-v1-core)The $spec param should be an array of a strategic merge patch, ie: