Skip to content

Commit

Permalink
Removing check for ReadWriteOnce accessmode
Browse files Browse the repository at this point in the history
  • Loading branch information
shlokc9 committed Aug 14, 2024
1 parent a025986 commit 487ad81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/csi/file_restore_inspector.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ func (f *fileRestoreSteps) ValidateArgs(ctx context.Context, args *types.FileRes
}
}
for _, sourceAccessMode := range sourcePVC.Spec.AccessModes {
if sourceAccessMode == v1.ReadWriteOnce || sourceAccessMode == v1.ReadWriteOncePod {
if sourceAccessMode == v1.ReadWriteOncePod {
return nil, nil, nil, fmt.Errorf("Unsupported %s AccessMode found in source PVC. Supported AccessModes are ReadOnlyMany & ReadWriteMany", sourceAccessMode)
}
}
Expand Down

0 comments on commit 487ad81

Please sign in to comment.