mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-30 19:35:06 +00:00
fix loop
Signed-off-by: Jim Bugwadia <jim@nirmata.com>
This commit is contained in:
parent
7c57ac24e6
commit
619ee6ac61
2 changed files with 6 additions and 3 deletions
|
@ -16,7 +16,7 @@ type driver struct {
|
|||
}
|
||||
|
||||
func (d *driver) Verify(ctx context.Context, signedImgRef name.Reference, co *cosign.CheckOpts) ([]cosign.SignedPayload, error) {
|
||||
return d.Verify(ctx, signedImgRef, co)
|
||||
return cosign.Verify(ctx, signedImgRef, co)
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -190,14 +190,17 @@ func (iv *imageVerifier) attestImage(repository, key string, imageInfo *context.
|
|||
}
|
||||
|
||||
if !val {
|
||||
msg := fmt.Sprintf("attestation check failed for %s and predicate %s", imageInfo.String(), predicateType)
|
||||
msg := fmt.Sprintf("attestation checks failed for %s and predicate %s", imageInfo.String(), predicateType)
|
||||
iv.logger.Info(msg)
|
||||
return ruleResponse(iv.rule, msg, response.RuleStatusFail)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return ruleResponse(iv.rule, "attestation checks passed", response.RuleStatusPass)
|
||||
msg := fmt.Sprintf("attestation checks passed for %s", imageInfo.String())
|
||||
iv.logger.V(2).Info(msg)
|
||||
return ruleResponse(iv.rule, msg, response.RuleStatusPass)
|
||||
}
|
||||
|
||||
func (iv *imageVerifier) checkAttestations(a *v1.Attestation, s map[string]interface{}, img *context.ImageInfo ) (bool, error) {
|
||||
|
|
Loading…
Add table
Reference in a new issue