Skip to content

Commit

Permalink
embed: add a warning to log that we changed certificate for metrics e…
Browse files Browse the repository at this point in the history
…ndpoints

Signed-off-by: Gladkov Alexey <agladkov@redhat.com>
  • Loading branch information
legionus committed Jul 13, 2020
1 parent 670a78a commit d76775e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions embed/etcd.go
Original file line number Diff line number Diff line change
Expand Up @@ -672,6 +672,7 @@ func (e *Etcd) serveMetrics() (err error) {
tlsInfo := &e.cfg.ClientTLSInfo
if !e.cfg.MetricsTLSInfo.Empty() {
tlsInfo = &e.cfg.MetricsTLSInfo
e.cfg.logger.Warn("ignoring client certificates for additional metrics and health endpoints since metrics certificates given")
}
if murl.Scheme == "http" {
tlsInfo = nil
Expand Down

0 comments on commit d76775e

Please sign in to comment.