[FEATURE] [INTERNAL] httpRepository source should support single files
- Dominant language
- Go
- Stars
- 3
- Forks
- 2
- Avg merge
- 12d 20h
- Merged PRs (30d)
- 2
Description
Note
The following is about the spec.sourceRef.httpRepository source type which is not yet released for public usage (therefore not documented); use at your own risk.
Is your feature request related to a problem? Please describe.
Currently, spec.sourceRef.httpRepository.url must target a tar.gz archive. Other content formats such as
- .tar.bz2
- .tar (non-compressed)
- or even a single YAML file
are not supported.
For example it would be nice if one could install something like https://github.com/cert-manager/cert-manager/releases/download/v1.21.0/cert-manager.yaml by just referencing the file via a spec.sourceRef.httpRepository.
Describe the solution you'd like
Evaluate the content type of the downloaded url (maybe plus some guessing magic a la file).
Additional context
Caveat: this would be probably implemented in downloadArchive() in ./internal/generator. Which is also used by the flux sources. Please double and triple check any change with respect to interaction with the flux source-controller.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.