They’re either plugs or spigots for irrigation drip lines.
EDIT: Can’t see the ends, so if they don’t have a hole they’re for plugging the end of a small drip line.
EDIT2: Example.
u/WeCameWeSawWeAteitAL solved it with the comment above. Link to the original post
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.