Skip to content

Commit d1a067b

Browse files
authored
fix: don't enable controller on kosmos nodes (#37)
1 parent acbe697 commit d1a067b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

main.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,12 @@ func main() {
7878

7979
slog.Info("System and components processed successfully")
8080

81+
// If Kosmos mode, exit after installation
82+
if *flagKosmos {
83+
slog.Info("Kosmos mode: exiting after installation")
84+
return
85+
}
86+
8187
// Start the node controller
8288
nodeController, err := NewController(ctx, nodeMetadata)
8389
if err != nil {

0 commit comments

Comments
 (0)