You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/rfcs/instrumentation-v1beta1.md
+13-5Lines changed: 13 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -284,12 +284,20 @@ This allows gradual migration: users can switch to labels at their own pace whil
284
284
285
285
#### Deprecation path
286
286
287
-
1. **v1beta1**: Both labels and annotations supported. Annotations deprecated but functional.
288
-
2. **v1alpha1 removal**: Labels become the primary mechanism. Annotations support is dropped.
287
+
**Phase 1 — v1beta1 (transition period):**
288
+
- Both labels and annotations supported
289
+
- No `objectSelector` on webhook — all pods still pass through (required for annotation backwards compatibility)
290
+
- Annotations deprecated in documentation
291
+
- Operator logs deprecation warnings when annotations are used
289
292
290
-
#### Webhook optimization
293
+
**Phase 2 — v1alpha1 removal:**
294
+
- Annotations support dropped
295
+
- `objectSelector`enabled on webhook — only pods with labels are processed
296
+
- Significant performance improvement for large clusters
291
297
292
-
With labels, the operator can configure the MutatingWebhookConfiguration with an `objectSelector`:
298
+
##### Webhook optimization (Phase 2)
299
+
300
+
Once annotation support is removed, the operator can configure the MutatingWebhookConfiguration with an `objectSelector`:
293
301
294
302
```yaml
295
303
webhooks:
@@ -303,7 +311,7 @@ webhooks:
303
311
# ... other languages
304
312
```
305
313
306
-
This reduces webhook invocations to only pods that have opted in via labels, improving cluster performance. Pods using legacy annotations will still pass through the webhook (no `objectSelector` match), maintaining backwards compatibility.
314
+
This reduces webhook invocations to only pods that have opted in via labels, improving cluster performance. This optimization is only possible after annotations are no longer supported, since `objectSelector` cannot match annotations.
0 commit comments