Fixed Values that was badly initialized

This commit is contained in:
2022-05-05 13:22:39 +02:00
parent ee5a18ae86
commit fe45157439

View File

@@ -620,14 +620,13 @@ func AddValues(servicename string, values map[string]interface{}) {
locker.Lock()
defer locker.Unlock()
if _, ok := values[servicename]; !ok {
if _, ok := Values[servicename]; !ok {
Values[servicename] = make(map[string]interface{})
}
for k, v := range values {
Values[servicename][k] = v
}
}
// AddVolumeValues add a volume to the values.yaml map for the given deployment name.