mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
e2e: drop "ca-file" flags
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
This commit is contained in:
parent
4f1cf30c7d
commit
fa5f768236
@ -250,12 +250,12 @@ func newProxyV3Proc(cfg *etcdServerProcessConfig) *proxyV3Proc {
|
||||
case "--key-file":
|
||||
tlsArgs = append(tlsArgs, "--key", cfg.tlsArgs[i+1], "--key-file", cfg.tlsArgs[i+1])
|
||||
i++
|
||||
case "--ca-file":
|
||||
case "--trusted-ca-file":
|
||||
tlsArgs = append(tlsArgs, "--cacert", cfg.tlsArgs[i+1], "--trusted-ca-file", cfg.tlsArgs[i+1])
|
||||
i++
|
||||
case "--auto-tls":
|
||||
tlsArgs = append(tlsArgs, "--auto-tls", "--insecure-skip-tls-verify")
|
||||
case "--peer-ca-file", "--peer-cert-file", "--peer-key-file":
|
||||
case "--peer-trusted-ca-file", "--peer-cert-file", "--peer-key-file":
|
||||
i++ // skip arg
|
||||
case "--client-cert-auth", "--peer-auto-tls":
|
||||
default:
|
||||
|
@ -280,7 +280,7 @@ func (cfg *etcdProcessClusterConfig) tlsArgs() (args []string) {
|
||||
tlsClientArgs := []string{
|
||||
"--cert-file", certPath,
|
||||
"--key-file", privateKeyPath,
|
||||
"--ca-file", caPath,
|
||||
"--trusted-ca-file", caPath,
|
||||
}
|
||||
args = append(args, tlsClientArgs...)
|
||||
|
||||
@ -297,7 +297,7 @@ func (cfg *etcdProcessClusterConfig) tlsArgs() (args []string) {
|
||||
tlsPeerArgs := []string{
|
||||
"--peer-cert-file", certPath,
|
||||
"--peer-key-file", privateKeyPath,
|
||||
"--peer-ca-file", caPath,
|
||||
"--peer-trusted-ca-file", caPath,
|
||||
}
|
||||
args = append(args, tlsPeerArgs...)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user