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.
Note
The following is about the
spec.sourceRef.httpRepositorysource 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.urlmust target a tar.gz archive. Other content formats such asare 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.