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

Remove the dependency on v1alpha1.Identity which brings in unnecessary k8s deps. #1790

Merged
merged 1 commit into from
Apr 22, 2022

Conversation

vaikas
Copy link
Contributor

@vaikas vaikas commented Apr 22, 2022

Signed-off-by: Ville Aikas [email protected]

Summary

In #1759 I reused a struct from v1alpha1.Identity, which I didn't realize brought
deps to k8s where there shouldn't have been any. This rectifies this
by re-creating that struct here.

Ticket Link

Fixes

Release Note


@codecov-commenter
Copy link

codecov-commenter commented Apr 22, 2022

Codecov Report

Merging #1790 (44577bd) into main (d9b4da1) will decrease coverage by 0.01%.
The diff coverage is 40.00%.

@@            Coverage Diff             @@
##             main    #1790      +/-   ##
==========================================
- Coverage   31.43%   31.42%   -0.02%     
==========================================
  Files         144      144              
  Lines        8890     8893       +3     
==========================================
  Hits         2795     2795              
- Misses       5758     5760       +2     
- Partials      337      338       +1     
Impacted Files Coverage Δ
pkg/cosign/verify.go 29.48% <ø> (-0.11%) ⬇️
pkg/cosign/kubernetes/webhook/validation.go 80.76% <40.00%> (-3.02%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d9b4da1...44577bd. Read the comment docs.

unnecessary k8s libraries.
Brought up as an issue that was merged in: sigstore#1759

Signed-off-by: Ville Aikas <[email protected]>
Copy link
Contributor

@mtrmac mtrmac left a comment

Choose a reason for hiding this comment

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

Oh, that was fast. Thanks!

I can confirm that this drops all k8s.io dependencies from an import of github.com/sigstore/cosign/pkg/cosign. (Some sigs.k8s.io dependencies remain, but that’s for a different cause.)

@dlorenc dlorenc merged commit afaf0a3 into sigstore:main Apr 22, 2022
@github-actions github-actions bot added this to the v1.8.0 milestone Apr 22, 2022
@vaikas vaikas deleted the remove-k8s-dep branch April 22, 2022 20:53
@vaikas
Copy link
Contributor Author

vaikas commented Apr 25, 2022

Thanks @mtrmac for checking that it indeed fixed the import issues :)

mlieberman85 pushed a commit to mlieberman85/cosign that referenced this pull request May 6, 2022
…1790)

unnecessary k8s libraries.
Brought up as an issue that was merged in: sigstore#1759

Signed-off-by: Ville Aikas <[email protected]>
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.

4 participants