Description:
After uninstalling a ROSA sts cluster via OCM UI, the related resources such as oidc-provider, operator-roles not deleted. Ideally we should think of clearing /deleting those cluster related resources after uninstallation or provide a warning to the user to indicate what needs to be done next (probably step) to delete the resources.
Steps to reproduce:
- Launch OCM UI staging
- Install ROSA sts cluster.
- Capture OIDC-provider and operator-role references used for cluster.
- Once cluster is ready , uninstall the ROSA sts cluster.
- After successful uninstallation, Login to AWS.
- Check the OIDC-provider and operator-role references from installed account.
Actual result
Both OIDC-provider and operator-role for the cluster remains as not deleted from AWS side after cluster uninstallation.
Expected result
A Proper warning to the user indicate about the same as well as with clear steps to delete these resources.
Acceptance Criteria
In the Uninstalling cluster... section show:
After the cluster is deleted
You will also need to delete the operator roles and OIDC provider associated with this cluster. Run the following commands after deletion is complete:
If OIDC config is not reusable (default)
rosa delete operator-roles -c <cluster_id>
rosa delete oidc-provider -c <cluster_id>
If OIDC config is reusable
rosa delete operator-roles --prefix <operator_role_prefix>
rosa delete oidc-provider --oidc-config-id <oidc_config_id>
Mockup
