From 73a8e4bef18f6e73ef8e347ced575dfc23269808 Mon Sep 17 00:00:00 2001 From: Erikson Tung Date: Thu, 16 Apr 2020 12:51:44 -0700 Subject: [PATCH] waves: fix example wave files 'wave' Updata `UpdateWaves` expects `waves` but the example wave files were specifying waves with `wave`. This commit fixes all references of `wave` to `waves`. --- sources/updater/waves/README.md | 2 +- sources/updater/waves/accelerated-waves.toml | 8 ++++---- sources/updater/waves/default-waves.toml | 10 +++++----- sources/updater/waves/ohno.toml | 6 +++--- 4 files changed, 13 insertions(+), 13 deletions(-) diff --git a/sources/updater/waves/README.md b/sources/updater/waves/README.md index e48ce28ced9..b0a50a8e80b 100644 --- a/sources/updater/waves/README.md +++ b/sources/updater/waves/README.md @@ -22,7 +22,7 @@ All waves include the seeds of the prior wave, so if a node misses its wave for ## Writing wave files -Wave files must be [valid TOML](https://github.com/toml-lang/toml) containing a list of `[[wave]]` entries. +Wave files must be [valid TOML](https://github.com/toml-lang/toml) containing a list of `[[waves]]` entries. Waves defined in these files must contain two keys, `start_after` and `fleet_percentage`. `start_after` must be: diff --git a/sources/updater/waves/accelerated-waves.toml b/sources/updater/waves/accelerated-waves.toml index 2f8f0540385..e3c00b5b35b 100644 --- a/sources/updater/waves/accelerated-waves.toml +++ b/sources/updater/waves/accelerated-waves.toml @@ -1,18 +1,18 @@ # The following represents an "accelerated" set of update waves for a much # quicker deployment. The deployment lasts for 1 day, and quickly increases the # nodes updated at once. -[[wave]] +[[waves]] start_after = '1 hour' fleet_percentage = 3 -[[wave]] +[[waves]] start_after = '4 hours' fleet_percentage = 12 -[[wave]] +[[waves]] start_after = '8 hours' fleet_percentage = 50 -[[wave]] +[[waves]] start_after = '1 day' fleet_percentage = 100 diff --git a/sources/updater/waves/default-waves.toml b/sources/updater/waves/default-waves.toml index d9bedae367e..06e02a124f4 100644 --- a/sources/updater/waves/default-waves.toml +++ b/sources/updater/waves/default-waves.toml @@ -1,22 +1,22 @@ # The following represents a "normal" set of update waves for a typical # deployment. The deployment lasts for 6 days, and gradually increases the # nodes updated at once. -[[wave]] +[[waves]] start_after = '1 hour' fleet_percentage = 1 -[[wave]] +[[waves]] start_after = '4 hours' fleet_percentage = 5 -[[wave]] +[[waves]] start_after = '1 day' fleet_percentage = 10 -[[wave]] +[[waves]] start_after = '3 days' fleet_percentage = 25 -[[wave]] +[[waves]] start_after = '6 days' fleet_percentage = 100 diff --git a/sources/updater/waves/ohno.toml b/sources/updater/waves/ohno.toml index 6afdde78d6f..7ffdc5c9612 100644 --- a/sources/updater/waves/ohno.toml +++ b/sources/updater/waves/ohno.toml @@ -1,14 +1,14 @@ # The following represents an "emergency" set of update waves for a rapid # deployment. The deployment lasts for 3 hours, with a small initial wave, # and then all nodes will be updated after the first hour. -[[wave]] +[[waves]] start_after = '1 hour' fleet_percentage = 5 -[[wave]] +[[waves]] start_after = '2 hours' fleet_percentage = 25 -[[wave]] +[[waves]] start_after = '3 hours' fleet_percentage = 100