You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CloudFoundry allows to map directly a domain to an application.
The cf-cli command cf map-route my-application application.cloudfoundry.dev is valid if the application.cloudfoundry.dev domain is created.
However, if the domain is created, the command cf map-route my-application cloudfoundry.dev --hostname application will fail as the route creation conflict with declared domain.
The plugin force the usage of cf map-route my-application cloudfoundry.dev -n application and fail at route creation.
Could it be interesting to try to execute the command cf map-route my-application application.cloudfoundry.dev after the first fail so it also try to map the route from a domain without host ?
func (p*BlueGreenDeploy) mapRoute(appNamestring, r plugin_models.GetApp_RouteSummary) {
if_, err:=p.Connection.CliCommand("map-route", appName, r.Domain.Name, "-n", r.Host); err!=nil {
if_, err:=p.Connection.CliCommand("map-route", appName, r.Host+"."+r.Domain.Name); err!=nil {
p.ErrorFunc("Could not map route or domain", err)
}
}
}
(Same for the route unmapping)
The text was updated successfully, but these errors were encountered:
gmllt
added a commit
to gmllt/cf-blue-green-deploy
that referenced
this issue
May 29, 2019
respectively mapRoute and unmapRoute if route is not in format
'host.domain' but simply 'domain'
See: bluemixgaragelondon#87
DCO 1.1 Signed-off-by: Gilles Miraillet <[email protected]>
CloudFoundry allows to map directly a domain to an application.
The cf-cli command
cf map-route my-application application.cloudfoundry.dev
is valid if theapplication.cloudfoundry.dev
domain is created.However, if the domain is created, the command
cf map-route my-application cloudfoundry.dev --hostname application
will fail as the route creation conflict with declared domain.Manifest sample :
The plugin force the usage of
cf map-route my-application cloudfoundry.dev -n application
and fail at route creation.Could it be interesting to try to execute the command
cf map-route my-application application.cloudfoundry.dev
after the first fail so it also try to map the route from a domain without host ?(Same for the route unmapping)
The text was updated successfully, but these errors were encountered: