[release] v0.10.3
This commit is contained in:
parent
dd1305290a
commit
744b98b3db
|
@ -1,3 +1,7 @@
|
|||
## Version 0.10.3
|
||||
- Add missing Constellation logs when creating certs
|
||||
- Ignore empty links in cosmos-compose
|
||||
|
||||
## Version 0.10.2
|
||||
- Fix port in host header
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "cosmos-server",
|
||||
"version": "0.10.2",
|
||||
"version": "0.10.3",
|
||||
"description": "",
|
||||
"main": "test-server.js",
|
||||
"bugs": {
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
<a href="https://github.com/soldier1"><img src="https://avatars.githubusercontent.com/soldier1" style="border-radius:48px" width="48" height="48" alt="null" title="null" /></a>
|
||||
<a href="https://github.com/devcircus"><img src="https://avatars.githubusercontent.com/devcircus" style="border-radius:48px" width="48" height="48" alt="Clayton Stone" title="Clayton Stone" /></a>
|
||||
<a href="https://github.com/BlackrazorNZ"><img src="https://avatars.githubusercontent.com/BlackrazorNZ" style="border-radius:48px" width="48" height="48" alt="null" title="null" /></a>
|
||||
<a href="https://github.com/saltyautomation"><img src="https://avatars.githubusercontent.com/saltyautomation" style="border-radius:48px" width="48" height="48" alt="T Morton" title="T Morton" /></a>
|
||||
</p><!-- /sponsors -->
|
||||
|
||||
---
|
||||
|
|
|
@ -31,14 +31,21 @@ func Init() {
|
|||
if _, err = os.Stat(utils.CONFIGFOLDER + "ca.crt"); os.IsNotExist(err) {
|
||||
utils.Log("Constellation: ca.crt not found, generating...")
|
||||
// generate ca.crt
|
||||
generateNebulaCACert("Cosmos - " + utils.GetMainConfig().ConstellationConfig.ConstellationHostname)
|
||||
|
||||
errG := generateNebulaCACert("Cosmos - " + utils.GetMainConfig().ConstellationConfig.ConstellationHostname)
|
||||
if errG != nil {
|
||||
utils.Error("Constellation: error while generating ca.crt", errG)
|
||||
}
|
||||
}
|
||||
|
||||
// check if cosmos.crt exists
|
||||
if _, err := os.Stat(utils.CONFIGFOLDER + "cosmos.crt"); os.IsNotExist(err) {
|
||||
utils.Log("Constellation: cosmos.crt not found, generating...")
|
||||
// generate cosmos.crt
|
||||
generateNebulaCert("cosmos", "192.168.201.1/24", "", true)
|
||||
_,_,_,errG := generateNebulaCert("cosmos", "192.168.201.1/24", "", true)
|
||||
if errG != nil {
|
||||
utils.Error("Constellation: error while generating cosmos.crt", errG)
|
||||
}
|
||||
}
|
||||
|
||||
// export nebula.yml
|
||||
|
|
|
@ -661,6 +661,10 @@ func CreateService(serviceRequest DockerServiceCreateRequest, OnLog func(string)
|
|||
|
||||
// Create the networks for links
|
||||
for _, targetContainer := range container.Links {
|
||||
if targetContainer == "" {
|
||||
continue
|
||||
}
|
||||
|
||||
if strings.Contains(targetContainer, ":") {
|
||||
err = errors.New("Link network cannot contain ':' please use container name only")
|
||||
utils.Error("CreateService: Rolling back changes because of -- Link network", err)
|
||||
|
|
Loading…
Reference in a new issue