cloudwash
cloudwash copied to clipboard
Delete OCP cluster leftovers using openshift-installer
Main changes:
- Make filtering more strict by deselecting a group of cluster-related resources if one of them has recently modified
- Update Dockerfile to install the
openshift-installer, for local env check if exists - Update cli with a
--yes, -yflag to bypass prompt questions before cluster destroying- Otherwise handle user input with [Y/N]
- Added
LeftoverAWSOcpclass that holds OCP cluster with all it's collected metadata and filtered resources- Modified other oop hirarchy for OCP cleanup
- Write down a temp metadata file as an input for the installer:
- Get the most accurate metadata by extracting OCP's resources tags
- Update the dry run log with printing the names of the OCP clusters with associated leftovers found:
@oharan2 The checks are failing in black. Please fix