carvel-dev / vendir

Easy way to vendor portions of git repos, github releases, helm charts, docker image contents, etc. declaratively
https://carvel.dev/vendir
Apache License 2.0
268 stars 46 forks source link

Introduce possibility for custom HTTP Headers in HTTP source #371

Open christopherfriedrich opened 3 months ago

christopherfriedrich commented 3 months ago

This PR introduces the possibility to add custom HTTP Headers to requests for fetching HTTP sources and thereby fixes #87.

The custom HTTP headers for the HTTP source can be provided via a new field httpHeadersSecretRef in the HTTP source spec. All key value pairs from that secret will be added as HTTP Header to the HTTP request to fetch the file from the HTTP source.