make single file do _something_

This commit is contained in:
Martyn 2026-05-05 23:58:11 +02:00
parent 862470812d
commit 100cac887f

View file

@ -162,7 +162,11 @@ releases section.`,
outputProject.Spec.SourceRepos = append(outputProject.Spec.SourceRepos, helmfileContents.Repositories[i].Url)
}
outputProjectYaml, _ := yaml.Marshal(outputProject)
outputYamlFile(outputProjectYaml, "project-"+projectName+".yaml")
var outputFilename = "project-"+projectName+".yaml"
if singleFile {
outputFilename = "helmfile2argo.yaml"
}
outputYamlFile(outputProjectYaml, outputFilename)
}
reposFromHelmChart = helmfileContents.Repositories
if len(helmfileContents.Releases) > 0 {
@ -204,7 +208,11 @@ releases section.`,
outputApp.Spec.Destination.Namespace = thisRelease.Namespace
outputAppYaml, _ := yaml.Marshal(outputApp)
outputYamlFile(outputAppYaml,"app-"+thisRelease.Name+".yaml")
var outputFilename = "app-"+thisRelease.Name+".yaml"
if singleFile {
outputFilename = "helmfile2argo.yaml"
}
outputYamlFile(outputAppYaml,outputFilename)
}
}
},