I recently made a retractable awning for my cargo trailer camper. I utilized tee connectors, telescoping connectors, threaded inserts, and adjustable angle connectors. For the adjustable angles, i replaced the bolt with an M6 knob so i can loosen/tighten them for folding the awning out.
https://www.youtube.com/watch?v=5mULIz9agBo&t=4s