Odo does not apply multiple deploy commands #5480
Labels
area/deploy
Issues or PRs specific to the `odo deploy` command
kind/bug
Categorizes issue or PR as related to a bug.
triage/duplicate
Indicates an issue or PR that is a duplicate of other open issue or PR.
/kind bug
What versions of software are you using?
Operating System:
Output of
odo version
: odo v2.5.0 (2bd4f07)How did you run odo exactly?
run
odo deploy
with a devfile having 2 deploy commands defined, one default, and one non-default.Actual behavior
Seeing error:
However, I have one and only one default deploy command defined in devfile.
It is because Odo does not check for
isDefault
property, only checks for length of deploy commands.odo/pkg/devfile/adapters/kubernetes/component/adapter.go
Lines 855 to 860 in ce9506d
Expected behavior
Odo should allow multiple deploy commands, but only one
isDefault
Any logs, error output, etc?
The text was updated successfully, but these errors were encountered: