You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since the ko run forwards every argument starting from the second argument to the kubectl run command, if there is a ko flag like --preserve-import-paths this will be forwarded to the kubectl run.
The command ./ko run test --preserve-import-paths --image=./test/ results in the following error:
....
Usage:
kubectl run NAME --image=image [--env="key=value"] [--port=port] [--replicas=replicas] [--dry-run=bool] [--overrides=inline-json] [--command] -- [COMMAND] [args...] [options]
Use "kubectl options" for a list of global command-line options (applies to all commands).
unknown flag: --preserve-import-paths
2019/01/14 21:15:08 error executing "kubectl run": exit status 1
Suggestion:
I think we should do something similar to the docker run command, where any flag passed before the run is considered a flag of the docker run and flags passed after the run are flags of the container to be executed.
The text was updated successfully, but these errors were encountered:
paivagustavo
changed the title
ko run fails when there is a ko's flagko run fails when there is a ko flag
Jan 14, 2019
Since the
ko run
forwards every argument starting from the second argument to thekubectl run
command, if there is ako
flag like--preserve-import-paths
this will be forwarded to thekubectl run
.The command
./ko run test --preserve-import-paths --image=./test/
results in the following error:Suggestion:
I think we should do something similar to the
docker run
command, where any flag passed before therun
is considered a flag of the docker run and flags passed after the run are flags of the container to be executed.The text was updated successfully, but these errors were encountered: