remove duplicate certificate configuration for proxy test
The issue was introduced in the following commit,
093282f5ea
Signed-off-by: Benjamin Wang <wachao@vmware.com>
This commit is contained in:
@ -238,7 +238,8 @@ func newProxyV3Proc(cfg *EtcdServerProcessConfig) *proxyV3Proc {
|
|||||||
default:
|
default:
|
||||||
tlsArgs = append(tlsArgs, cfg.TlsArgs[i])
|
tlsArgs = append(tlsArgs, cfg.TlsArgs[i])
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
if len(cfg.TlsArgs) > 0 {
|
||||||
// Configure certificates for connection proxy ---> server.
|
// Configure certificates for connection proxy ---> server.
|
||||||
// This certificate must NOT have CN set.
|
// This certificate must NOT have CN set.
|
||||||
tlsArgs = append(tlsArgs,
|
tlsArgs = append(tlsArgs,
|
||||||
@ -247,6 +248,7 @@ func newProxyV3Proc(cfg *EtcdServerProcessConfig) *proxyV3Proc {
|
|||||||
"--cacert", path.Join(FixturesDir, "ca.crt"),
|
"--cacert", path.Join(FixturesDir, "ca.crt"),
|
||||||
"--client-crl-file", path.Join(FixturesDir, "revoke.crl"))
|
"--client-crl-file", path.Join(FixturesDir, "revoke.crl"))
|
||||||
}
|
}
|
||||||
|
|
||||||
return &proxyV3Proc{
|
return &proxyV3Proc{
|
||||||
proxyProc{
|
proxyProc{
|
||||||
lg: cfg.lg,
|
lg: cfg.lg,
|
||||||
|
Reference in New Issue
Block a user