feat(images): add InUse condition
Description
Add new condition InUse Add new handler to set InUse condition
Why do we need it, and what problem does it solve?
Other resources may use VI/CVI for creation, we must not delete VI/CVI while they are in use.
What is the expected result?
Checklist
- [ ] The code is covered by unit tests.
- [x] e2e tests passed.
- [ ] Documentation updated according to the changes.
- [x] Changes were tested in the Kubernetes cluster manually.
Changelog entries
section: images
type: feature
summary: Do not allow the deletion of VI/CVI that are in use.
Workflow has started. Follow the progress here: Workflow Run
The target step completed with status: success.
Workflow has started. Follow the progress here: Workflow Run
The target step completed with status: cancelled.
Workflow has started. Follow the progress here: Workflow Run
Workflow has started. Follow the progress here: Workflow Run
The target step completed with status: failure.
Workflow has started. Follow the progress here: Workflow Run
The target step completed with status: failure.
Workflow has started. Follow the progress here: Workflow Run
The target step completed with status: success.
Workflow has started. Follow the progress here: Workflow Run
The target step completed with status: failure.
Workflow has started. Follow the progress here: Workflow Run
The target step completed with status: failure.
Workflow has started. Follow the progress here: Workflow Run
The target step completed with status: failure.