Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.

Commit

Permalink
Merge pull request #40 from wzshiming/fix/not-ready
Browse files Browse the repository at this point in the history
Avoid being killed by Kubelet when not Ready for a long time
  • Loading branch information
wzshiming authored Jun 10, 2022
2 parents 5ee169b + 2999299 commit 74de47f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd/fake-kubelet/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,15 +171,15 @@ func main() {
logger.Fatalln(err)
}

if serverAddress != "" {
go Server(ctx, serverAddress)
}

err = n.Start(ctx)
if err != nil {
logger.Fatalln(err)
}

if serverAddress != "" {
go Server(ctx, serverAddress)
}

<-ctx.Done()
}

Expand Down

0 comments on commit 74de47f

Please sign in to comment.