mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-30 19:35:06 +00:00
fix: account for cosign default repository (#6849)
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
This commit is contained in:
parent
ed08a939ac
commit
ba59d6391a
1 changed files with 5 additions and 1 deletions
|
@ -452,9 +452,13 @@ func (iv *ImageVerifier) buildCosignVerifier(
|
|||
attestation *kyvernov1.Attestation,
|
||||
) (images.ImageVerifier, *images.Options, string) {
|
||||
path := ""
|
||||
repository := cosign.ImageSignatureRepository
|
||||
if imageVerify.Repository != "" {
|
||||
repository = imageVerify.Repository
|
||||
}
|
||||
opts := &images.Options{
|
||||
ImageRef: image,
|
||||
Repository: imageVerify.Repository,
|
||||
Repository: repository,
|
||||
Annotations: imageVerify.Annotations,
|
||||
RegistryClient: iv.rclient,
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue