Add an odo run command to manually execute command during odo dev (#6857)

* Add a run command

* Check command name passed as arg

* Check platform is available

* Add a Run method to the DevClient

* Run command on cluster

* Add test with run command on cluster

* Implement and test run on podman

* Enhance test to check that command has been executed in container

* Fix `odo help` test

* Refactor common code for podman/cluster

* Test Apply commands on Kubernetes/Images

* Test  a msg is displayed when executing odo run without odo dev

* Review

* makes GetRunningPodFromSelector return only Running pods on Podman
This commit is contained in:
Philippe Martin
2023-06-02 15:33:21 +02:00
committed by GitHub
parent b6c9c88245
commit 330b724753
22 changed files with 574 additions and 34 deletions

View File

@@ -34,6 +34,7 @@ Examples:
init Init bootstraps a new project
logs Show logs of all containers of the component
registry List all components from the Devfile registry
run Run a specific command in the Dev mode
`