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

odo delete <comp> --project <project> doesn't work without a context flag for devfiles #4597

Closed
girishramnani opened this issue Apr 7, 2021 · 2 comments
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@girishramnani
Copy link
Contributor

girishramnani commented Apr 7, 2021

/kind bug

What versions of software are you using?

Operating System: MacOS

Output of odo version: master

How did you run odo exactly?

I created a component

odo create --s2i nodejs nodejs --app app --project component479dkk --context /var/folders/b8/r_v6zg3x2x9c7mpf6csnxs4h0000gn/T/461512622
odo push 

then I confirmed it works with describe and url check

but when I tried to delete it outside a context dir as it doesn’t know that its an s2i or devfile it tried to delete the DC and fails

odo delete nodejs --app app --project component479dkk -f
- ✗  Component nodejs does not exist on the cluster

Actual behavior

Expected behavior

Should delete the component

Any logs, error output, etc?

path devfile.yaml doesn't exist, skipping it
I0407 18:02:15.359503   84905 util.go:748] Response will be cached in /var/folders/b8/r_v6zg3x2x9c7mpf6csnxs4h0000gn/T/odohttpcache for 1h0m0s
I0407 18:02:15.359913   84905 util.go:761] Cached response used.
I0407 18:02:16.369629   84905 util.go:422] path /Users/girish/devfile.yaml doesn't exist, skipping it
I0407 18:02:16.578464   84905 util.go:422] path devfile.yaml doesn't exist, skipping it
I0407 18:02:16.578506   84905 deploymentConfigs.go:32] Getting DeploymentConfig: nodejs-app
@openshift-ci-robot openshift-ci-robot added the kind/bug Categorizes issue or PR as related to a bug. label Apr 7, 2021
@dharmit
Copy link
Member

dharmit commented Apr 7, 2021

/close

likely duplicte of #4451. Reopen if it's not a dupe.

@openshift-ci-robot
Copy link
Collaborator

@dharmit: Closing this issue.

In response to this:

/close

likely duplicte of #4451. Reopen if it's not a dupe.

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.
Projects
None yet
Development

No branches or pull requests

3 participants