Skip to content

Commit

Permalink
Merge pull request #18203 from ahrtr/metrics_url_20240618
Browse files Browse the repository at this point in the history
Update the error message when client certificate isn't provided for secure metrics url
  • Loading branch information
ahrtr authored Jun 19, 2024
2 parents 9c59b28 + 692e44a commit 908d31a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/embed/etcd.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 908d31a

Please sign in to comment.