Skip to content

Commit

Permalink
fix function definition for Create and CreateFromSource
Browse files Browse the repository at this point in the history
  • Loading branch information
saima-s committed Jul 24, 2024
1 parent b66eb19 commit baab192
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/csi/csi_ops.go
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ func (c *snapshotCreate) CreateSnapshot(ctx context.Context, snapshotter kansnap
if err := args.Validate(); err != nil {
return nil, err
}
err := snapshotter.Create(ctx, args.SnapshotName, args.Namespace, args.PVCName, &args.VolumeSnapshotClass, true, nil)
err := snapshotter.Create(ctx, args.SnapshotName, args.Namespace, args.PVCName, &args.VolumeSnapshotClass, true, nil, nil)

Check failure on line 349 in pkg/csi/csi_ops.go

View workflow job for this annotation

GitHub Actions / Build

too many arguments in call to snapshotter.Create

Check failure on line 349 in pkg/csi/csi_ops.go

View workflow job for this annotation

GitHub Actions / Lint

too many arguments in call to snapshotter.Create

Check failure on line 349 in pkg/csi/csi_ops.go

View workflow job for this annotation

GitHub Actions / Lint

too many arguments in call to snapshotter.Create

Check failure on line 349 in pkg/csi/csi_ops.go

View workflow job for this annotation

GitHub Actions / Lint

too many arguments in call to snapshotter.Create
if err != nil {
return nil, errors.Wrapf(err, "CSI Driver failed to create snapshot for PVC (%s) in Namespace (%s)", args.PVCName, args.Namespace)
}
Expand Down Expand Up @@ -397,7 +397,7 @@ func (c *snapshotCreate) CreateFromSourceCheck(ctx context.Context, snapshotter
Driver: snapSrc.Driver,
VolumeSnapshotClassName: targetSnapClassName,
}
err = snapshotter.CreateFromSource(ctx, src, snapshotCFSCloneName, args.Namespace, true, nil)
err = snapshotter.CreateFromSource(ctx, src, snapshotCFSCloneName, args.Namespace, true, nil, nil)

Check failure on line 400 in pkg/csi/csi_ops.go

View workflow job for this annotation

GitHub Actions / Build

too many arguments in call to snapshotter.CreateFromSource

Check failure on line 400 in pkg/csi/csi_ops.go

View workflow job for this annotation

GitHub Actions / Lint

too many arguments in call to snapshotter.CreateFromSource

Check failure on line 400 in pkg/csi/csi_ops.go

View workflow job for this annotation

GitHub Actions / Lint

too many arguments in call to snapshotter.CreateFromSource

Check failure on line 400 in pkg/csi/csi_ops.go

View workflow job for this annotation

GitHub Actions / Lint

too many arguments in call to snapshotter.CreateFromSource
if err != nil {
return errors.Wrapf(err, "Failed to clone snapshot from source (%s)", snapshotCFSCloneName)
}
Expand Down

0 comments on commit baab192

Please sign in to comment.