[release] v0.11.0-unstable5

This commit is contained in:
Yann Stepienik 2023-10-22 12:18:24 +01:00
parent 37c7a61db9
commit 7f5f87e2b6
4 changed files with 8 additions and 4 deletions

View File

@ -64,7 +64,7 @@ jobs:
name: Rename ARM Nebula Binary
command: |
mv nebula nebula-arm
mv nebula-cert nebula-cert-arm
mv nebula-cert nebula-arm-cert
- run:
name: Download and Extract Nebula Binary

View File

@ -6,6 +6,7 @@
- Added support for cosmos-persistent-env, to persist password when overwriting containers (useful for encrypted or password protected volumes, like databases use)
- Fixed bug where import compose would try to revert a previously created volume when errors occurs
- Terminal for import now has colours
- Fix a bug where ARM CPU would not be able to start Constellation
## Version 0.10.4
- Encode OpenID .well-known to JSON

View File

@ -1,6 +1,6 @@
{
"name": "cosmos-server",
"version": "0.11.0-unstable4",
"version": "0.11.0-unstable5",
"description": "",
"main": "test-server.js",
"bugs": {

View File

@ -808,12 +808,15 @@ func CreateService(serviceRequest DockerServiceCreateRequest, OnLog func(string)
for routeIndex, route := range container.Routes {
// check if route already exists
exists := false
for _, configRoute := range configRoutes {
existsAt := 0
for destRouteIndex, configRoute := range configRoutes {
if configRoute.Name == route.Name {
exists = true
existsAt = destRouteIndex
break
}
}
if !exists {
needsHTTPRestart = true
configRoutes = append([]utils.ProxyRouteConfig{(utils.ProxyRouteConfig)(route)}, configRoutes...)
@ -824,7 +827,7 @@ func CreateService(serviceRequest DockerServiceCreateRequest, OnLog func(string)
// return errors.New("Route already exist")
//overwrite route
configRoutes[routeIndex] = (utils.ProxyRouteConfig)(route)
configRoutes[existsAt] = (utils.ProxyRouteConfig)(route)
utils.Warn("CreateService: Route " + route.Name + " already exist, overwriting.")
OnLog(utils.DoWarn("Route " + route.Name + " already exist, overwriting.\n"))
}