Skip to content

bug: Do not fail on accessibility check when it's an OCI image#81

Closed
ndubchak wants to merge 2 commits into
mainfrom
ndubchak/oci-error-fix
Closed

bug: Do not fail on accessibility check when it's an OCI image#81
ndubchak wants to merge 2 commits into
mainfrom
ndubchak/oci-error-fix

Conversation

@ndubchak
Copy link
Copy Markdown
Contributor

@ndubchak ndubchak commented Aug 4, 2025

🔍 Description

This PR skips checking if a URL is accessible if the image is an OCI.

@ndubchak ndubchak requested a review from a team as a code owner August 4, 2025 15:54
}

func checkUrlIsAccessible(url string) error {
// If this is an OCI image, skip check
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

nit: maybe add reason for skipping. something like 'skip check because oci:// is not a supported protocol for http.Head'?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

or maybe we could use the same translation code that Ayana has in trident for the tests go get the equivalent http address for an oci url.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Maybe I'll leave this to @ayaegashi then

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Not sure where that translation takes place

@ndubchak ndubchak closed this Aug 4, 2025
@ndubchak ndubchak deleted the ndubchak/oci-error-fix branch September 11, 2025 22:24
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.

2 participants