Skip to content

Commit cb164d4

Browse files
Remove commented out code:
Signed-off-by: Jacob Weinstock <[email protected]>
1 parent 49411c7 commit cb164d4

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

controller/machine/hardware.go

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -279,18 +279,6 @@ func (scope *machineReconcileScope) releaseHardware(hw *tinkv1.Hardware) error {
279279
delete(hw.ObjectMeta.Labels, HardwareOwnerNameLabel)
280280
delete(hw.ObjectMeta.Labels, HardwareOwnerNamespaceLabel)
281281
delete(hw.ObjectMeta.Annotations, HardwareProvisionedAnnotation)
282-
/*
283-
// setting the AllowPXE=true indicates to Smee that this hardware should be allowed
284-
// to netboot. FYI, this is not authoritative.
285-
// Other hardware values can be set to prohibit netbooting of a machine.
286-
// See this Boots function for the logic around this:
287-
// https://github.com/tinkerbell/smee/blob/main/internal/ipxe/script/ipxe.go#L112
288-
for _, ifc := range hw.Spec.Interfaces {
289-
if ifc.Netboot != nil {
290-
ifc.Netboot.AllowPXE = ptr.To(true)
291-
}
292-
}
293-
*/
294282

295283
controllerutil.RemoveFinalizer(hw, infrastructurev1.MachineFinalizer)
296284

0 commit comments

Comments
 (0)