Fix notes.txt problems

We were using a bad method to read the ingress values. It's not ensured
by using the service names + checking the "ingress" key.
This commit is contained in:
2024-04-21 16:35:32 +02:00
parent d48fd2f911
commit 9826a54187
4 changed files with 55 additions and 19 deletions

View File

@@ -242,7 +242,11 @@ func Convert(config ConvertOptions, dockerComposeFile ...string) {
f.Write([]byte(readme))
f.Close()
notes := extrafiles.NotesFile()
services := make([]string, 0)
for _, service := range project.Services {
services = append(services, service.Name)
}
notes := extrafiles.NotesFile(services)
f, err = os.Create(notesPath)
if err != nil {
fmt.Println(utils.IconFailure, err)