mirror of
https://github.com/kubescape/kubescape.git
synced 2026-04-15 06:58:11 +00:00
Merge pull request #1965 from Mujib-Ahasan/error-handling
Fix: handle error from `NormalizeImageName` in patch command
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user