Skip to content

Commit

Permalink
remove comment, grammar fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
fanny-jiang committed Oct 25, 2024
1 parent ef68df0 commit 160eed4
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions tools/yaml-mapper/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ func main() {
var destFile string
var prefixFile string
var updateMap bool
flag.StringVar(&mappingFile, "mappingFile", "", "path to mapping YAML file. Example: mapping.yaml")
flag.StringVar(&sourceFile, "sourceFile", "", "path to source YAML file. Example: source.yaml")
flag.StringVar(&destFile, "destFile", "destination.yaml", "path to destination YAML file.")
flag.StringVar(&prefixFile, "prefixFile", "example_prefix.yaml", "path to prefix YAML file. The content in this file will be prepended to the output")
flag.BoolVar(&updateMap, "updateMap", false, fmt.Sprintf("update 'mappingFile' with provided 'sourceFile'. (default false) If set to 'true', default mappingFile is %s and default sourceFile is latest published Datadog chart values.yaml", defaultDDAMappingPath))
flag.StringVar(&mappingFile, "mappingFile", "", "Path to mapping YAML file. Example: mapping.yaml")
flag.StringVar(&sourceFile, "sourceFile", "", "Path to source YAML file. Example: source.yaml")
flag.StringVar(&destFile, "destFile", "destination.yaml", "Path to destination YAML file.")
flag.StringVar(&prefixFile, "prefixFile", "example_prefix.yaml", "Path to prefix YAML file. The content in this file will be prepended to the output.")
flag.BoolVar(&updateMap, "updateMap", false, fmt.Sprintf("Update 'mappingFile' with provided 'sourceFile'. (default false) If set to 'true', default mappingFile is %s and default sourceFile is latest published Datadog chart values.yaml.", defaultDDAMappingPath))

flag.Parse()

Expand Down Expand Up @@ -254,7 +254,6 @@ func getLatestValuesFile() string {
return chartValuesFile
}

// todo: get the local chart
func getChartVersion() string {
chartYamlPath := downloadYaml("https://raw.githubusercontent.com/DataDog/helm-charts/main/charts/datadog/Chart.yaml", "datadog-Chart")

Expand Down

0 comments on commit 160eed4

Please sign in to comment.