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

Add ability to inline secrets from SecretRef to configmap. #1595

Merged
merged 1 commit into from
Mar 11, 2022

Conversation

vaikas
Copy link
Contributor

@vaikas vaikas commented Mar 11, 2022

Use tracker to keep track of changes to secrets, for example
if a secret doesn't exist initially, once it shows up. Tested
obvs with UT but also tested on a real cluster that the tracker
is keeping track of changes to secrets.

Fix #1573

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

Summary

Ticket Link

Fixes

Release Note


@codecov-commenter
Copy link

codecov-commenter commented Mar 11, 2022

Codecov Report

Merging #1595 (9fc0888) into main (0d7bace) will increase coverage by 0.42%.
The diff coverage is 94.23%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1595      +/-   ##
==========================================
+ Coverage   27.44%   27.86%   +0.42%     
==========================================
  Files         137      137              
  Lines        7742     7783      +41     
==========================================
+ Hits         2125     2169      +44     
+ Misses       5387     5385       -2     
+ Partials      230      229       -1     
Impacted Files Coverage Δ
...econciler/clusterimagepolicy/clusterimagepolicy.go 68.47% <92.85%> (+25.85%) ⬆️
pkg/reconciler/clusterimagepolicy/controller.go 86.00% <100.00%> (+3.50%) ⬆️
pkg/cosign/tuf/client.go 62.34% <0.00%> (-0.95%) ⬇️

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 0d7bace...9fc0888. Read the comment docs.

Use tracker to keep track of changes to secrets, for example
if a secret doesn't exist initially, once it shows up. Tested
obvs with UT but also tested on a real cluster that the tracker
is keeping track of changes to secrets.

Fix sigstore#1573

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

vaikas commented Mar 11, 2022

I don't quite understand why the codecov is changing for this 'untouched' file:

[pkg/cosign/tuf/client.go](https://codecov.io/gh/sigstore/cosign/pull/1595/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=sigstore#diff-cGtnL2Nvc2lnbi90dWYvY2xpZW50Lmdv)

if len(secret.Data) == 0 {
return fmt.Errorf("secret %q contains no data", keyref.SecretRef.Name)
}
if len(secret.Data) > 1 {
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll do that in a followup?
#1596

@dlorenc dlorenc merged commit 3eadb75 into sigstore:main Mar 11, 2022
@github-actions github-actions bot added this to the v1.7.0 milestone Mar 11, 2022
@vaikas vaikas deleted the issue-1573 branch March 14, 2022 07:50
mlieberman85 pushed a commit to mlieberman85/cosign that referenced this pull request May 6, 2022
…1595)

Use tracker to keep track of changes to secrets, for example
if a secret doesn't exist initially, once it shows up. Tested
obvs with UT but also tested on a real cluster that the tracker
is keeping track of changes to secrets.

Fix sigstore#1573

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.

Resolve Secrets from CIP into ConfigMap
4 participants