Skip to content

Commit af8dabb

Browse files
committed
fix(secrets): Wrapping values is unecessary
It seems that go-compose now escape the string
1 parent cc1019b commit af8dabb

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

generator/secret.go

-9
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ package generator
22

33
import (
44
"encoding/base64"
5-
"fmt"
65
"katenary/generator/labels"
76
"katenary/utils"
87
"strings"
@@ -50,14 +49,6 @@ func NewSecret(service types.ServiceConfig, appName string) *Secret {
5049
valueList = append(valueList, value)
5150
}
5251

53-
// wrap values with quotes
54-
for _, value := range service.Environment {
55-
if value == nil {
56-
continue
57-
}
58-
*value = fmt.Sprintf(`"%s"`, *value)
59-
}
60-
6152
for _, value := range valueList {
6253
if val, ok := service.Environment[value]; ok {
6354
value = strings.TrimPrefix(value, `"`)

0 commit comments

Comments
 (0)