Commit b8626e9
committed
refactor(config): move AWS-shaped naming defaults out of shared config
Follow-up to the earlier ec2_instance/region migration. The shared
NamingConfig still carried AWS-only vocabulary that non-AWS providers
would never use:
- naming.patterns: dropped spot_fleet / ec2_fleet / asg regexes (no
shared reader consumes them — only AWS validators do; confirmed via
grep). They belong on AWSNamingConfig.
- naming.fleet_types (instant/request/maintain) and naming.price_types
(ondemand/spot/heterogeneous): removed from the shared schema — these
are AWS EC2 fleet/pricing concepts, read only by AWS provider code.
Both default_config.json files (packaged + repo sample) updated to
match.
Deferred (documented with TODO): the AWS-specific *prefix* keys
(launch_template/instance/fleet/spot_fleet/asg) remain on the shared
prefix schemas because ConfigurationAdapter.get_resource_prefix
dispatches through hasattr() on those field names; removing them needs
an AWS-specific accessor first. performance.caching.ami_resolution
likewise stays for now — it is entangled in the shared performance
schema and is a cosmetic leak (non-AWS providers simply ignore it),
not a functional one.1 parent 205d446 commit b8626e9
3 files changed
Lines changed: 33 additions & 69 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | 44 | | |
55 | 45 | | |
56 | 46 | | |
| |||
80 | 70 | | |
81 | 71 | | |
82 | 72 | | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
87 | 76 | | |
88 | 77 | | |
89 | 78 | | |
90 | 79 | | |
91 | 80 | | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | 81 | | |
97 | 82 | | |
98 | 83 | | |
| |||
268 | 253 | | |
269 | 254 | | |
270 | 255 | | |
271 | | - | |
272 | | - | |
273 | | - | |
274 | | - | |
275 | | - | |
276 | 256 | | |
277 | 257 | | |
278 | 258 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | 36 | | |
47 | 37 | | |
48 | 38 | | |
| |||
72 | 62 | | |
73 | 63 | | |
74 | 64 | | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
79 | 68 | | |
80 | 69 | | |
81 | 70 | | |
82 | 71 | | |
83 | 72 | | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | 73 | | |
89 | 74 | | |
90 | 75 | | |
| |||
260 | 245 | | |
261 | 246 | | |
262 | 247 | | |
263 | | - | |
264 | | - | |
265 | | - | |
266 | | - | |
267 | | - | |
268 | 248 | | |
269 | 249 | | |
270 | 250 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
10 | 21 | | |
11 | 22 | | |
12 | 23 | | |
| |||
34 | 45 | | |
35 | 46 | | |
36 | 47 | | |
37 | | - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
38 | 59 | | |
39 | 60 | | |
40 | 61 | | |
| |||
110 | 131 | | |
111 | 132 | | |
112 | 133 | | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | 134 | | |
130 | 135 | | |
131 | 136 | | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | 137 | | |
136 | 138 | | |
137 | 139 | | |
138 | 140 | | |
139 | 141 | | |
140 | 142 | | |
| 143 | + | |
| 144 | + | |
141 | 145 | | |
142 | 146 | | |
143 | 147 | | |
144 | | - | |
145 | | - | |
| 148 | + | |
| 149 | + | |
146 | 150 | | |
147 | 151 | | |
148 | 152 | | |
| |||
0 commit comments