Skip to content

Commit

Permalink
added the code to handle the errors
Browse files Browse the repository at this point in the history
  • Loading branch information
brahminikatta committed Aug 24, 2020
1 parent f674f94 commit 8b85d5b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmd/daemonset-check/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,10 @@ func main() {
log.Infoln("Kubernetes client created.")

// this check runs all the nodechecks to ensure node is ready before running the daemonset chek
checksNodeReady(client)
err = checksNodeReady(client)
if err != nil {
log.Errorln("Error running when doing the nodechecks :", err)
}

// Catch panics.
defer func() {
Expand Down

0 comments on commit 8b85d5b

Please sign in to comment.