Skip to content

Commit

Permalink
fail early if kine can't start
Browse files Browse the repository at this point in the history
  • Loading branch information
facchettos committed May 14, 2024
1 parent 4685701 commit e18d43a
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions pkg/k8s/k8s.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func StartK8S(
}

// start embedded mode
eg.Go(func() error {
go func() {
args := []string{}
args = append(args, "/usr/local/bin/kine")
args = append(args, "--endpoint="+dataSource)
Expand All @@ -53,9 +53,12 @@ func StartK8S(
args = append(args, "--metrics-bind-address=0")
args = append(args, "--listen-address="+KineEndpoint)

// now start the api server
return RunCommand(ctx, args, "kine")
})
// now start kine
err := RunCommand(ctx, args, "kine")
if err != nil {
klog.Fatal("could not run kine", err)
}
}()

etcdEndpoints = KineEndpoint
} else if vConfig.ControlPlane.BackingStore.Database.External.Enabled {
Expand Down

0 comments on commit e18d43a

Please sign in to comment.