Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2nd non-default deploy command defined in devfile causes odo to report error #5452

Closed
ajm01 opened this issue Feb 10, 2022 · 6 comments
Closed
Labels
kind/bug Categorizes issue or PR as related to a bug. priority/High Important issue; should be worked on before any other issues (except priority/Critical issue(s)). v2 Issue or PR that applies to the v2 of odo

Comments

@ajm01
Copy link

ajm01 commented Feb 10, 2022

/kind bug

What versions of software are you using?

Operating System:

Distributor ID: Ubuntu
Description:    Ubuntu 20.04.3 LTS
Release:        20.04
Codename:       focal

Output of odo version:

$ odo version
odo v2.5.0 (724f16e68)

How did you run odo exactly?

$ odo deploy

with the following two deploy commands defined in the devfile:

  - id: deploy
    composite:
        commands:
          - build-image-stack-provided
          - outerloop-deploy
        group:
          kind: deploy
          isDefault: true
  - id: deploy-app-image
    composite:
       commands:
         - build-image-app-provided
         - outerloop-deploy
       group:
         kind: deploy
         isDefault: false

id: deploy is the default commands for the devfile and
id: deploy-app-image is a second non-default command.

Actual behavior

odo deply reports an error:

$ odo deploy
 ✗  more than one default deploy command found in devfile, should not happen

Expected behavior

i expect to be able to call either:

$ odo deploy
or
$odo deploy-app-image

to have two slightly different build strategies occur as part of deploy.

Any logs, error output, etc?

@kadel
Copy link
Member

kadel commented Feb 11, 2022

This has two parts.
The first one is clearly a bug

/kind bug

If there is only one kind: deploy command that is set as isDefault: true all other kind: deploy commands are marked as isDefault: false, or don't set isDefault (default is false) than odo deploy should not error out.

The second part

$odo deploy-app-image

to have two slightly different build strategies occur as part of deploy.

is more a new feature. I've created a separate issue to cover this #5454

@openshift-ci openshift-ci bot added the kind/bug Categorizes issue or PR as related to a bug. label Feb 11, 2022
@kadel kadel added v2 Issue or PR that applies to the v2 of odo v3 priority/Medium Nice to have issue. Getting it done before priority changes would be great. labels Feb 11, 2022
@kadel kadel added priority/High Important issue; should be worked on before any other issues (except priority/Critical issue(s)). and removed priority/Medium Nice to have issue. Getting it done before priority changes would be great. labels Feb 23, 2022
@feloy
Copy link
Contributor

feloy commented Feb 23, 2022

The bug is fixed in v3 as part of #5460

@kadel
Copy link
Member

kadel commented Feb 23, 2022

The bug is fixed in v3 as part of #5460

This is something that we should backport into v2

@kadel
Copy link
Member

kadel commented Feb 23, 2022

The bug is fixed in v3 as part of #5460

This is something that we should backport into v2

just noticed #5481 👍 thank you @feloy

@rm3l
Copy link
Member

rm3l commented Sep 2, 2022

Closing this issue as it has been fixed in v3 (via #5460) and backported to v2 (via #5481).

/close

The other part of the issue (#5454) will be addressed after v3 GA.

@openshift-ci openshift-ci bot closed this as completed Sep 2, 2022
@openshift-ci
Copy link

openshift-ci bot commented Sep 2, 2022

@rm3l: Closing this issue.

In response to this:

Closing this issue as it has been fixed in v3 (via #5460) and backported to v2 (via #5481).

/close

The other part of the issue (#5454) will be addressed after v3 GA.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug. priority/High Important issue; should be worked on before any other issues (except priority/Critical issue(s)). v2 Issue or PR that applies to the v2 of odo
Projects
None yet
Development

No branches or pull requests

4 participants