cf-resource icon indicating copy to clipboard operation
cf-resource copied to clipboard

Add ability to delete app

Open CAFxX opened this issue 8 years ago • 3 comments

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

CAFxX avatar Nov 03 '17 12:11 CAFxX

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

archgrove avatar Jan 25 '18 11:01 archgrove

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

cappyzawa avatar Feb 05 '18 15:02 cappyzawa

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.

sunshineperi avatar Sep 05 '18 06:09 sunshineperi