mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
clientv3/yaml: deprecate CAFile field
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
This commit is contained in:
parent
759fcb6e70
commit
ad8c326599
@ -70,9 +70,6 @@ func NewConfig(fpath string) (*clientv3.Config, error) {
|
||||
}
|
||||
}
|
||||
|
||||
if yc.CAfile != "" && yc.TrustedCAfile == "" {
|
||||
yc.TrustedCAfile = yc.CAfile
|
||||
}
|
||||
if yc.TrustedCAfile != "" {
|
||||
cp, err = tlsutil.NewCertPool([]string{yc.TrustedCAfile})
|
||||
if err != nil {
|
||||
|
Loading…
x
Reference in New Issue
Block a user