Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: v.oleynikov <vasily.oleynikov@flant.com>
  • Loading branch information
duckhawk committed Jul 15, 2024
1 parent e4859be commit e47129f
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions images/sds-local-volume-csi/cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,14 @@ func main() {
WarningHandler: client.WarningHandlerOptions{},
})

//http.HandleFunc("/healthz", healthHandler)
//http.HandleFunc("/readyz", healthHandler)
//err = http.ListenAndServe(cfgParams.HealthProbeBindAddress, nil)
//if err != nil {
// log.Error(err, "[main] create probes")
//}
http.HandleFunc("/healthz", healthHandler)
http.HandleFunc("/readyz", healthHandler)
go func() {
err = http.ListenAndServe(cfgParams.HealthProbeBindAddress, nil)
if err != nil {
log.Error(err, "[main] create probes")
}
}()

drv, err := driver.NewDriver(*endpoint, *driverName, *address, &cfgParams.NodeName, log, cl)
if err != nil {
Expand Down

0 comments on commit e47129f

Please sign in to comment.