contraband / autopilot

cf plugin for hands-off, zero downtime application deploys
Apache License 2.0
130 stars 43 forks source link

Add flag to stop "venerable" version instead of delete #27

Closed dan-kirberger closed 7 years ago

dan-kirberger commented 8 years ago

We're leaning towards using the autopilot plugin as a base for our CF app automation, instead of messing with shell scripts that parse the CLI output directly. Hopefully it is of some value to you as well, if you'll forgive my Go training wheels.

Two modifications we require are: 1) Ability to leave old version of app in PCF for revert. That is covered by this change request. 2) Ability to revert to the previous ("venerable") version of the app quickly. That is next.

With this change you can optionally stop the previous version of the app instead of deleting it. I'm working on a "zero-downtime-rollback" command next that will re-instate the venerable as the old version.

I'm using "stop" (and later, "start") to keep the existing app config, as it was at the time the app was pushed, since we no longer have access to the version of the manifest file used to push that app - which may have changed since. I imagine the "zero-downtime-rollback" command will consist of something like: 1) Rename {appName} to {appName}-reverted 2) Rename {appName}-venerable to {appName} 3) Delete {appName}-reverted

concourse-bot commented 8 years ago

Hi there!

We use Pivotal Tracker to provide visibility into what our team is working on. A story for this issue has been automatically created.

The current status is as follows:

This comment, as well as the labels on the issue, will be automatically updated as the status in Tracker changes.

xoebus commented 7 years ago

Thanks for the pull request! I want to keep autopilot as small and simple as possible. And, unfortunately, that means saying no to good features like this.

Feel free to fork if this doesn't work for you.