Skip to content

Commit 54212d9

Browse files
committed
fmt fix
1 parent 99e8ba2 commit 54212d9

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

pkg/ibmcsidriver/constants.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,10 @@ const (
116116
// Generation ... just for backward compatibility
117117
Generation = "generation"
118118

119-
// DEFAULT_SNAPSHOT_CREATE_DELAY ...
119+
// DEFAULT_SNAPSHOT_CREATE_DELAY ...
120120
DEFAULT_SNAPSHOT_CREATE_DELAY = 300 //300 seconds
121121

122-
// MAX_SNAPSHOT_CREATE_DELAY ... This is max timeout value for csi-snapshotter
122+
// MAX_SNAPSHOT_CREATE_DELAY ... This is max timeout value for csi-snapshotter
123123
MAX_SNAPSHOT_CREATE_DELAY = 900 //900 seconds
124124
)
125125

pkg/ibmcsidriver/controller.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ limitations under the License.
1818
package ibmcsidriver
1919

2020
import (
21-
"os"
21+
"os"
2222
"strings"
2323
"time"
2424

@@ -440,7 +440,7 @@ func (csiCS *CSIControllerServer) CreateSnapshot(ctx context.Context, req *csi.C
440440
ctxLogger.Info("CSIControllerServer-CreateSnapshot... ", zap.Reflect("Request", *req))
441441
defer metrics.UpdateDurationFromStart(ctxLogger, "CreateSnapshot", time.Now())
442442

443-
//Feature flag to enable/disable CreateSnapshot feature.
443+
//Feature flag to enable/disable CreateSnapshot feature.
444444
if strings.ToLower(os.Getenv("IS_SNAPSHOT_ENABLED")) == "false" {
445445
ctxLogger.Warn("CreateSnapshot functionality is disabled.")
446446
time.Sleep(10 * time.Minute) //To avoid multiple retries from kubernetes to CSI Driver
@@ -487,7 +487,7 @@ func (csiCS *CSIControllerServer) CreateSnapshot(ctx context.Context, req *csi.C
487487
snapshot, err = session.CreateSnapshot(sourceVolumeID, snapshotParameters)
488488

489489
if err != nil {
490-
time.Sleep(time.Duration(getMaxDelaySnapshotCreate(ctxLogger)) * time.Second) //To avoid multiple retries from kubernetes to CSI Driver
490+
time.Sleep(time.Duration(getMaxDelaySnapshotCreate(ctxLogger)) * time.Second) //To avoid multiple retries from kubernetes to CSI Driver
491491
return nil, commonError.GetCSIError(ctxLogger, commonError.InternalError, requestID, err, "creation")
492492
}
493493
return createCSISnapshotResponse(*snapshot), nil

pkg/ibmcsidriver/controller_helper.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ package ibmcsidriver
1919

2020
import (
2121
"fmt"
22-
"os"
22+
"os"
2323
"strconv"
2424
"strings"
2525

0 commit comments

Comments
 (0)