Error of admission webhook prevents scaling of deployment despite falurePolicy: Ignore
#802
Labels
area:auto-instrumentation
Issues for auto-instrumentation
area:collector
Issues for deploying collector
We use auto-instrumentation via annotation with our pods. For that, there has to be an
Instrumentation
CRD in the same namespace as the pod. If this is not the case the following error occurs in the opentelemetry-operator:The error message is fine, but what happens is that the pod/deployment does not get scaled up because the addmission webhook denies the request with the event:
because of
opentelemetry-operator/internal/webhookhandler/webhookhandler.go
Lines 85 to 88 in ecb139c
From my understanding, this error should be ignored and the respective deployment/pod (which has the auto-instumentation annotation) should be scaled up nevertheless, albeit without the mutation, because the admission webhook has
failurePolicy: Ignore
. Am I missing something?The instrumentation feature is not critical for the deployment (at least in my context), so I would rather have a running pod without instrumentation than no pod at all.
The text was updated successfully, but these errors were encountered: