You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fmt.Fprintf(o.ErrOut, "error verifying signature %s for image %s (verification status will be removed): %v\n", img.Signatures[i].Name, o.InputImage, err)
193
+
img.Signatures[i]= imageapi.ImageSignature{}
187
194
continue
188
195
}
189
196
fmt.Fprintf(o.Out, "image %q identity is now confirmed (signed by GPG key %q)\n", o.InputImage, signedBy)
@@ -212,7 +219,7 @@ func (o VerifyImageSignatureOptions) Run() error {
212
219
img.Signatures[i].IssuedBy.CommonName=signedBy
213
220
}
214
221
215
-
ifo.Save {
222
+
ifo.Save||o.RemoveAll{
216
223
_, err:=o.Client.Images().Update(img)
217
224
returnerr
218
225
}
@@ -253,14 +260,6 @@ func (o *VerifyImageSignatureOptions) verifySignature(pc *signature.PolicyContex
253
260
}
254
261
}
255
262
256
-
// clearSignatureVerificationStatus removes the current image signature from the Image object by
257
-
// erasing all signature fields that were previously set (when image signature was
0 commit comments