Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/fanny/map-update' into swang392/…
Browse files Browse the repository at this point in the history
…mapper-updates

# Conflicts:
#	tools/yaml-mapper/mapping_datadog_helm_to_datadogagent_crd.yaml
  • Loading branch information
fanny-jiang committed Oct 23, 2024
2 parents 96da103 + 37777ae commit 68eaa1c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 118 deletions.
4 changes: 2 additions & 2 deletions tools/yaml-mapper/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -284,11 +284,11 @@ func downloadYaml(url string, name string) string {
func parseValues(sourceValues chartutil.Values, valuesMap map[string]interface{}, prefix string) map[string]interface{} {
for key, value := range sourceValues {
currentKey := prefix + key
valuesMap[currentKey] = ""

// If the value is a map, recursive call to get nested keys.
if nestedMap, ok := value.(map[string]interface{}); ok {
parseValues(nestedMap, valuesMap, currentKey+".")
} else {
valuesMap[currentKey] = ""
}
}
return valuesMap
Expand Down
Loading

0 comments on commit 68eaa1c

Please sign in to comment.