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

Html5 Repositiry binding destination? #59

Open luizcarlospedrosogomes opened 2 years ago

luizcarlospedrosogomes commented 2 years ago

On the command line I have these names for the destinations image

In BTP I have these names html5-reositiry

He is using BTP destination. It shouldn't be the same destination, in the beginning each application had its own service. Is there a way to force binding to the correct service?

micellius commented 2 years ago

@luizcarlospedrosogomes , thanks for reporting an issue!

In SAP BTP there are two different types of destinations:

The list of destination names in the BTP Cockpit HTML5 Applications shows destination names as they are defined in the Destination service instance level destinations.

The cf html5-list -d shows list of HTML5 applications as they exposed via subaccount level destinations. To see the list of HTML5 applications available via service instance level destination configurations, you can use cf html5-list -di <destination_service_instance_name>. Currently there is no command to see all HTML5 applications exposed by all service instance level destinations of all Destination service instances, so you will need to specify <destination_service_instance_name>.

As it looks now from the screenshots you attached, you have both subaccount and instance level destination configurations pointing to the same html5-apps-repo/app-host service instances. This is the source of the confusion. In most cases, you don't need both. So, if there is no specific scenario that requires to keep HTML5 destinations on the subaccount level (e.g. standalone AppRouters in different spaces that should serve same app-host HTML5 applications), but rather you consume HTML5 applications via SAP Portal / Workzone - you can delete subaccount level destinations to avoid confusion.