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

Validate method for oci/ocm repository specs #866

Merged
merged 5 commits into from
Aug 23, 2024

Conversation

mandelsoft
Copy link
Contributor

What this PR does / why we need it:

This PR introduces a Validate method for OCI and OCM repository specifications.

Its task is to validate the spec as well as the connectivity (and potentially the credentials), if possible.
Checking credentials makes only sense, if there is no possibility to use different credentials for different shards
of the repository (for example organizations in the GitHub OCI registry).

@mandelsoft mandelsoft added the area/ipcei Important Project of Common European Interest label Aug 6, 2024
@hilmarf hilmarf added this to the 2024-Q3 milestone Aug 12, 2024
Copy link
Member

@hilmarf hilmarf left a comment

Choose a reason for hiding this comment

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

can we please have at least one place where the new 'Validate()' is go-documented?

@mandelsoft mandelsoft requested a review from hilmarf August 16, 2024 11:04
@hilmarf hilmarf enabled auto-merge (squash) August 16, 2024 13:02
hilmarf
hilmarf previously approved these changes Aug 16, 2024
@hilmarf hilmarf merged commit e77f8c6 into open-component-model:main Aug 23, 2024
15 checks passed
@mandelsoft mandelsoft deleted the repospec branch August 29, 2024 12:33
hilmarf pushed a commit that referenced this pull request Sep 11, 2024
<!-- markdownlint-disable MD041 -->
#### What this PR does / why we need it

This fixes up the validate methods setup in
#866 so that we dont run
into surprises later on. Shouldnt affect anything right now since we
actually dont have any consuming repo implementations of this right now.

#### Which issue(s) this PR fixes
<!--
Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`.
-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ipcei Important Project of Common European Interest
Projects
Status: 🔒Closed
Development

Successfully merging this pull request may close these issues.

2 participants