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

Add ability to delete app #41

Open
CAFxX opened this issue Nov 3, 2017 · 3 comments
Open

Add ability to delete app #41

CAFxX opened this issue Nov 3, 2017 · 3 comments

Comments

@CAFxX
Copy link

CAFxX commented Nov 3, 2017

A common pattern we have is the following:

  1. deploy one or more apps in an integration-testing space
  2. run integration tests
  3. delete the apps deployed in step 1

Currently there's no way to do step 3 with the cf resource, so we have to resort to scripts. Would be nice if the cf resource was extended to allow this kind of operations

@archgrove
Copy link

+1 on this as a useful thing. I know that Concourse doesn't really have a concept of resource destruction right now, but perhaps something along the lines of https://github.com/ljfranklin/terraform-resource action: destroy might be a stopgap?

@cappyzawa
Copy link
Contributor

cappyzawa commented Feb 5, 2018

I think it's a useful feature.

Image is like below?

put: cf
params: 
  action: delete # (or deploy)
  manifest: ...

....

If we implement it, we may be able to do it with cloudfoundry-community/go-cfclient.

https://github.com/cloudfoundry-community/go-cfclient/blob/bdb31282431a30516bb8d28628e95dd47e577df6/apps.go#L375-L384

@sunshineperi
Copy link

Yup, this is definitely better to have. And I just found this, https://github.com/nulldriver/cf-cli-resource,
which allow you to do cf delete.

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

No branches or pull requests

5 participants