I use the pvc end caps matching the tube, not necessarily easy to find. My tube is 10" diameter which is very tight, I have to roll the sail and jib carefully.
I open one side only, the rear end cap is glued and watertight, so it doesn't get wet if that ends goes underwater, which never happen anyway.
On the front end cap I used two of these with rivets