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
This commit implements the --ignore functionality for the artifact rm command,
allowing users to ignore errors when specified artifacts do not exist.
Changes made:
- Add Ignore field to ArtifactRemoveOptions entity types
- Add --ignore CLI flag (-i short form) to artifact rm command
- Implement ignore logic in ABI backend to continue processing on errors
- Update API handlers and tunnel implementation for podman-remote support
- Add comprehensive documentation and examples to man page
- Add e2e and system BATS tests for --ignore functionality
- Clean up whitespace in BATS test files
The --ignore option follows the same pattern as other podman ignore options
like 'podman image rm --ignore' and 'podman pod rm --ignore'. It allows
scripts to continue execution when trying to remove artifacts that may
not exist, preventing race conditions in cleanup scenarios.
Usage examples:
podman artifact rm --ignore nonexistent-artifact
podman artifact rm --ignore existing-artifact nonexistent-artifact
Fixes: #27084
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
0 commit comments