mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-07 17:48:29 +08:00
enhance: Expose configs Manager (#41586)
See also: #41585 Signed-off-by: yangxuan <xuan.yang@zilliz.com>
This commit is contained in:
parent
cd60b965c8
commit
6b08eff4fe
@ -300,3 +300,7 @@ func (bt *BaseTable) Reset(key string) error {
|
||||
bt.mgr.EvictCachedValue(key)
|
||||
return nil
|
||||
}
|
||||
|
||||
func (bt *BaseTable) Manager() *config.Manager {
|
||||
return bt.mgr
|
||||
}
|
||||
|
||||
@ -314,6 +314,22 @@ We recommend using version 1.2 and above.`,
|
||||
p.EtcdAuthPassword.Init(base.mgr)
|
||||
}
|
||||
|
||||
func (p *EtcdConfig) GetAll() map[string]string {
|
||||
return map[string]string{
|
||||
"etcd.endpoints": p.Endpoints.GetValue(),
|
||||
"etcd.metaRootPath": p.MetaRootPath.GetValue(),
|
||||
"etcd.ssl.enabled": p.EtcdUseSSL.GetValue(),
|
||||
"etcd.ssl.tlsCert": p.EtcdTLSCert.GetValue(),
|
||||
"etcd.ssl.tlsKey": p.EtcdTLSKey.GetValue(),
|
||||
"etcd.ssl.tlsCACert": p.EtcdTLSCACert.GetValue(),
|
||||
"etcd.ssl.tlsMinVersion": p.EtcdTLSMinVersion.GetValue(),
|
||||
"etcd.requestTimeout": p.RequestTimeout.GetValue(),
|
||||
"etcd.auth.enabled": p.EtcdEnableAuth.GetValue(),
|
||||
"etcd.auth.userName": p.EtcdAuthUserName.GetValue(),
|
||||
"etcd.auth.password": p.EtcdAuthPassword.GetValue(),
|
||||
}
|
||||
}
|
||||
|
||||
// /////////////////////////////////////////////////////////////////////////////
|
||||
// --- tikv ---
|
||||
type TiKVConfig struct {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user