cloudfoundry / cloud_controller_ng

Cloud Foundry Cloud Controller
Apache License 2.0
191 stars 357 forks source link

Add Canary deployments #3892

Closed Samze closed 2 months ago

Samze commented 2 months ago

New Baras test - https://github.com/cloudfoundry/capi-bara-tests/pull/101

Closes #3837

Trying it

cf push dora -i 2

# Trigger a canary deploy
deployment_guid=$(cf curl -X POST /v3/deployments -d "{ \"strategy\": \"canary\", \"relationships\": { \"app\": { \"data\": { \"guid\": [\"$(cf app dora --guid)\"] } } } }" | jq -r .guid)

# Observe that a new canary web process starts
cf apps

# Observe the deployment is in state paused
cf curl  /v3/deployments/$deployment_guid | jq .status

# Continue the deployment
cf curl -X POST /v3/deployments/$deployment_guid/actions/continue

# Observe as the canary app is rolled out and old processes are removed
watch cf apps
linux-foundation-easycla[bot] commented 2 months ago

CLA Signed

The committers listed above are authorized under a signed CLA.