-
Notifications
You must be signed in to change notification settings - Fork 546
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
Conversation
Codecov Report
@@ 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
Continue to review full report at Codecov.
|
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]>
I don't quite understand why the codecov is changing for this 'untouched' file:
|
if len(secret.Data) == 0 { | ||
return fmt.Errorf("secret %q contains no data", keyref.SecretRef.Name) | ||
} | ||
if len(secret.Data) > 1 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what about validating that the data field contains a publicKey
field like here https://github.com/sigstore/cosign/pull/1595/files#diff-f95503af2405ad769f56a5e3ec662f2d57380441e636ba81ffe33b93e00ea4ebR437 ?
There was a problem hiding this comment.
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
…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]>
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