Currently, commands executed in pods are not aware of context state, and if context is cancelled they are still running.
This PR changes K10 code so that context is always passed to any kind of kube.Exec method.
There is related Kanister PR https://github.com/kanisterio/kanister/pull/2878 which contains passing context right to the Kubernetes Executor.StreamWithContext which states "The context controls the entire lifetime of stream execution."
Currently, commands executed in pods are not aware of context state, and if context is cancelled they are still running. This PR changes K10 code so that context is always passed to any kind of kube.Exec method.
There is related Kanister PR https://github.com/kanisterio/kanister/pull/2878 which contains passing context right to the Kubernetes Executor.StreamWithContext which states "The context controls the entire lifetime of stream execution."