Commit 827ff42
committed
[Kubernetes] Accept PEP 585 'dict[K, V]' type strings in pod_config validator
kubernetes client >=36 regenerated its models with PEP 585 style type
strings, so map fields like metadata.labels now declare 'dict[str, str]'
instead of the old 'dict(str, str)'. The pod_config validator only matched
the parenthesized form, so the bracket form fell through to the model-import
path and failed with ModuleNotFoundError (No module named
'kubernetes.client.models.dict[str, str]'), breaking sky serve up / launch.
Accept both bracket styles.1 parent 6431739 commit 827ff42
1 file changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2245 | 2245 | | |
2246 | 2246 | | |
2247 | 2247 | | |
2248 | | - | |
2249 | | - | |
| 2248 | + | |
| 2249 | + | |
| 2250 | + | |
| 2251 | + | |
| 2252 | + | |
2250 | 2253 | | |
2251 | 2254 | | |
2252 | 2255 | | |
| |||
0 commit comments