From 90ff6843e25cc17d03c73afefb91b826cd816653 Mon Sep 17 00:00:00 2001 From: Alexander Matyushentsev Date: Mon, 8 Apr 2019 17:15:20 -0700 Subject: [PATCH] Fix blue-gree example instructions (#21) --- README.md | 1 - blue-green/README.md | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 7033ccd..317bef2 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,6 @@ to explore ArgoCD and GitOps! | [kustomize2-guestbook](kustomize-guestbook/) | The guestbook application as a Kustomize 2 app | | [pre-post-sync](pre-post-sync/) | Demonstrates Argo CD PreSync and PostSync hooks | | [helm-dependency](helm-dependency/) | Demonstrates how to customize an OTS (off-the-shelf) helm chart from an upstream repo | -| [blue-green-deploy](blue-green-deploy/) | Demonstrates an Argo CD Sync hook which performs a blue/green deployment | | [sock-shop](sock-shop/) | A microservices demo application (https://microservices-demo.github.io) | | [plugins](plugins/) | Applications which demonstrate config management plugins usage | | [blue-green](blue-green/) | Demonstrates how to implement blue-green deployment using [Argo Rollouts](https://github.com/argoproj/argo-rollouts) diff --git a/blue-green/README.md b/blue-green/README.md index 393cb33..b1ad020 100644 --- a/blue-green/README.md +++ b/blue-green/README.md @@ -24,7 +24,7 @@ The `ks-guestbook-demo:0.2` is still considered `blue` available only via previe 4. Promote `ks-guestbook-demo:0.2` to `green` by patching `Rollout` resource: ``` -argocd app patch-resource blue-green --kind Rollout --resource-name blue-green-helm-guestbook --patch '{ "spec": { "paused": false } }' --patch-type 'application/merge-patch+json' +argocd app patch-resource blue-green --kind Rollout --resource-name blue-green-helm-guestbook --patch '{ "status": { "verifyingPreview": false } }' --patch-type 'application/merge-patch+json' ``` This promotes `ks-guestbook-demo:0.2` to `green` status and `Rollout` deletes old replica which runs `ks-guestbook-demo:0.1`.