Skip to content

Add proxy support for OCIRepository API#1536

Merged
matheuscscp merged 1 commit intofluxcd:mainfrom
matheuscscp:ocirepo-proxy
Aug 15, 2024
Merged

Add proxy support for OCIRepository API#1536
matheuscscp merged 1 commit intofluxcd:mainfrom
matheuscscp:ocirepo-proxy

Conversation

@matheuscscp
Copy link
Copy Markdown
Member

Fixes #1492

@matheuscscp matheuscscp force-pushed the ocirepo-proxy branch 3 times, most recently from 33ee8b6 to 2ccda4a Compare July 4, 2024 13:29
@matheuscscp matheuscscp marked this pull request as ready for review July 4, 2024 13:36
@stefanprodan stefanprodan added the area/oci OCI related issues and pull requests label Jul 11, 2024
@matheuscscp matheuscscp changed the title Add support for .spec.proxySecretRef for OCIRepository API Add proxy support for OCIRepository API Jul 11, 2024
Copy link
Copy Markdown
Member

@stefanprodan stefanprodan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Thanks @matheuscscp 🏅

Copy link
Copy Markdown
Contributor

@darkowlzz darkowlzz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall implementation looks good to me.
Suggested a test with goproxy against the test registry.

Comment thread internal/controller/ocirepository_controller.go Outdated
Comment thread internal/controller/ocirepository_controller.go
@matheuscscp matheuscscp force-pushed the ocirepo-proxy branch 2 times, most recently from 1020bbb to ddc34c8 Compare July 17, 2024 10:21
@matheuscscp matheuscscp requested a review from darkowlzz July 17, 2024 10:22
Comment thread internal/controller/ocirepository_controller_test.go
Comment thread internal/controller/ocirepository_controller.go
Copy link
Copy Markdown
Contributor

@darkowlzz darkowlzz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for all the proxy tests in OCI artifact verification. The notation related changes also look nice and minimal.
Left a few suggestions in the tests and docs. Everything else looks good to me.

Comment thread internal/controller/ocirepository_controller_test.go Outdated
Comment thread internal/oci/notation/notation_test.go Outdated
Comment thread internal/oci/notation/notation_test.go Outdated
Comment thread docs/spec/v1beta2/ocirepositories.md
@matheuscscp matheuscscp force-pushed the ocirepo-proxy branch 2 times, most recently from 0f905bb to a99476f Compare August 13, 2024 22:56
@matheuscscp matheuscscp requested a review from darkowlzz August 13, 2024 22:57
Comment thread internal/oci/notation/notation_test.go
Comment thread tests/registry/registry.go
Comment thread tests/registry/registry.go Outdated
Comment thread internal/oci/notation/notation.go Outdated
@matheuscscp matheuscscp force-pushed the ocirepo-proxy branch 2 times, most recently from a503050 to c9b27e1 Compare August 15, 2024 13:08
Signed-off-by: Matheus Pimenta <matheuscscp@gmail.com>
Copy link
Copy Markdown
Contributor

@darkowlzz darkowlzz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!
Thanks for all the work on it.

@matheuscscp matheuscscp merged commit 7c4fdd5 into fluxcd:main Aug 15, 2024
@matheuscscp matheuscscp deleted the ocirepo-proxy branch August 15, 2024 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/oci OCI related issues and pull requests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow specifying HTTP/S proxy in OCIRepository API

3 participants