Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: kube-ovn-controller cannot be ready when ENABLE_METRICS is false #4886

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

zhaocongqi
Copy link
Member

Pull Request

What type of this PR

Examples of user facing changes:

  • Bug fixes

Which issue(s) this PR fixes

Fixes #4862

@coveralls
Copy link

coveralls commented Dec 30, 2024

Pull Request Test Coverage Report for Build 12543295303

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 0 of 2 (0.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.001%) to 22.087%

Changes Missing Coverage Covered Lines Changed/Added Lines %
pkg/speaker/config.go 0 2 0.0%
Totals Coverage Status
Change from base Build 12542989912: -0.001%
Covered Lines: 10160
Relevant Lines: 45999

💛 - Coveralls

cmd/ovn_monitor/ovn_monitor.go Outdated Show resolved Hide resolved
cmd/pinger/pinger.go Outdated Show resolved Hide resolved
@zhaocongqi zhaocongqi marked this pull request as ready for review December 31, 2024 08:35
@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. bug Something isn't working labels Dec 31, 2024
util.LogFatalAndExit(err, "failed to listen on %s", util.JoinHostPort(metricsAddr, config.PprofPort))
}
svr := manager.Server{
Name: "metrics",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Name: "metrics",
Name: "health-check",

Comment on lines +102 to +107
Server: &http.Server{
Handler: http.NewServeMux(),
MaxHeaderBytes: 1 << 20,
IdleTimeout: 90 * time.Second,
ReadHeaderTimeout: 32 * time.Second,
},
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to serve TLS when config.SecureServing is true, or do not use TLS in heclth check when metrics is disabled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working size:L This PR changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] kube-ovn-controller cannot be ready when ENABLE_METRICS is false
4 participants