Commit f134ed4
authored
[iris] Allow capacity_type in resources with stale compiled protos (#4407)
The unknown-keys check in _normalize_scale_group_resources derived
allowed
keys solely from the compiled proto descriptor. When the installed proto
bindings are stale (capacity_type not yet in DESCRIPTOR.fields_by_name),
the check raises ValueError before the normalization code can handle it.
Add capacity_type to _NORMALIZED_KEYS (renamed from _YAML_ALIASES to
reflect its actual purpose: fields explicitly handled by normalization,
which may not yet appear in stale compiled protos).1 parent 4885780 commit f134ed4
1 file changed
+4
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
952 | 952 | | |
953 | 953 | | |
954 | 954 | | |
955 | | - | |
956 | | - | |
957 | | - | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
958 | 959 | | |
959 | 960 | | |
960 | 961 | | |
| |||
0 commit comments