SAP / cf-html5-apps-repo-cli-plugin

Cloud Foundry CLI plugin to work with SAP Cloud HTML5 Applications Repository
Apache License 2.0
43 stars 5 forks source link

Delete broken destinations #32

Closed micellius closed 4 years ago

micellius commented 4 years ago

Description

cf html5-list -d shows all destinations that point to some app-host-id. In case the corresponding app-host instance was deleted, the command shows table row with destination name, sap.cloud.service, and app-host-id.

It would be beneficial, if cf html5-delete -d will be able to delete such destinations, even if corresponding app-host instance does not exist any longer.

In case destinations were created during MTA deployment, undeployment of MTA will not delete destinations. There may be multiple destinations with same sap.cloud.service, but not all of them have app-host-id (e.g. XSUAA destination will not have such property). In this case all destinations with the sap.cloud.service equal to the one found in destination with provided app-host-id should be deleted as well (since they are logically bound).

Qualities of Change