Skip to content
This repository was archived by the owner on May 6, 2020. It is now read-only.
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

Description

@Cryptophobia

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions