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

Deleting app deletes the other component those are not part of the local config #2180

Closed
amitkrout opened this issue Sep 25, 2019 · 3 comments

Comments

@amitkrout
Copy link
Contributor

[kind/bug]

What versions of software are you using?

  • Operating System: Supported platform (However i ran it on Win10 only)
  • Output of odo version: master

How did you run odo exactly?

// in directory test1
PS C:\Users\User\go\src\github.com\openshift\odo\test1> odo create java --project testproject
 V  Validating component [621ms]
Please use `odo push` command to create the component with source deployed

PS C:\Users\User\go\src\github.com\openshift\odo\test1> odo push
Validation
 V  Checking component [1s]
[...]

// in directory test
PS C:\Users\User\go\src\github.com\openshift\odo\test> odo create java --project testproject
Please use `odo push` command to create the component with source deployed

PS C:\Users\User\go\src\github.com\openshift\odo\test> odo push
Validation
 V  Checking component [894ms]
[...]

PS C:\Users\User\go\src\github.com\openshift\odo\test> odo component list
APP     NAME                TYPE     SOURCE         STATE
app    java-test-fozi      java     file:///./     Pushed
app    java-test1-ikjb     java     file:///./     Pushed

PS C:\Users\User\go\src\github.com\openshift\odo\test> odo app delete app -f
This application has following components that will be deleted
component named java-test-fozi
component named java-test1-ikjb         // Why this component is deleted ?
No services / could not get services
Deleted application: app from project: testproject

PS C:\Users\User\go\src\github.com\openshift\odo\test> odo component list
APP     NAME               TYPE     SOURCE     STATE
app     java-test1-ikjb     java     ./         Not Pushed

Actual behavior

Deleting the component which is not part of local config.

Expected behavior

should delete the app named app and the respective component present in the local config file

Any logs, error output, etc?

@kadel
Copy link
Member

kadel commented Sep 26, 2019

This is correct. Both components are part of the same app. So it makes sense that when you delete the whole application from the cluster both get deleted.

We just probably need to explain this better in help message and in the documentation.

@ghost
Copy link

ghost commented Nov 25, 2019

@girishramnani
Copy link
Contributor

seems like the linked PR openshift/openshift-docs#18280 has been merged. hence closing this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants