Merge pull request #8004 from gyuho/doc

Documentation: add 'yaml.NewConfig' change in 3.2
release-3.3
Gyu-Ho Lee 2017-05-30 10:13:57 -07:00 committed by GitHub
commit c3879e3776
1 changed files with 16 additions and 0 deletions

View File

@ -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