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 (
"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, `"`)