Skip to content

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

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

Open
Cryptophobia opened this issue Mar 13, 2018 · 0 comments

Comments

@Cryptophobia
Copy link
Member

From @Cryptophobia on June 26, 2017 15:11

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...?

Copied from original issue: deis/controller#1310

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

1 participant