IBM-Cloud / insurance-toolchain

Toolchain configuration files for the insurance-store microservices demo
6 stars 16 forks source link

Make name of deployed apps unique #8

Closed uwefassnacht closed 7 years ago

uwefassnacht commented 8 years ago

When creating the toolchain, "standard names" for the 4 microservices are chose.

There is no warning to users if these routes are already taken. Errors can be found in the logs:

The route dev-cloudco-insurance-catalog.mybluemix.net is already in use.

But these are hard to find or remedy (for novice cloud foundry users)

Is it possible to ask the user for a pre- or suffix for the apps? Or (at the very least) add a prominent note to the README what needs to be done to avoid this situation?

l2fprod commented 8 years ago

@uwefassnacht

We could change these texts to invite the user to give a unique name: image

uwefassnacht commented 8 years ago

Is there a way to make it more obvious than that? Almost force the user to input an app name? If not, can we attach his Bluemix ID to the app name as a pre- or suffix?

l2fprod commented 8 years ago

@uwefassnacht

The only "dynamic" input is the toolchain name. DevOps sets it to xxx-timestamp (insurance-toolchain-1233494494 as example). We can reuse this value in our default names:

image

However if the user changes the name of the toolchain, the value change gets propagated so the warning text can still be useful.

You can see these changes here: https://console.ng.bluemix.net/devops/setup/deploy/?repository=https%3A//github.com//IBM-Bluemix/insurance-toolchain.git&branch=warn-for-same-app-names

l2fprod commented 7 years ago

put warning and default names using the toolchain generated number. if you go to the toolchain and click create this ensures unique names.