INNER CODE UNIT · Go
out
kubesphere/kubekey · builtin/core/upgrade_path.go:337
out := make(map[string]interface{}, len(base)+len(src))
for k, v := range base {
out[k] = v
}
for k, sv := range src {
if bv, ok := out[k]; ok {
if bm, bok := bv.(map[string]interface{}); bok {
if sm, sok := sv.(map[string]interface{}); sok {
out[k] = combineConfigMaps(bm, sm)
continue
}
}
}
out[k] = sv
}
return out
}