Merge pull request #1965 from Mujib-Ahasan/error-handling

Fix: handle error from `NormalizeImageName` in patch command
This commit is contained in:
Matthias Bertschy
2026-04-13 17:29:56 +02:00
committed by GitHub

View File

@@ -95,7 +95,7 @@ func validateImagePatchInfo(patchInfo *metav1.PatchInfo) error {
// Convert image to canonical format (required by copacetic for patching images)
patchInfoImage, err := cautils.NormalizeImageName(patchInfo.Image)
if err != nil {
return nil
return err
}
// Parse the image full name to get image name and tag