Skip to content

[FEATURE] [INTERNAL] httpRepository source should support single files #100

Description

@cbarbian-sap

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Fields

No fields configured for Feature.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions