pull/2189/merge
Anubhav Mishra 9 years ago committed by GitHub
commit f00f9272df

@ -40,7 +40,9 @@ func SplitManifests(bigfile string) map[string]string {
sep := "\n---\n" sep := "\n---\n"
tpl := "manifest-%d" tpl := "manifest-%d"
res := map[string]string{} res := map[string]string{}
tmp := strings.Split(bigfile, sep) // Making sure yaml formatting doesn't matter when generating manifest from string.
bigFileTmp := strings.TrimSpace(bigfile)
tmp := strings.Split(bigFileTmp, sep)
for i, d := range tmp { for i, d := range tmp {
res[fmt.Sprintf(tpl, i)] = d res[fmt.Sprintf(tpl, i)] = d
} }

Loading…
Cancel
Save