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
When using crane to delete images inside some kind of automation pipeline, it would be nice if crane delete would consider non-existent deletes as a successful result instead of erroring out.
This would be useful when a Human manually deletes a image from a registry, and later, the automation that calls crane will also try to delete that image. In this case, since the image is already deleted, crane should accept that as a successful result.
To Reproduce
Upload/Copy an image to a ECR repository, e.g.: crane copy "$source_image" "$target_image".
As a Human, at the ECR repository, delete the uploaded image.
Delete the image using crane, e.g.: crane delete "$target_image".
See crane error out with: MANIFEST_UNKNOWN: Requested image not found.
Expected behavior
Since the image is already deleted, crane delete should consider that case as a non-error, and return successfully.
This issue is stale because it has been open for 90 days with no
activity. It will automatically close after 30 more days of
inactivity. Keep fresh with the 'lifecycle/frozen' label.
Describe the bug
When using crane to delete images inside some kind of automation pipeline, it would be nice if
crane delete
would consider non-existent deletes as a successful result instead of erroring out.This would be useful when a Human manually deletes a image from a registry, and later, the automation that calls
crane
will also try to delete that image. In this case, since the image is already deleted,crane
should accept that as a successful result.To Reproduce
crane copy "$source_image" "$target_image"
.crane delete "$target_image"
.MANIFEST_UNKNOWN: Requested image not found
.Expected behavior
Since the image is already deleted,
crane delete
should consider that case as a non-error, and return successfully.Additional context
The full example is at https://github.com/rgl/pulumi-typescript-aws-native-ecr-example. The
crane delete
command is at https://github.com/rgl/pulumi-typescript-aws-native-ecr-example/blob/main/ecr-image.sh (which is called from https://github.com/rgl/pulumi-typescript-aws-native-ecr-example/blob/main/images.ts (look forecr-image.sh
for the exact place)).crane version
: 0.17.0The text was updated successfully, but these errors were encountered: