Skip to content

Commit 5575984

Browse files
authored
fix: Correct control plane field in NutanixVMImage preflight check (#1244)
**What problem does this PR solve?**: Fixes a transposed path in the NutanixVMImage control plane field. **Which issue(s) this PR fixes**: Fixes # **How Has This Been Tested?**: <!-- Please describe the tests that you ran to verify your changes. Provide output from the tests and any manual steps needed to replicate the tests. --> **Special notes for your reviewer**: <!-- Use this to provide any additional information to the reviewers. This may include: - Best way to review the PR. - Where the author wants the most review attention on. - etc. -->
1 parent f6bd06b commit 5575984

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/webhook/preflight/nutanix/image.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ func newVMImageChecks(
9090
checks = append(checks,
9191
&imageCheck{
9292
machineDetails: &cd.nutanixClusterConfigSpec.ControlPlane.Nutanix.MachineDetails,
93-
field: "$.spec.topology.variables[[email protected]==\"clusterConfig\"].value.nutanix.controlPlane.machineDetails", ///nolint:lll // Field is long.
93+
field: "$.spec.topology.variables[[email protected]==\"clusterConfig\"].value.controlPlane.nutanix.machineDetails", ///nolint:lll // Field is long.
9494
nclient: cd.nclient,
9595
},
9696
)

pkg/webhook/preflight/nutanix/imagekubernetesversioncheck.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ func newVMImageKubernetesVersionChecks(
149149
checks = append(checks,
150150
&imageKubernetesVersionCheck{
151151
machineDetails: &cd.nutanixClusterConfigSpec.ControlPlane.Nutanix.MachineDetails,
152-
field: "$.spec.topology.variables[[email protected]==\"clusterConfig\"].value.nutanix.controlPlane.machineDetails", ///nolint:lll // Field is long.
152+
field: "$.spec.topology.variables[[email protected]==\"clusterConfig\"].value.controlPlane.nutanix.machineDetails", ///nolint:lll // Field is long.
153153
nclient: cd.nclient,
154154
clusterK8sVersion: clusterK8sVersion,
155155
},

0 commit comments

Comments
 (0)