pkg/webhook/resourcesemantics/validation
Dave Protasowski f4787640a1
[webhook] OTel changes (#3189)
* webhook changes for observability

* go mod

* vendor

* Allow the webhook to accept a MetricsProvider. This makes it easier to unit test

Digging into OTel implementation it looks like instruments are cached.
Thus when different webhooks request the same instrument a cache lookup
for the instrument will occur.

* passthrough additional OTel interfaces

* linter fixes

* drop global meter in tests

* PR feedback

* PR feedback

* when recording the admission/conversion duration use the attributes from the labeler

* add a comment that otelhttp middleware creates the labeler

* simply code for readability

* change metric names to allow reuse across different webhook types

* fix linter

* tweak attribute names
2025-07-04 14:53:57 +00:00
..
controller.go Fix `WEBHOOK_DISABLE_NAMESPACE_OWNERSHIP` env-var (#3107) 2024-10-21 15:07:27 +00:00
options.go Defaulting Controller options for all kind of webhooks (#2738) 2023-06-12 08:38:02 +00:00
options_test.go fix boilerplate (#2753) 2023-06-12 15:40:44 +00:00
reconcile_config.go Give users the ability to disable namespace ownership of webhook configurations (#3095) 2024-09-26 01:31:27 +00:00
reconcile_config_test.go gofumpt the repo (#3067) 2024-06-25 07:27:07 +00:00
validation_admit.go [webhook] OTel changes (#3189) 2025-07-04 14:53:57 +00:00
validation_admit_test.go gofumpt the repo (#3067) 2024-06-25 07:27:07 +00:00
validation_deprecated_test.go gofumpt the repo (#3067) 2024-06-25 07:27:07 +00:00