odo build-images
and odo deploy
do not work with Docker if optional buildContext
field is not set in Devfile
#5600
Labels
kind/bug
Categorizes issue or PR as related to a bug.
/kind bug
What versions of software are you using?
Operating System:
Fedora 35
Output of
odo version
:Using the
main
branch.odo v2.5.0
(36f323d)How did you run odo exactly?
Using this Devfile, inspired from https://github.com/kadel/devfile-nodejs-deploy/blob/main/devfile.yaml
Actual behavior
Expected behavior
The documentation states that:
If I understand correctly,
buildContext
should be an optional field defaulting to${PROJECT_SOURCE}
.So I think we should support this default value if not set. Or, if required, exit with an appropriate error message.
I came across this issue when working on #5322, but I preferred to separate the issues / PRs.
The text was updated successfully, but these errors were encountered: