Add katenary schema, cleanup and refactorization #81

Merged
metal3d merged 5 commits from develop into master 2024-11-19 12:44:04 +00:00
Showing only changes of commit af8dabba85 - Show all commits

View File

@@ -2,7 +2,6 @@ package generator
import ( import (
"encoding/base64" "encoding/base64"
"fmt"
"katenary/generator/labels" "katenary/generator/labels"
"katenary/utils" "katenary/utils"
"strings" "strings"
@@ -50,14 +49,6 @@ func NewSecret(service types.ServiceConfig, appName string) *Secret {
valueList = append(valueList, value) 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 { for _, value := range valueList {
if val, ok := service.Environment[value]; ok { if val, ok := service.Environment[value]; ok {
value = strings.TrimPrefix(value, `"`) value = strings.TrimPrefix(value, `"`)