From e47129f9c20a92f70c8949f178e3dd1e9060cce6 Mon Sep 17 00:00:00 2001 From: "v.oleynikov" Date: Mon, 15 Jul 2024 13:25:22 +0300 Subject: [PATCH] fix Signed-off-by: v.oleynikov --- images/sds-local-volume-csi/cmd/main.go | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/images/sds-local-volume-csi/cmd/main.go b/images/sds-local-volume-csi/cmd/main.go index f4388c37..db5caacd 100644 --- a/images/sds-local-volume-csi/cmd/main.go +++ b/images/sds-local-volume-csi/cmd/main.go @@ -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 {