- Added a message to explain to the user that it needs to build and push images - The Release Name string is now a constant ins source code, later we will be able to change it to (for example) a template call - SHA256 injected label (from docker-compose file content) is a bit long, SHA1 is shorter - We now add compose command line and generation date in the Values file - Code cleanup, refactorisation and enhancements - More documentation in the source code
25 lines
537 B
Go
25 lines
537 B
Go
package helm
|
|
|
|
import "strings"
|
|
|
|
var NOTES = `
|
|
Congratulations,
|
|
|
|
Your application is now deployed. This may take a while to be up and responding.
|
|
|
|
__list__
|
|
`
|
|
|
|
func GenerateNotesFile(ingressess map[string]*Ingress) string {
|
|
|
|
list := make([]string, 0)
|
|
|
|
for name, ing := range ingressess {
|
|
for _, r := range ing.Spec.Rules {
|
|
list = append(list, "{{ if .Values."+name+".ingress.enabled -}}\n- "+name+" is accessible on : http://"+r.Host+"\n{{- end }}")
|
|
}
|
|
}
|
|
|
|
return strings.ReplaceAll(NOTES, "__list__", strings.Join(list, "\n"))
|
|
}
|