From ecdde862bfa624fec4f14cb159cab0f7871de776 Mon Sep 17 00:00:00 2001 From: "bin.hu" Date: Mon, 18 Sep 2023 14:08:36 +0800 Subject: [PATCH] docs: fix error example in deployment strategies Signed-off-by: bin.hu --- docs/gitbook/usage/deployment-strategies.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/gitbook/usage/deployment-strategies.md b/docs/gitbook/usage/deployment-strategies.md index d49b09d87..fae2f62e2 100644 --- a/docs/gitbook/usage/deployment-strategies.md +++ b/docs/gitbook/usage/deployment-strategies.md @@ -126,11 +126,11 @@ the step and the maximum weight value in 0 to 100 range. Example: ```yaml -canary: +# canary.yaml +spec: analysis: - promotion: - maxWeight: 50 - stepWeight: 20 + maxWeight: 50 + stepWeight: 20 ``` This configuration performs analysis starting from 20, increasing by 20 until weight goes above 50. @@ -148,10 +148,10 @@ In order to enable non-linear promotion a new parameter was introduced: Example: ```yaml -canary: +# canary.yaml +spec: analysis: - promotion: - stepWeights: [1, 2, 10, 80] + stepWeights: [1, 2, 10, 80] ``` This configuration performs analysis starting from 1, going through `stepWeights` values till 80.