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

feat: support containerd subject annotations #173

Merged
merged 2 commits into from
Sep 19, 2024

Conversation

mrjoelkamp
Copy link
Contributor

@mrjoelkamp mrjoelkamp commented Sep 19, 2024

Summary

  • adds logic to layout resolver to parse subject name from both OCI and containerd annotations

Note: not sure where we stand on importing constants vs. hardcoding the strings, this imports but I can change it to just hardcode if we decided that way

Copy link

codecov bot commented Sep 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 69.71%. Comparing base (2ace988) to head (0378c94).
Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #173      +/-   ##
==========================================
+ Coverage   69.58%   69.71%   +0.13%     
==========================================
  Files          44       44              
  Lines        2528     2533       +5     
==========================================
+ Hits         1759     1766       +7     
+ Misses        477      476       -1     
+ Partials      292      291       -1     
Flag Coverage Δ
unittests 69.71% <100.00%> (+0.13%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mrjoelkamp mrjoelkamp force-pushed the feat-support-containerd-subject-annotations branch from c1cef15 to 1e61417 Compare September 19, 2024 20:08
@mrjoelkamp mrjoelkamp marked this pull request as ready for review September 19, 2024 20:09
@mrjoelkamp mrjoelkamp requested a review from a team as a code owner September 19, 2024 20:09
@mrjoelkamp mrjoelkamp force-pushed the feat-support-containerd-subject-annotations branch from 1e61417 to fd4e741 Compare September 19, 2024 20:11
Copy link
Contributor

@kipz kipz left a comment

Choose a reason for hiding this comment

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

Lgtm

@mrjoelkamp mrjoelkamp force-pushed the feat-support-containerd-subject-annotations branch from 44c1356 to 0378c94 Compare September 19, 2024 20:36
Copy link
Contributor

@whalelines whalelines left a comment

Choose a reason for hiding this comment

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

LGTM

@mrjoelkamp mrjoelkamp merged commit dcf5c57 into main Sep 19, 2024
9 checks passed
@mrjoelkamp mrjoelkamp deleted the feat-support-containerd-subject-annotations branch September 19, 2024 21:03
@jonnystoten
Copy link
Contributor

This LGTM, but I do wonder if we should really just have the name be a parameter that can be supplied to the verify operation if the input is an OCI layout. As the index.json isn't part of the image I don't know how much sense it makes to verify fields in there... Maybe something to consider if we ever need to add another annotation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants