Skip to content
This repository was archived by the owner on May 6, 2020. It is now read-only.

When namespace is missing, apps:destroy should delete from postgres db #1310

Closed
Cryptophobia opened this issue Jun 26, 2017 · 1 comment
Closed

Comments

@Cryptophobia
Copy link
Contributor

Cryptophobia commented Jun 26, 2017

There is an issue with the deis-controller when it comes to deleting applications. Let's say I create a new app in deis-controller called testing-app . The app is created in the data model for deis-controller and everything works correctly.

But let's say I am a kubernetes fanboi and I delete the the entire namespace (testing-app) of the application instead of using the good old deis-controller api to do the exact same job. This will no doubt achieve what I want because the application will disappear. However, when I query the api the application is still there. So the next thing I want to do is delete the application testing-app from deis using the deis apps:destroy -a testing-app or delete using DELETE on the v2/apps/testing-app route. However that call does not succeed because it does not find the namespace, when in reality everything is done for me, I just want this app to disappear from the deis db as well.

Is this as simple as adding more if logic that handle this case or am I missing something extra...?

@Cryptophobia
Copy link
Contributor Author

This issue was moved to teamhephy/controller#14

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

No branches or pull requests

1 participant