fix(secrets): Wrapping values is unecessary

It seems that go-compose now escape the string
This commit is contained in:
2024-11-18 17:42:21 +01:00
parent cc1019b5a8
commit af8dabba85

View File

@@ -2,7 +2,6 @@ package generator
import (
"encoding/base64"
"fmt"
"katenary/generator/labels"
"katenary/utils"
"strings"
@@ -50,14 +49,6 @@ func NewSecret(service types.ServiceConfig, appName string) *Secret {
valueList = append(valueList, value)
}
// wrap values with quotes
for _, value := range service.Environment {
if value == nil {
continue
}
*value = fmt.Sprintf(`"%s"`, *value)
}
for _, value := range valueList {
if val, ok := service.Environment[value]; ok {
value = strings.TrimPrefix(value, `"`)