gardener / gardener-extension-provider-azure

Gardener extension controller for the Azure cloud provider (https://azure.microsoft.com).
https://gardener.cloud
Apache License 2.0
9 stars 77 forks source link

Fix indentation in CCM ServiceMonitor #882

Closed rickardsjp closed 1 month ago

rickardsjp commented 1 month ago

How to categorize this PR?

/area monitoring /kind bug /platform azure

What this PR does / why we need it: The honorLabels, authorization, scheme, and tlsConfig fields are part of the Endpoint API, not the Spec. This indentation error caused the prometheus-operator to generate a scrape job configuration that specified http instead of https (because the scheme field was "missing". This in turn caused CCM-down alerts to fire because the scrape failed with a 400 error.

Which issue(s) this PR fixes: Fixes #

Special notes for your reviewer: FYI: I haven't tested this in the extension setup yet. /cc @istvanballok @hendrikKahl FYI @rfranzke

Release note:

Fixes a monitoring configuration issue that caused false CCM-down alerts to fire.