[release] v0.10.3

This commit is contained in:
Yann Stepienik 2023-10-13 15:44:16 +01:00
parent dd1305290a
commit 744b98b3db
5 changed files with 19 additions and 3 deletions

View file

@ -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

View file

@ -1,6 +1,6 @@
{
"name": "cosmos-server",
"version": "0.10.2",
"version": "0.10.3",
"description": "",
"main": "test-server.js",
"bugs": {

View file

@ -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 -->
---

View file

@ -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

View file

@ -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)