From 84226a722c078d0800d09700e1beaf41f5001e4e Mon Sep 17 00:00:00 2001 From: Gyu-Ho Lee Date: Tue, 30 May 2017 10:02:48 -0700 Subject: [PATCH] Documentation: add 'yaml.NewConfig' change in 3.2 Signed-off-by: Gyu-Ho Lee --- Documentation/upgrades/upgrade_3_2.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Documentation/upgrades/upgrade_3_2.md b/Documentation/upgrades/upgrade_3_2.md index 3bf30e6b4..47c5bef2b 100644 --- a/Documentation/upgrades/upgrade_3_2.md +++ b/Documentation/upgrades/upgrade_3_2.md @@ -30,6 +30,22 @@ resp.TTL == -1 err == nil ``` +`clientv3.NewFromConfigFile` is moved to `yaml.NewConfig`. + +Before + +```go +import "github.com/coreos/etcd/clientv3" +clientv3.NewFromConfigFile +``` + +After + +```go +import clientv3yaml "github.com/coreos/etcd/clientv3/yaml" +clientv3yaml.NewConfig +``` + ### Server upgrade checklists #### Upgrade requirements