Skip to content

feat!: BREAKING CHANGE: update ResourceRepository to require credentials#1716

Merged
matthiasbruns merged 5 commits into
open-component-model:mainfrom
matthiasbruns:feat/refactor_oci_repo_interface_repository
Feb 4, 2026
Merged

feat!: BREAKING CHANGE: update ResourceRepository to require credentials#1716
matthiasbruns merged 5 commits into
open-component-model:mainfrom
matthiasbruns:feat/refactor_oci_repo_interface_repository

Conversation

@matthiasbruns

Copy link
Copy Markdown
Contributor

Part of #1715

This PR updates the repository interface.

What this PR does / why we need it

In ociArtifact PR we need the oci.Repository or something comparable to get oci artifacts in the transformation. We had no real way to provide a credentials-based oci repository since now.
This PR updates the ResourceRepository in bindings/go/repository/interface.go to make it credential-aware.
Since we did not want to change the implementation of the oci repository, we opted for a wrapper comparable to the one in cli/internal/plugin/builtin/oci (now deleted). The wrapper was moved into bindings/go/oci/repository/resource.

cli and controllers were updated as well to register the new ResourceRepository.

Which issue(s) this PR fixes

Contributes open-component-model/ocm-project#796

…a param

On-behalf-of: SAP <matthias.bruns@sap.com>
Signed-off-by: Matthias Bruns <git@matthiasbruns.com>
@matthiasbruns matthiasbruns requested a review from a team as a code owner February 4, 2026 12:06
@github-actions github-actions Bot added the size/xs Extra small label Feb 4, 2026
@matthiasbruns matthiasbruns changed the title BREAKING CHANGE: update ResourceRepository to require credentials as … feat: BREAKING CHANGE: update ResourceRepository to require credentials Feb 4, 2026
@matthiasbruns matthiasbruns added the !BREAKING-CHANGE! Breaking change in API or ocm-cli or spec label Feb 4, 2026
@github-actions github-actions Bot added the kind/feature new feature, enhancement, improvement, extension label Feb 4, 2026
On-behalf-of: SAP <matthias.bruns@sap.com>
Signed-off-by: Matthias Bruns <git@matthiasbruns.com>
@github-actions github-actions Bot added the size/s Small label Feb 4, 2026
Comment thread bindings/go/repository/interface.go Outdated
Co-authored-by: Fabian Burth <fabian.burth@sap.com>
Signed-off-by: Matthias Bruns <github@matthiasbruns.com>
fabianburth
fabianburth previously approved these changes Feb 4, 2026
Comment thread bindings/go/repository/interface.go
On-behalf-of: SAP <matthias.bruns@sap.com>
Signed-off-by: Matthias Bruns <git@matthiasbruns.com>
@Skarlso Skarlso changed the title feat: BREAKING CHANGE: update ResourceRepository to require credentials !feat: BREAKING CHANGE: update ResourceRepository to require credentials Feb 4, 2026
@Skarlso Skarlso changed the title !feat: BREAKING CHANGE: update ResourceRepository to require credentials feat!: BREAKING CHANGE: update ResourceRepository to require credentials Feb 4, 2026
@matthiasbruns matthiasbruns merged commit 345bf4d into open-component-model:main Feb 4, 2026
23 of 24 checks passed
@matthiasbruns matthiasbruns deleted the feat/refactor_oci_repo_interface_repository branch February 4, 2026 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

!BREAKING-CHANGE! Breaking change in API or ocm-cli or spec kind/feature new feature, enhancement, improvement, extension size/s Small size/xs Extra small

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants