Skip to content

Commit 631f2c3

Browse files
committed
Make probe universal
Signed-off-by: Serguei Bezverkhi <[email protected]>
1 parent f9033a2 commit 631f2c3

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

cmd/main.go

-17
Original file line numberDiff line numberDiff line change
@@ -42,23 +42,6 @@ var (
4242
)
4343

4444
func runProbe(ctx context.Context, csiConn connection.CSIConnection) error {
45-
46-
// Get CSI driver name.
47-
glog.Infof("Calling CSI driver to discover driver name.")
48-
csiDriverName, err := csiConn.GetDriverName(ctx)
49-
if err != nil {
50-
return err
51-
}
52-
glog.Infof("CSI driver name: %q", csiDriverName)
53-
54-
// Get CSI Driver Node ID
55-
glog.Infof("Calling CSI driver to discover node ID.")
56-
csiDriverNodeID, err := csiConn.NodeGetId(ctx)
57-
if err != nil {
58-
return err
59-
}
60-
glog.Infof("CSI driver node ID: %q", csiDriverNodeID)
61-
6245
// Sending Probe request
6346
glog.Infof("Sending probe request to CSI driver.")
6447
if err := csiConn.LivenessProbe(ctx); err != nil {

0 commit comments

Comments
 (0)