Skip to content

Commit 36fb7cc

Browse files
committed
fix: ensure shebang on packet machine configs
This PR fixes a small bug where we weren't correctly searching for `Kind` of `PacketMacine` Signed-off-by: Spencer Smith <[email protected]>
1 parent 8e39bd7 commit 36fb7cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

controllers/talosconfig_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ func (r *TalosConfigReconciler) reconcileGenerate(ctx context.Context, tcScope *
336336
return err
337337
}
338338

339-
if machine.Spec.InfrastructureRef.Name == "PacketMachine" {
339+
if machine.Spec.InfrastructureRef.Kind == "PacketMachine" {
340340
retData.BootstrapData = "#!talos\n" + retData.BootstrapData
341341
}
342342
}

0 commit comments

Comments
 (0)