1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-31 03:45:17 +00:00

fix: image verify logs (#4348)

Signed-off-by: Charles-Edouard Brétéché <charled.breteche@gmail.com>

Signed-off-by: Charles-Edouard Brétéché <charled.breteche@gmail.com>
This commit is contained in:
Charles-Edouard Brétéché 2022-08-18 04:32:19 +02:00 committed by GitHub
parent ea4f1cf4df
commit 186dde5589
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -476,7 +476,7 @@ func (iv *imageVerifier) verifyAttestations(statements []map[string]interface{},
for _, ac := range imageVerify.Attestations {
statements := statementsByPredicate[ac.PredicateType]
if statements == nil {
iv.logger.Info("attestation predicate type %s not found", "predicates", types, "image", imageInfo.String())
iv.logger.Info("attestation predicate type not found", "type", ac.PredicateType, "predicates", types, "image", imageInfo.String())
return fmt.Errorf("predicate type %s not found", ac.PredicateType)
}
@ -494,7 +494,7 @@ func (iv *imageVerifier) verifyAttestations(statements []map[string]interface{},
}
}
iv.logger.V(3).Info("attestation checks passed for %s", imageInfo.String())
iv.logger.V(3).Info("attestation checks passed", "image", imageInfo.String())
return nil
}