Bladeren bron

Documentation: add 'yaml.NewConfig' change in 3.2

Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
Gyu-Ho Lee 8 jaren geleden
bovenliggende
commit
84226a722c
1 gewijzigde bestanden met toevoegingen van 16 en 0 verwijderingen
  1. 16 0
      Documentation/upgrades/upgrade_3_2.md

+ 16 - 0
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