chore: update identity type from OCIRepository to OCIRegistry across integration tests and configurations#1992
Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
📝 WalkthroughWalkthroughRemoved legacy v1→v2 runtime conversion functions and migrated test/testdata OCI consumer identity entries from Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
Comment Tip CodeRabbit can generate a title for your PR based on the changes with custom instructions.Set the |
e6bfaa5 to
bd9180b
Compare
bd9180b to
8785c0d
Compare
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@cli/integration/download_plugin_integration_test.go`:
- Around line 136-138: The YAML fallback credentials fragment in the test
contains a misspelled key "consdumers" which prevents consumer entries from
being applied; update the key to "consumers" (preserve the existing indentation
and the nested identity/type block) so the config is valid and the test actually
exercises credential consumers.
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: 77452bb8-316f-4d94-a040-ae8d8132fd81
⛔ Files ignored due to path filters (3)
cli/go.sumis excluded by!**/*.sumcli/integration/go.sumis excluded by!**/*.sumkubernetes/controller/go.sumis excluded by!**/*.sum
📒 Files selected for processing (15)
bindings/go/configuration/ocm/v1/runtime/convert_v1.gocli/go.modcli/integration/add_component_version_integration_test.gocli/integration/download_plugin_integration_test.gocli/integration/download_resource_integration_test.gocli/integration/go.modcli/integration/internal/credentials.gocli/integration/resolver_integration_test.gocli/integration/signing_integration_test.gocli/integration/transfer_component_version_integration_test.gocli/integration/transfer_helm_integration_test.gocli/integration/transfer_oci_artifact_integration_test.gokubernetes/controller/go.modkubernetes/controller/test/e2e/testdata/basic-auth/.ocmconfigkubernetes/controller/test/e2e/testdata/docker-config-json/.ocmconfig
💤 Files with no reviewable changes (3)
- kubernetes/controller/test/e2e/testdata/basic-auth/.ocmconfig
- kubernetes/controller/test/e2e/testdata/docker-config-json/.ocmconfig
- bindings/go/configuration/ocm/v1/runtime/convert_v1.go
4121a5e to
5ea97d5
Compare
… with `path` (#759) <!-- markdownlint-disable MD041 --> #### What this PR does / why we need it Corrects all documentation references of our OCI credentials to be of the OCIRegistry type and patches up pathprefix towards path to stay consistent. #### Which issue(s) this PR is related to <!-- Usage: `Related to #<issue number>`, or `Related to (paste link of issue)`. --> Fix open-component-model/ocm-project#916 requires open-component-model/open-component-model#1992 #### Type of content <!-- Which section does this PR target? See CONTRIBUTING.md for guidance. --> - [ ] Tutorial (`getting-started/` or `tutorials/`) - [ ] How-to Guide (`how-to/`) - [ ] Explanation / Concept (`concepts/`) - [ ] Reference (`reference/`) - [x] Other (infrastructure, config, fixes) #### Checklist - [x] I have read and followed the [Contributing Guide](https://github.com/open-component-model/ocm-website/blob/main/CONTRIBUTING.md) - [x] All commands/code snippets are tested and can be copy-pasted <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Documentation** * Updated credential identity type references across configuration examples and guides. * Clarified path matching behavior with glob pattern guidance for credential configuration. * Updated legacy credential compatibility guidance and configuration examples to reflect current system expectations. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Signed-off-by: Jakob Möller <contact@jakob-moeller.com>
… with `path` (#759) <!-- markdownlint-disable MD041 --> #### What this PR does / why we need it Corrects all documentation references of our OCI credentials to be of the OCIRegistry type and patches up pathprefix towards path to stay consistent. #### Which issue(s) this PR is related to <!-- Usage: `Related to #<issue number>`, or `Related to (paste link of issue)`. --> Fix open-component-model/ocm-project#916 requires open-component-model/open-component-model#1992 #### Type of content <!-- Which section does this PR target? See CONTRIBUTING.md for guidance. --> - [ ] Tutorial (`getting-started/` or `tutorials/`) - [ ] How-to Guide (`how-to/`) - [ ] Explanation / Concept (`concepts/`) - [ ] Reference (`reference/`) - [x] Other (infrastructure, config, fixes) #### Checklist - [x] I have read and followed the [Contributing Guide](https://github.com/open-component-model/ocm-website/blob/main/CONTRIBUTING.md) - [x] All commands/code snippets are tested and can be copy-pasted <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Documentation** * Updated credential identity type references across configuration examples and guides. * Clarified path matching behavior with glob pattern guidance for credential configuration. * Updated legacy credential compatibility guidance and configuration examples to reflect current system expectations. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Signed-off-by: Jakob Möller <contact@jakob-moeller.com> 7b47951
…integration tests and configurations Signed-off-by: Jakob Möller <contact@jakob-moeller.com>
5c2789e to
6cb0fde
Compare
<!-- markdownlint-disable MD041 --> #### What this PR does / why we need it #1992 removed `ConvertFromV1` because it appeared unused. However, it is actually used in https://github.com/open-component-model/open-component-model/blob/651cc58bca135e9ad39c5d86959da50cbfdcfa35/bindings/go/repository/component/resolvers/config.go#L57 Some tests were added too, so it does not appear unused. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Refactor** * Improved legacy v1 resolver configuration conversion with clearer error handling, explicit priority mapping (with sensible defaults), preserved resolver ordering, and retention of resolver types. * **Deprecated** * v1 resolvers marked deprecated; repository aliases are dropped and a warning is logged when encountered. * **Tests** * Added comprehensive unit tests for nil/invalid inputs, priority behavior, repository resolution, ordering, and error cases. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Signed-off-by: Frederic Wilhelm <frederic.wilhelm@sap.com>
What this PR does / why we need it
this adjusts our current fixtures and configs to not contain the wrong typing for our credential configurations
Which issue(s) this PR fixes
part of open-component-model/ocm-project#916
Testing
How to test the changes
Required files to test the changes:
.ocmconfig (credential entry)
Commands that test the change:
Verification
ocmSummary by CodeRabbit
Breaking Changes
Improvements
Chores