Commit e73743b
perf(controller): extend informer cache transform to Pod and CustomRun
Extend the cache transform to reduce memory usage for additional resource types:
**Pod Transform (for TaskRun controller)**
- 66.4% size reduction for realistic TaskRun pods
- Strips: ManagedFields, OwnerReferences, Labels, Finalizers,
last-applied-configuration, and most Spec fields
- Preserves: Name, Namespace, Annotations, Spec.Containers[].Name
(for status sorting), all Status fields
**Enhanced TaskRun Transform**
- For completed TaskRuns, now also strips:
Status.Steps, Status.Sidecars, Status.PodName,
Status.RetriesStatus, Status.CompletionTime
- Preserves: Status.Results, Status.Artifacts, Status.Conditions
**CustomRun Transform (new)**
- Strips: ManagedFields, last-applied-configuration
- For completed CustomRuns: Status.RetriesStatus, Status.CompletionTime
- Preserves: Status.Results, Status.Conditions
Adds kube_factory.go to wire the Pod transform into the Kubernetes
filtered informer factory used by the TaskRun controller.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent e741d16 commit e73743b
File tree
5 files changed
+1244
-1
lines changed- pkg/informer/transform
5 files changed
+1244
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
0 commit comments