Skip to content

Commit

Permalink
chore(actions/common.go): update filename for e2e chart
Browse files Browse the repository at this point in the history
As location of e2e pod name will have changed in deis/charts#299.
Therefore, this PR depends on deis/charts#299 being merged.
  • Loading branch information
Vaughn Dice committed Jun 28, 2016
1 parent 5dea530 commit c1aa338
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion actions/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ var (
Files: []string{
"README.md",
"Chart.yaml",
filepath.Join("tpl", "workflow-e2e-pod.yaml"),
filepath.Join("tpl", "generate_params.toml"),
},
}
)
Expand Down
18 changes: 9 additions & 9 deletions actions/helm_stage.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,15 @@ func helmStage(ghClient *github.Client, c *cli.Context, helmChart helmChart) {
log.Fatalf("Error creating dir %s (%s)", filepath.Join(stagingDir, "tpl"), err)
}

// stage 'tpl/generate_params.toml' with latest git shas for each component
defaultParamsComponentAttrs := genParamsComponentAttrs{
Org: c.GlobalString(OrgFlag),
PullPolicy: c.GlobalString(PullPolicyFlag),
Tag: c.GlobalString(TagFlag),
}
paramsComponentMap := getParamsComponentMap(ghClient, defaultParamsComponentAttrs, helmChart.Template, c.GlobalString(RefFlag))
generateParams(ourFS, stagingDir, paramsComponentMap, helmChart)

// gather helmChart.Files from GitHub needing release string updates
ghFiles, err := downloadFiles(ghClient, org, repo, &opt, helmChart)
if err != nil {
Expand All @@ -42,15 +51,6 @@ func helmStage(ghClient *github.Client, c *cli.Context, helmChart helmChart) {
if err := updateFilesWithRelease(ourFP, ourFS, deisRelease, stagingDir); err != nil {
log.Fatalf("Error updating files with release '%s' (%s)", deisRelease.Short, err)
}

// stage 'tpl/generate_params.toml' with latest git shas for each component
defaultParamsComponentAttrs := genParamsComponentAttrs{
Org: c.GlobalString(OrgFlag),
PullPolicy: c.GlobalString(PullPolicyFlag),
Tag: c.GlobalString(TagFlag),
}
paramsComponentMap := getParamsComponentMap(ghClient, defaultParamsComponentAttrs, helmChart.Template, c.GlobalString(RefFlag))
generateParams(ourFS, stagingDir, paramsComponentMap, helmChart)
}

func createDir(fs sys.FS, dirName string) error {
Expand Down

0 comments on commit c1aa338

Please sign in to comment.