Commit 3ff3d89
committed
refactor: remove field-shadowing of TargetCustomizationMode in FleetYAML
FleetYAML was declaring its own TargetCustomizationMode field with
the same JSON tag as the embedded BundleSpec.TargetCustomizationMode,
causing field shadowing and requiring manual propagation.
Since FleetYAML embeds BundleSpec, the field is already accessible
and YAML unmarshalling works correctly without duplication.
Fixes Copilot review comments in PR rancher#4940.
Changes:
- Remove duplicate TargetCustomizationMode field from FleetYAML
- Remove manual copy in bundleFromDir()
- Update test comment to reflect unmarshalling via embedded struct1 parent a094580 commit 3ff3d89
3 files changed
Lines changed: 2 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
192 | | - | |
193 | 192 | | |
194 | 193 | | |
195 | 194 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
| 14 | + | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | 13 | | |
20 | 14 | | |
21 | 15 | | |
| |||
0 commit comments