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

discovery(k8s): Only register client-go metrics adapters when needed #13992

Merged
merged 1 commit into from
Apr 29, 2024

Commits on Apr 25, 2024

  1. discovery(k8s): Only register client-go metrics adapters when needed

    Previously the metrics adapters for client-go were registered in an init function.
    This resulted in clobbering default metrics providers when these packages are imported
    into an application that leverages the default client-go metrics registry.
    
    Instead, let's only register these adapters when requested.
    
    Signed-off-by: Stephen Heckler <sheckler@cloudflare.com>
    Stephen Heckler committed Apr 25, 2024
    Configuration menu
    Copy the full SHA
    31a4217 View commit details
    Browse the repository at this point in the history