Commit f574895
refactor: wire up configure* helpers, delete launchtemplate.Provider
Replace the launchtemplate.Provider intermediate abstraction with direct
imagefamily.Resolver usage in DefaultVMProvider. The resolveBootstrapAndImageData()
bridge function builds StaticParameters locally and calls imagefamily.Resolve()
directly, eliminating the 7-layer parameter threading.
New vminstancehelpers.go provides buildVMTemplate() with focused configure*
helpers (configureStorageProfile, configureOSProfile, configureNetworkProfile,
configureBillingProfile, configureSecurityProfile) matching the AKS Machine
pattern. Extension spec builders are also extracted here.
vminstancenic.go updated to take subnetID/tags directly instead of
*launchtemplate.Template, with buildAndCreateNIC() orchestrator.
Delete pkg/providers/launchtemplate/launchtemplate.go (Provider struct).
tags.go and parameters/ remain as they are still used by imagefamily.Resolve().
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 8b6d4de commit f574895
File tree
6 files changed
+475
-608
lines changed- pkg
- operator
- providers
- instance
- launchtemplate
- test
6 files changed
+475
-608
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
67 | 66 | | |
68 | 67 | | |
69 | 68 | | |
| |||
88 | 87 | | |
89 | 88 | | |
90 | 89 | | |
91 | | - | |
92 | 90 | | |
93 | 91 | | |
94 | 92 | | |
| |||
187 | 185 | | |
188 | 186 | | |
189 | 187 | | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | 188 | | |
205 | 189 | | |
206 | 190 | | |
| |||
213 | 197 | | |
214 | 198 | | |
215 | 199 | | |
216 | | - | |
| 200 | + | |
217 | 201 | | |
218 | 202 | | |
219 | 203 | | |
| |||
223 | 207 | | |
224 | 208 | | |
225 | 209 | | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
226 | 214 | | |
227 | 215 | | |
228 | 216 | | |
| |||
243 | 231 | | |
244 | 232 | | |
245 | 233 | | |
246 | | - | |
247 | 234 | | |
248 | 235 | | |
249 | 236 | | |
| |||
0 commit comments