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

current_app_name behavior loses environment variables

Open sartan opened this issue 7 years ago • 1 comments

When the zero-downtime deployment is triggered by the current_app_name property, it does not transfer over the environment variables that were set on the currently deployed app. This results in loss of any environment variables which were set via cf set-env rather than by the manifest or pipeline.

One could say that this is by design, however it runs counter to the cf push behavior, which maintains any currently set environment variables that are not present in the manifest.

sartan avatar Aug 30 '18 22:08 sartan

One could say that this is by design

If it is then it seems odd. Why would rolling deployments not keep the env vars, whereas non-rolling deployments do. If it is 'by design' it would seem more logical to have both cases work the same way.

kdvolder avatar May 15 '19 20:05 kdvolder