log.Warn(fmt.Sprintf("skipping globals because destination %s is not a table.",GlobalKey),slog.String("key",GlobalKey),slog.String("error","not a table"))
// Destination is not a table
log.Warn("skipping coalescing global values",slog.String("key",GlobalKey),slog.String("error","key is not a table"))
// It's not clear if this condition can actually ever trigger.
log.Warn(fmt.Sprintf("key %s is table. Skipping",key),slog.String("key",key),slog.String("error","cannot merge as key is a table"))
log.Warn("skipping key",slog.String("key",key),slog.String("error","cannot merge table and non-table values"))
}else{
// TODO: Do we need to do any additional checking on the value?
dg[key]=val
@ -232,7 +234,7 @@ func coalesceValues(c *chart.Chart, v map[string]interface{}, prefix string, mer
// If the original value is nil, there is nothing to coalesce, so we don't print
// the warning
ifval!=nil{
slog.Warn(fmt.Sprintf("skipped value for %s.%s",subPrefix,key),slog.String("chart",c.Name()),slog.String("key",fmt.Sprintf("%s.%s",subPrefix,key)),slog.String("error","not a table"))
log.Warn(fmt.Sprintf("cannot overwrite table with non table for %s (%v)",fullkey,val),slog.String("key",fullkey),slog.String("error","cannot overwrite table with non-table"))
log.Warn("skipping key",slog.String("key",fullkey),slog.String("error","cannot merge table and non-table values"))
}
}elseifistable(dv)&&val!=nil{
log.Warn(fmt.Sprintf("destination for %s is a table. Ignoring non-table value (%v)",fullkey,val),slog.String("key",fullkey),slog.String("error","destination is a table"))
log.Warn("skipping key",slog.String("key",fullkey),slog.String("error","cannot merge table and non-table values"))