cloudfoundry-community / cf-resource

Concourse resource for interacting with Cloud Foundry
Apache License 2.0
35 stars 63 forks source link

Add support for --no-start push option #53

Closed klakin-pivotal closed 6 years ago

klakin-pivotal commented 6 years ago

cf push supports a --no-start option. The CF Concourse Resource should support this as well.

Unfortunately this option is unsupported by the zero-downtime-push feature of autopilot, which complicates the implementation and tests a bit.

Signed-off-by: Navdeep Pama npama@pivotal.io

pivotal-issuemaster commented 6 years ago

@klakin-pivotal Please sign the Contributor License Agreement!

Click here to manually synchronize the status of this Pull Request.

See the FAQ for frequently asked questions.

pivotal-issuemaster commented 6 years ago

@klakin-pivotal Thank you for signing the Contributor License Agreement!

vito commented 6 years ago

Would you mind providing some context for this? What's the utility in pushing in CI without starting it? Is it started as part of some later step?

klakin-pivotal commented 6 years ago

Is it started as part of some later step?

Yes. The use case is for manually-triggered failover as part of disaster recovery. The idea is that all you need to do to activate the failover instance is a cf start.

vito commented 6 years ago

Good enough for me. Thanks!

xyloman commented 6 years ago

Another use case is pushing applications that only run as tasks. There are other problems in CF around staging but in the future the hope would be you could push an application that would then be scheduled to run on a cron job but not be running all of the time.