Repository navigation
Commit b9a2c05
fix: serialize V1OwnerReference with wire names in GKE code executor
Pass V1OwnerReference directly in patch_body when patching the code ConfigMap so patch_namespaced_config_map serializes it with Kubernetes wire field names, and return a V1Job from the mock create_namespaced_job in unit tests.
Previously, owner_reference.to_dict() omitted the wire apiVersion field, causing patch_namespaced_config_map to fail with a warning and leaving job-mode code-src-* ConfigMaps orphaned in the cluster. Users upgrading from earlier versions should clean up any leaked code-src-* ConfigMaps.
Closes #7443
Closes #7444
PiperOrigin-RevId: 9960834701 parent 5f45441 commit b9a2c05
2 files changed
Lines changed: 33 additions & 1 deletion
File tree
- src/google/adk/code_executors
- tests/unittests/code_executors
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
475 | 475 | | |
476 | 476 | | |
477 | 477 | | |
478 | | - | |
| 478 | + | |
479 | 479 | | |
480 | 480 | | |
481 | 481 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
55 | 60 | | |
56 | 61 | | |
57 | 62 | | |
| |||
196 | 201 | | |
197 | 202 | | |
198 | 203 | | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
199 | 231 | | |
200 | 232 | | |
201 | 233 | | |
| |||
0 commit comments