Fixup broken merge

This commit is contained in:
2022-06-22 09:22:25 +02:00
parent 1266545919
commit 890d7b5017

View File

@@ -27,11 +27,11 @@ const (
// GetLabelsDocumentation returns the documentation for the labels.
func GetLabelsDocumentation() string {
t, _ := template.New("labels").Parse(`# Labels
t, err := template.New("labels").Parse(`# Labels
{{.LABEL_IGNORE | printf "%-33s"}}: ignore the container, it will not yied any object in the helm chart (bool)
{{.LABEL_SECRETVARS | printf "%-33s"}}: secret variables to push on a secret file (coma separated)
{{.LABEL_ENV_SECRET | printf "%-33s"}}: set the given file names as a secret instead of configmap (coma separated)
contaienr in {{.LABEL_MAP_ENV | printf "%-33s"}}: map environment variable to a template string (yaml style, object)
{{.LABEL_MAP_ENV | printf "%-33s"}}: map environment variable to a template string (yaml style, object)
{{.LABEL_PORT | printf "%-33s"}}: set the ports to assign on the container in pod + expose as a service (coma separated)
{{.LABEL_CONTAINER_PORT | printf "%-33s"}}: set the ports to assign on the contaienr in pod but avoid service (coma separated)
{{.LABEL_INGRESS | printf "%-33s"}}: set the port to expose in an ingress (coma separated)
@@ -54,6 +54,9 @@ contaienr in {{.LABEL_MAP_ENV | printf "%-33s"}}: map environment variabl
{{ printf "%-35s" ""}} -> http://[ignored][:port][/path] to specify an http healthcheck
{{ printf "%-35s" ""}} -> tcp://[ignored]:port to specify a tcp healthcheck
{{ printf "%-35s" ""}} -> other string is condidered as a "command" healthcheck`)
if err != nil {
panic(err)
}
buff := bytes.NewBuffer(nil)
t.Execute(buff, map[string]string{
"LABEL_ENV_SECRET": LABEL_ENV_SECRET,