Skip to content

Commit

Permalink
Update offline installer to ignore comments in the manifests.
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigobassil committed Aug 29, 2024
1 parent 6e863d9 commit 62bfdc4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions service/validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -281,12 +281,12 @@ func ValidateCreateVolumeRequest(ctx context.Context, req *csi.CreateVolumeReque
// Validate volume capabilities
vcs := req.GetVolumeCapabilities()
if len(vcs) == 0 {
return "", "", 0, 0, 0, false, false, status.Error(codes.InvalidArgument, utils.GetMessageWithRunID(rid, "Controller Volume Capability are not provided"))
return "", "", 0, 0, 0, false, false, status.Error(codes.InvalidArgument, utils.GetMessageWithRunID(rid, "%s", "Controller Volume Capability are not provided"))
}

supported, reason := valVolumeCaps(vcs, protocol)
if !supported {
return "", "", 0, 0, 0, false, false, status.Error(codes.InvalidArgument, utils.GetMessageWithRunID(rid, "Volume Capabilities are not supported. Reason=["+reason+"]"))
return "", "", 0, 0, 0, false, false, status.Error(codes.InvalidArgument, utils.GetMessageWithRunID(rid, "%s", "Volume Capabilities are not supported. Reason=["+reason+"]"))
}

return
Expand Down

0 comments on commit 62bfdc4

Please sign in to comment.