mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #18203 from ahrtr/metrics_url_20240618
Update the error message when client certificate isn't provided for secure metrics url
This commit is contained in:
commit
908d31a6fe
@ -822,7 +822,7 @@ func (e *Etcd) pickGRPCGatewayServeContext(splitHTTP bool) *serveCtx {
|
||||
panic("Expect at least one context able to serve grpc")
|
||||
}
|
||||
|
||||
var ErrMissingClientTLSInfoForMetricsURL = errors.New("client TLS key/cert (--cert-file, --key-file) must be provided for metrics url")
|
||||
var ErrMissingClientTLSInfoForMetricsURL = errors.New("client TLS key/cert (--cert-file, --key-file) must be provided for metrics secure url")
|
||||
|
||||
func (e *Etcd) createMetricsListener(murl url.URL) (net.Listener, error) {
|
||||
tlsInfo := &e.cfg.ClientTLSInfo
|
||||
|
Loading…
x
Reference in New Issue
Block a user