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

Several SPDX SBOM adjustments. #760

Merged
merged 1 commit into from
Jul 11, 2022
Merged

Conversation

mattmoor
Copy link
Collaborator

  1. Change index -> image relationship type from CONTAINS to VARIANT_OF (I think this was an oversight in my original PR),
  2. Always include mediaType in pURLs for index/images we produce (I'm not adding this to the base image, since it's not readily available, but we can add it there if we want to find a way to plumb it through),
  3. Include more platform discriminator information to the pURLs we use in index -> image.

cc @puerco

1. Change index -> image relationship type from `CONTAINS` to `VARIANT_OF` (I think this was an oversight in my original PR),
2. Always include `mediaType` in pURLs for index/images we produce (I'm not adding this to the base image, since it's not readily available, but we can add it there if we want to find a way to plumb it through),
3. Include more platform discriminator information to the pURLs we use in index -> image.
Related: depID,
})

qual := []qualifier{{
Copy link
Member

Choose a reason for hiding this comment

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

This makes me want a newQualifier(k, v string) qualifier helper method, and/or a platformQualifiers(p v1.Platform) []qualifier.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah, it's worth surveying our usage of qualifiers as this evolves and figuring out what helpers make sense. I'd also be inclined to just create a decent OCI pURL library in GGCR and use that TBH.

@mattmoor mattmoor merged commit cdd1dec into ko-build:main Jul 11, 2022
@mattmoor mattmoor deleted the sbom-tweaks branch July 11, 2022 18:49
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