make single file do _something_
This commit is contained in:
parent
862470812d
commit
100cac887f
1 changed files with 10 additions and 2 deletions
|
|
@ -162,7 +162,11 @@ releases section.`,
|
||||||
outputProject.Spec.SourceRepos = append(outputProject.Spec.SourceRepos, helmfileContents.Repositories[i].Url)
|
outputProject.Spec.SourceRepos = append(outputProject.Spec.SourceRepos, helmfileContents.Repositories[i].Url)
|
||||||
}
|
}
|
||||||
outputProjectYaml, _ := yaml.Marshal(outputProject)
|
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
|
reposFromHelmChart = helmfileContents.Repositories
|
||||||
if len(helmfileContents.Releases) > 0 {
|
if len(helmfileContents.Releases) > 0 {
|
||||||
|
|
@ -204,7 +208,11 @@ releases section.`,
|
||||||
outputApp.Spec.Destination.Namespace = thisRelease.Namespace
|
outputApp.Spec.Destination.Namespace = thisRelease.Namespace
|
||||||
|
|
||||||
outputAppYaml, _ := yaml.Marshal(outputApp)
|
outputAppYaml, _ := yaml.Marshal(outputApp)
|
||||||
outputYamlFile(outputAppYaml,"app-"+thisRelease.Name+".yaml")
|
var outputFilename = "app-"+thisRelease.Name+".yaml"
|
||||||
|
if singleFile {
|
||||||
|
outputFilename = "helmfile2argo.yaml"
|
||||||
|
}
|
||||||
|
outputYamlFile(outputAppYaml,outputFilename)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue