fix(secrets): Wrapping values is unecessary
It seems that go-compose now escape the string
This commit is contained in:
@@ -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, `"`)
|
||||
|
Reference in New Issue
Block a user