Closed RemyDeWolf closed 2 years ago
@RemyDeWolf this is my issue as well, thanks for opening it. Any update or workaround?
@travsten-aumni workaround for me was to disable the custom metricsProvider.
metricsProvider:
enabled: false
if you can't do that, installing a older version would get the mutating webhook configuration created properly and then upgrading datadog version.
The funny thing is that the datadog agent creates the mutating webhook configuration when it starts, it's not part of the helm package.
@RemyDeWolf Yes I wish it was part of the helm chart, that would have made it easier to find the missing mutatingwebhookconfiguration. I disabled the metricsProvider for now and that worked, so I guess it's good we're not using that right now... lol. Otherwise, like you say, downgrading version should be another workaround. Thanks again for reporting this and for the prompt response.
Looks like it's fixed in v1.18.0 or later. Upgrading the cluster agent and I don't see the error. https://github.com/DataDog/datadog-agent/pull/10171 @RemyDeWolf @travsten-aumni
Output of the info page (if this is a bug)
Describe what happened: When deploying Datadog with the latest helm chart and having both admission controller and metrics provider enabled, there was an error in the log and the admission controller was not created. After disabling the metrics provider, and trying again, the error is gone and the admission controller is created. This error seems similar to https://github.com/DataDog/datadog-agent/pull/10171 - we are using Datadog Cluster Agent (v1.17.0) which seems to have this fix - If not please discard this issue, we will wait for next release.
Describe what you expected: admission controller should be configured even if there was an error with metrics provider.
We could actually see the metrics provider, so it's unclear if this error was blocking
Steps to reproduce the issue:
try again after disabling the metricsProvider, the error is gone and the mutatingwebhookconfiguration is created
Additional environment details (Operating System, Cloud provider, etc):
cluster agent logs