Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New source type httpRepository #17

Merged
merged 3 commits into from
Oct 16, 2024
Merged

New source type httpRepository #17

merged 3 commits into from
Oct 16, 2024

Conversation

cbarbian-sap
Copy link
Contributor

This PR adds a new source type httpRepository. It allows to reference the source manifests as a gzipped tar archive on an arbitrary http location. Such as

apiVersion: core.cs.sap.com/v1alpha1
kind: Component
metadata:
  name: test
spec:
  sourceRef:
    httpRepository:
      url: http://localhost:8888/sources/test/latest.tar.gz

The response received from the given URL must specify a content digest through a certain header field. By default, the ETag header is used for this, but a different header name can be configured by setting spec.sourceRef.httpRepository.revisionHeader. The value of that header must uniquely identify the returned content (e.g. be a hash of the returned archive). Redirects will be followed as long as the redirect response does not contain the revision header field.

Note that the operator will not only make GET but also HEAD requests to the given URL (and potentially returned redirect locations). The target http server therefore must support HEAD requests.

@cbarbian-sap cbarbian-sap merged commit 7feec97 into main Oct 16, 2024
7 checks passed
@cbarbian-sap cbarbian-sap deleted the source-http-repository branch October 16, 2024 20:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant