cloudwash icon indicating copy to clipboard operation
cloudwash copied to clipboard

Delete OCP cluster leftovers using openshift-installer

Open oharan2 opened this issue 8 months ago • 1 comments

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, -y flag to bypass prompt questions before cluster destroying
    • Otherwise handle user input with [Y/N]
  • Added LeftoverAWSOcp class 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: image

oharan2 avatar Apr 24 '25 12:04 oharan2

@oharan2 The checks are failing in black. Please fix

jyejare avatar May 18 '25 11:05 jyejare