mirror of
https://git.vectorsigma.ru/public/atlantis.git
synced 2026-08-04 18:48:29 +00:00
Merge pull request #373 from runatlantis/project-name-comments
Add project name to comments
This commit is contained in:
@@ -65,9 +65,10 @@ type ResultData struct {
|
||||
}
|
||||
|
||||
type projectResultTmplData struct {
|
||||
Workspace string
|
||||
RepoRelDir string
|
||||
Rendered string
|
||||
Workspace string
|
||||
RepoRelDir string
|
||||
ProjectName string
|
||||
Rendered string
|
||||
}
|
||||
|
||||
// Render formats the data into a markdown string.
|
||||
@@ -90,8 +91,9 @@ func (m *MarkdownRenderer) renderProjectResults(results []ProjectResult, common
|
||||
|
||||
for _, result := range results {
|
||||
resultData := projectResultTmplData{
|
||||
Workspace: result.Workspace,
|
||||
RepoRelDir: result.RepoRelDir,
|
||||
Workspace: result.Workspace,
|
||||
RepoRelDir: result.RepoRelDir,
|
||||
ProjectName: result.ProjectName,
|
||||
}
|
||||
if result.Error != nil {
|
||||
tmpl := unwrappedErrTmpl
|
||||
@@ -178,23 +180,23 @@ func (m *MarkdownRenderer) renderTemplate(tmpl *template.Template, data interfac
|
||||
|
||||
// todo: refactor to remove duplication #refactor
|
||||
var singleProjectApplyTmpl = template.Must(template.New("").Parse(
|
||||
"{{$result := index .Results 0}}Ran {{.Command}} in dir: `{{$result.RepoRelDir}}` workspace: `{{$result.Workspace}}`\n\n{{$result.Rendered}}\n" + logTmpl))
|
||||
"{{$result := index .Results 0}}Ran {{.Command}} for {{ if $result.ProjectName }}project: `{{$result.ProjectName}}` {{ end }}dir: `{{$result.RepoRelDir}}` workspace: `{{$result.Workspace}}`\n\n{{$result.Rendered}}\n" + logTmpl))
|
||||
var singleProjectPlanSuccessTmpl = template.Must(template.New("").Parse(
|
||||
"{{$result := index .Results 0}}Ran {{.Command}} in dir: `{{$result.RepoRelDir}}` workspace: `{{$result.Workspace}}`\n\n{{$result.Rendered}}\n" +
|
||||
"{{$result := index .Results 0}}Ran {{.Command}} for {{ if $result.ProjectName }}project: `{{$result.ProjectName}}` {{ end }}dir: `{{$result.RepoRelDir}}` workspace: `{{$result.Workspace}}`\n\n{{$result.Rendered}}\n" +
|
||||
"\n" +
|
||||
"---\n" +
|
||||
"* :fast_forward: To **apply** all unapplied plans from this pull request, comment:\n" +
|
||||
" * `atlantis apply`" + logTmpl))
|
||||
var singleProjectPlanUnsuccessfulTmpl = template.Must(template.New("").Parse(
|
||||
"{{$result := index .Results 0}}Ran {{.Command}} in dir: `{{$result.RepoRelDir}}` workspace: `{{$result.Workspace}}`\n\n" +
|
||||
"{{$result := index .Results 0}}Ran {{.Command}} for dir: `{{$result.RepoRelDir}}` workspace: `{{$result.Workspace}}`\n\n" +
|
||||
"{{$result.Rendered}}\n" + logTmpl))
|
||||
var multiProjectPlanTmpl = template.Must(template.New("").Funcs(sprig.TxtFuncMap()).Parse(
|
||||
"Ran {{.Command}} for {{ len .Results }} projects:\n" +
|
||||
"{{ range $result := .Results }}" +
|
||||
"1. workspace: `{{$result.Workspace}}` dir: `{{$result.RepoRelDir}}`\n" +
|
||||
"1. {{ if $result.ProjectName }}project: `{{$result.ProjectName}}` {{ end }}dir: `{{$result.RepoRelDir}}` workspace: `{{$result.Workspace}}`\n" +
|
||||
"{{end}}\n" +
|
||||
"{{ range $i, $result := .Results }}" +
|
||||
"### {{add $i 1}}. workspace: `{{$result.Workspace}}` dir: `{{$result.RepoRelDir}}`\n" +
|
||||
"### {{add $i 1}}. {{ if $result.ProjectName }}project: `{{$result.ProjectName}}` {{ end }}dir: `{{$result.RepoRelDir}}` workspace: `{{$result.Workspace}}`\n" +
|
||||
"{{$result.Rendered}}\n\n" +
|
||||
"---\n{{end}}{{ if gt (len .Results) 0 }}* :fast_forward: To **apply** all unapplied plans from this pull request, comment:\n" +
|
||||
" * `atlantis apply`{{end}}" +
|
||||
@@ -202,10 +204,10 @@ var multiProjectPlanTmpl = template.Must(template.New("").Funcs(sprig.TxtFuncMap
|
||||
var multiProjectApplyTmpl = template.Must(template.New("").Funcs(sprig.TxtFuncMap()).Parse(
|
||||
"Ran {{.Command}} for {{ len .Results }} projects:\n" +
|
||||
"{{ range $result := .Results }}" +
|
||||
"1. workspace: `{{$result.Workspace}}` dir: `{{$result.RepoRelDir}}`\n" +
|
||||
"1. {{ if $result.ProjectName }}project: `{{$result.ProjectName}}` {{ end }}dir: `{{$result.RepoRelDir}}` workspace: `{{$result.Workspace}}`\n" +
|
||||
"{{end}}\n" +
|
||||
"{{ range $i, $result := .Results }}" +
|
||||
"### {{add $i 1}}. workspace: `{{$result.Workspace}}` dir: `{{$result.RepoRelDir}}`\n" +
|
||||
"### {{add $i 1}}. {{ if $result.ProjectName }}project: `{{$result.ProjectName}}` {{ end }}dir: `{{$result.RepoRelDir}}` workspace: `{{$result.Workspace}}`\n" +
|
||||
"{{$result.Rendered}}\n\n" +
|
||||
"---\n{{end}}" +
|
||||
logTmpl))
|
||||
|
||||
@@ -48,20 +48,19 @@ func TestRenderErr(t *testing.T) {
|
||||
|
||||
r := events.MarkdownRenderer{}
|
||||
for _, c := range cases {
|
||||
t.Run(c.Description, func(t *testing.T) {
|
||||
res := events.CommandResult{
|
||||
Error: c.Error,
|
||||
}
|
||||
for _, verbose := range []bool{true, false} {
|
||||
t.Log("testing " + c.Description)
|
||||
res := events.CommandResult{
|
||||
Error: c.Error,
|
||||
}
|
||||
for _, verbose := range []bool{true, false} {
|
||||
t.Run(fmt.Sprintf("%s_%t", c.Description, verbose), func(t *testing.T) {
|
||||
s := r.Render(res, c.Command, "log", verbose, models.Github)
|
||||
if !verbose {
|
||||
Equals(t, c.Expected, s)
|
||||
} else {
|
||||
Equals(t, c.Expected+"<details><summary>Log</summary>\n <p>\n\n```\nlog```\n</p></details>\n", s)
|
||||
}
|
||||
}
|
||||
})
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -88,25 +87,23 @@ func TestRenderFailure(t *testing.T) {
|
||||
|
||||
r := events.MarkdownRenderer{}
|
||||
for _, c := range cases {
|
||||
t.Run(c.Description, func(t *testing.T) {
|
||||
res := events.CommandResult{
|
||||
Failure: c.Failure,
|
||||
}
|
||||
for _, verbose := range []bool{true, false} {
|
||||
t.Log("testing " + c.Description)
|
||||
res := events.CommandResult{
|
||||
Failure: c.Failure,
|
||||
}
|
||||
for _, verbose := range []bool{true, false} {
|
||||
t.Run(fmt.Sprintf("%s_%t", c.Description, verbose), func(t *testing.T) {
|
||||
s := r.Render(res, c.Command, "log", verbose, models.Github)
|
||||
if !verbose {
|
||||
Equals(t, c.Expected, s)
|
||||
} else {
|
||||
Equals(t, c.Expected+"<details><summary>Log</summary>\n <p>\n\n```\nlog```\n</p></details>\n", s)
|
||||
}
|
||||
}
|
||||
})
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func TestRenderErrAndFailure(t *testing.T) {
|
||||
t.Log("if there is an error and a failure, the error should be printed")
|
||||
r := events.MarkdownRenderer{}
|
||||
res := events.CommandResult{
|
||||
Error: errors.New("error"),
|
||||
@@ -147,7 +144,41 @@ func TestRenderProjectResults(t *testing.T) {
|
||||
},
|
||||
},
|
||||
models.Github,
|
||||
`Ran Plan in dir: $path$ workspace: $workspace$
|
||||
`Ran Plan for dir: $path$ workspace: $workspace$
|
||||
|
||||
$$$diff
|
||||
terraform-output
|
||||
$$$
|
||||
|
||||
* :arrow_forward: To **apply** this plan, comment:
|
||||
* $atlantis apply -d path -w workspace$
|
||||
* :put_litter_in_its_place: To **delete** this plan click [here](lock-url)
|
||||
* :repeat: To **plan** this project again, comment:
|
||||
* $atlantis plan -d path -w workspace$
|
||||
|
||||
---
|
||||
* :fast_forward: To **apply** all unapplied plans from this pull request, comment:
|
||||
* $atlantis apply$
|
||||
`,
|
||||
},
|
||||
{
|
||||
"single successful plan with project name",
|
||||
events.PlanCommand,
|
||||
[]events.ProjectResult{
|
||||
{
|
||||
PlanSuccess: &events.PlanSuccess{
|
||||
TerraformOutput: "terraform-output",
|
||||
LockURL: "lock-url",
|
||||
RePlanCmd: "atlantis plan -d path -w workspace",
|
||||
ApplyCmd: "atlantis apply -d path -w workspace",
|
||||
},
|
||||
Workspace: "workspace",
|
||||
RepoRelDir: "path",
|
||||
ProjectName: "projectname",
|
||||
},
|
||||
},
|
||||
models.Github,
|
||||
`Ran Plan for project: $projectname$ dir: $path$ workspace: $workspace$
|
||||
|
||||
$$$diff
|
||||
terraform-output
|
||||
@@ -175,7 +206,27 @@ $$$
|
||||
},
|
||||
},
|
||||
models.Github,
|
||||
`Ran Apply in dir: $path$ workspace: $workspace$
|
||||
`Ran Apply for dir: $path$ workspace: $workspace$
|
||||
|
||||
$$$diff
|
||||
success
|
||||
$$$
|
||||
|
||||
`,
|
||||
},
|
||||
{
|
||||
"single successful apply with project name",
|
||||
events.ApplyCommand,
|
||||
[]events.ProjectResult{
|
||||
{
|
||||
ApplySuccess: "success",
|
||||
Workspace: "workspace",
|
||||
RepoRelDir: "path",
|
||||
ProjectName: "projectname",
|
||||
},
|
||||
},
|
||||
models.Github,
|
||||
`Ran Apply for project: $projectname$ dir: $path$ workspace: $workspace$
|
||||
|
||||
$$$diff
|
||||
success
|
||||
@@ -198,8 +249,9 @@ $$$
|
||||
},
|
||||
},
|
||||
{
|
||||
Workspace: "workspace",
|
||||
RepoRelDir: "path2",
|
||||
Workspace: "workspace",
|
||||
RepoRelDir: "path2",
|
||||
ProjectName: "projectname",
|
||||
PlanSuccess: &events.PlanSuccess{
|
||||
TerraformOutput: "terraform-output2",
|
||||
LockURL: "lock-url2",
|
||||
@@ -210,10 +262,10 @@ $$$
|
||||
},
|
||||
models.Github,
|
||||
`Ran Plan for 2 projects:
|
||||
1. workspace: $workspace$ dir: $path$
|
||||
1. workspace: $workspace$ dir: $path2$
|
||||
1. dir: $path$ workspace: $workspace$
|
||||
1. project: $projectname$ dir: $path2$ workspace: $workspace$
|
||||
|
||||
### 1. workspace: $workspace$ dir: $path$
|
||||
### 1. dir: $path$ workspace: $workspace$
|
||||
$$$diff
|
||||
terraform-output
|
||||
$$$
|
||||
@@ -225,7 +277,7 @@ $$$
|
||||
* $atlantis plan -d path -w workspace$
|
||||
|
||||
---
|
||||
### 2. workspace: $workspace$ dir: $path2$
|
||||
### 2. project: $projectname$ dir: $path2$ workspace: $workspace$
|
||||
$$$diff
|
||||
terraform-output2
|
||||
$$$
|
||||
@@ -248,6 +300,7 @@ $$$
|
||||
{
|
||||
RepoRelDir: "path",
|
||||
Workspace: "workspace",
|
||||
ProjectName: "projectname",
|
||||
ApplySuccess: "success",
|
||||
},
|
||||
{
|
||||
@@ -258,16 +311,16 @@ $$$
|
||||
},
|
||||
models.Github,
|
||||
`Ran Apply for 2 projects:
|
||||
1. workspace: $workspace$ dir: $path$
|
||||
1. workspace: $workspace$ dir: $path2$
|
||||
1. project: $projectname$ dir: $path$ workspace: $workspace$
|
||||
1. dir: $path2$ workspace: $workspace$
|
||||
|
||||
### 1. workspace: $workspace$ dir: $path$
|
||||
### 1. project: $projectname$ dir: $path$ workspace: $workspace$
|
||||
$$$diff
|
||||
success
|
||||
$$$
|
||||
|
||||
---
|
||||
### 2. workspace: $workspace$ dir: $path2$
|
||||
### 2. dir: $path2$ workspace: $workspace$
|
||||
$$$diff
|
||||
success2
|
||||
$$$
|
||||
@@ -287,7 +340,7 @@ $$$
|
||||
},
|
||||
},
|
||||
models.Github,
|
||||
`Ran Plan in dir: $path$ workspace: $workspace$
|
||||
`Ran Plan for dir: $path$ workspace: $workspace$
|
||||
|
||||
**Plan Error**
|
||||
$$$
|
||||
@@ -307,7 +360,7 @@ $$$
|
||||
},
|
||||
},
|
||||
models.Github,
|
||||
`Ran Plan in dir: $path$ workspace: $workspace$
|
||||
`Ran Plan for dir: $path$ workspace: $workspace$
|
||||
|
||||
**Plan Failed**: failure
|
||||
|
||||
@@ -333,18 +386,19 @@ $$$
|
||||
Failure: "failure",
|
||||
},
|
||||
{
|
||||
Workspace: "workspace",
|
||||
RepoRelDir: "path3",
|
||||
Error: errors.New("error"),
|
||||
Workspace: "workspace",
|
||||
RepoRelDir: "path3",
|
||||
ProjectName: "projectname",
|
||||
Error: errors.New("error"),
|
||||
},
|
||||
},
|
||||
models.Github,
|
||||
`Ran Plan for 3 projects:
|
||||
1. workspace: $workspace$ dir: $path$
|
||||
1. workspace: $workspace$ dir: $path2$
|
||||
1. workspace: $workspace$ dir: $path3$
|
||||
1. dir: $path$ workspace: $workspace$
|
||||
1. dir: $path2$ workspace: $workspace$
|
||||
1. project: $projectname$ dir: $path3$ workspace: $workspace$
|
||||
|
||||
### 1. workspace: $workspace$ dir: $path$
|
||||
### 1. dir: $path$ workspace: $workspace$
|
||||
$$$diff
|
||||
terraform-output
|
||||
$$$
|
||||
@@ -356,11 +410,11 @@ $$$
|
||||
* $atlantis plan -d path -w workspace$
|
||||
|
||||
---
|
||||
### 2. workspace: $workspace$ dir: $path2$
|
||||
### 2. dir: $path2$ workspace: $workspace$
|
||||
**Plan Failed**: failure
|
||||
|
||||
---
|
||||
### 3. workspace: $workspace$ dir: $path3$
|
||||
### 3. project: $projectname$ dir: $path3$ workspace: $workspace$
|
||||
**Plan Error**
|
||||
$$$
|
||||
error
|
||||
@@ -393,21 +447,21 @@ $$$
|
||||
},
|
||||
models.Github,
|
||||
`Ran Apply for 3 projects:
|
||||
1. workspace: $workspace$ dir: $path$
|
||||
1. workspace: $workspace$ dir: $path2$
|
||||
1. workspace: $workspace$ dir: $path3$
|
||||
1. dir: $path$ workspace: $workspace$
|
||||
1. dir: $path2$ workspace: $workspace$
|
||||
1. dir: $path3$ workspace: $workspace$
|
||||
|
||||
### 1. workspace: $workspace$ dir: $path$
|
||||
### 1. dir: $path$ workspace: $workspace$
|
||||
$$$diff
|
||||
success
|
||||
$$$
|
||||
|
||||
---
|
||||
### 2. workspace: $workspace$ dir: $path2$
|
||||
### 2. dir: $path2$ workspace: $workspace$
|
||||
**Apply Failed**: failure
|
||||
|
||||
---
|
||||
### 3. workspace: $workspace$ dir: $path3$
|
||||
### 3. dir: $path3$ workspace: $workspace$
|
||||
**Apply Error**
|
||||
$$$
|
||||
error
|
||||
@@ -439,21 +493,21 @@ $$$
|
||||
},
|
||||
models.Github,
|
||||
`Ran Apply for 3 projects:
|
||||
1. workspace: $workspace$ dir: $path$
|
||||
1. workspace: $workspace$ dir: $path2$
|
||||
1. workspace: $workspace$ dir: $path3$
|
||||
1. dir: $path$ workspace: $workspace$
|
||||
1. dir: $path2$ workspace: $workspace$
|
||||
1. dir: $path3$ workspace: $workspace$
|
||||
|
||||
### 1. workspace: $workspace$ dir: $path$
|
||||
### 1. dir: $path$ workspace: $workspace$
|
||||
$$$diff
|
||||
success
|
||||
$$$
|
||||
|
||||
---
|
||||
### 2. workspace: $workspace$ dir: $path2$
|
||||
### 2. dir: $path2$ workspace: $workspace$
|
||||
**Apply Failed**: failure
|
||||
|
||||
---
|
||||
### 3. workspace: $workspace$ dir: $path3$
|
||||
### 3. dir: $path3$ workspace: $workspace$
|
||||
**Apply Error**
|
||||
$$$
|
||||
error
|
||||
@@ -569,7 +623,7 @@ func TestRenderProjectResults_WrappedErr(t *testing.T) {
|
||||
}, events.PlanCommand, "log", false, c.VCSHost)
|
||||
var exp string
|
||||
if c.ShouldWrap {
|
||||
exp = `Ran Plan in dir: $.$ workspace: $default$
|
||||
exp = `Ran Plan for dir: $.$ workspace: $default$
|
||||
|
||||
**Plan Error**
|
||||
<details><summary>Show Output</summary>
|
||||
@@ -581,7 +635,7 @@ $$$
|
||||
|
||||
`
|
||||
} else {
|
||||
exp = `Ran Plan in dir: $.$ workspace: $default$
|
||||
exp = `Ran Plan for dir: $.$ workspace: $default$
|
||||
|
||||
**Plan Error**
|
||||
$$$
|
||||
@@ -698,7 +752,7 @@ func TestRenderProjectResults_WrapSingleProject(t *testing.T) {
|
||||
switch cmd {
|
||||
case events.PlanCommand:
|
||||
if c.ShouldWrap {
|
||||
exp = `Ran Plan in dir: $.$ workspace: $default$
|
||||
exp = `Ran Plan for dir: $.$ workspace: $default$
|
||||
|
||||
<details><summary>Show Output</summary>
|
||||
|
||||
@@ -718,7 +772,7 @@ $$$
|
||||
* $atlantis apply$
|
||||
`
|
||||
} else {
|
||||
exp = `Ran Plan in dir: $.$ workspace: $default$
|
||||
exp = `Ran Plan for dir: $.$ workspace: $default$
|
||||
|
||||
$$$diff
|
||||
` + c.Output + `
|
||||
@@ -737,7 +791,7 @@ $$$
|
||||
}
|
||||
case events.ApplyCommand:
|
||||
if c.ShouldWrap {
|
||||
exp = `Ran Apply in dir: $.$ workspace: $default$
|
||||
exp = `Ran Apply for dir: $.$ workspace: $default$
|
||||
|
||||
<details><summary>Show Output</summary>
|
||||
|
||||
@@ -748,7 +802,7 @@ $$$
|
||||
|
||||
`
|
||||
} else {
|
||||
exp = `Ran Apply in dir: $.$ workspace: $default$
|
||||
exp = `Ran Apply for dir: $.$ workspace: $default$
|
||||
|
||||
$$$diff
|
||||
` + c.Output + `
|
||||
@@ -783,10 +837,10 @@ func TestRenderProjectResults_MultiProjectApplyWrapped(t *testing.T) {
|
||||
},
|
||||
}, events.ApplyCommand, "log", false, models.Github)
|
||||
exp := `Ran Apply for 2 projects:
|
||||
1. workspace: $staging$ dir: $.$
|
||||
1. workspace: $production$ dir: $.$
|
||||
1. dir: $.$ workspace: $staging$
|
||||
1. dir: $.$ workspace: $production$
|
||||
|
||||
### 1. workspace: $staging$ dir: $.$
|
||||
### 1. dir: $.$ workspace: $staging$
|
||||
<details><summary>Show Output</summary>
|
||||
|
||||
$$$diff
|
||||
@@ -795,7 +849,7 @@ $$$
|
||||
</details>
|
||||
|
||||
---
|
||||
### 2. workspace: $production$ dir: $.$
|
||||
### 2. dir: $.$ workspace: $production$
|
||||
<details><summary>Show Output</summary>
|
||||
|
||||
$$$diff
|
||||
@@ -838,10 +892,10 @@ func TestRenderProjectResults_MultiProjectPlanWrapped(t *testing.T) {
|
||||
},
|
||||
}, events.PlanCommand, "log", false, models.Github)
|
||||
exp := `Ran Plan for 2 projects:
|
||||
1. workspace: $staging$ dir: $.$
|
||||
1. workspace: $production$ dir: $.$
|
||||
1. dir: $.$ workspace: $staging$
|
||||
1. dir: $.$ workspace: $production$
|
||||
|
||||
### 1. workspace: $staging$ dir: $.$
|
||||
### 1. dir: $.$ workspace: $staging$
|
||||
<details><summary>Show Output</summary>
|
||||
|
||||
$$$diff
|
||||
@@ -856,7 +910,7 @@ $$$
|
||||
</details>
|
||||
|
||||
---
|
||||
### 2. workspace: $production$ dir: $.$
|
||||
### 2. dir: $.$ workspace: $production$
|
||||
<details><summary>Show Output</summary>
|
||||
|
||||
$$$diff
|
||||
|
||||
@@ -315,3 +315,12 @@ func SplitRepoFullName(repoFullName string) (owner string, repo string) {
|
||||
}
|
||||
return repoFullName[:lastSlashIdx], repoFullName[lastSlashIdx+1:]
|
||||
}
|
||||
|
||||
// GetProjectName returns the name of the project this context is for. If no
|
||||
// name is configured, it returns an empty string.
|
||||
func (p *ProjectCommandContext) GetProjectName() string {
|
||||
if p.ProjectConfig != nil {
|
||||
return p.ProjectConfig.GetName()
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
@@ -100,6 +100,7 @@ func (p *DefaultProjectCommandRunner) Plan(ctx models.ProjectCommandContext) Pro
|
||||
Failure: failure,
|
||||
RepoRelDir: ctx.RepoRelDir,
|
||||
Workspace: ctx.Workspace,
|
||||
ProjectName: ctx.GetProjectName(),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -112,6 +113,7 @@ func (p *DefaultProjectCommandRunner) Apply(ctx models.ProjectCommandContext) Pr
|
||||
ApplySuccess: applyOut,
|
||||
RepoRelDir: ctx.RepoRelDir,
|
||||
Workspace: ctx.Workspace,
|
||||
ProjectName: ctx.GetProjectName(),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -25,6 +25,7 @@ type ProjectResult struct {
|
||||
Failure string
|
||||
PlanSuccess *PlanSuccess
|
||||
ApplySuccess string
|
||||
ProjectName string
|
||||
}
|
||||
|
||||
// Status returns the vcs commit status of this project result.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Ran Apply in dir: `production` workspace: `default`
|
||||
Ran Apply for dir: `production` workspace: `default`
|
||||
|
||||
```diff
|
||||
module.null.null_resource.this: Creating...
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Ran Apply in dir: `staging` workspace: `default`
|
||||
Ran Apply for dir: `staging` workspace: `default`
|
||||
|
||||
```diff
|
||||
module.null.null_resource.this: Creating...
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
Ran Plan for 2 projects:
|
||||
1. workspace: `default` dir: `staging`
|
||||
1. workspace: `default` dir: `production`
|
||||
1. dir: `staging` workspace: `default`
|
||||
1. dir: `production` workspace: `default`
|
||||
|
||||
### 1. workspace: `default` dir: `staging`
|
||||
### 1. dir: `staging` workspace: `default`
|
||||
```diff
|
||||
|
||||
An execution plan has been generated and is shown below.
|
||||
@@ -24,7 +24,7 @@ Plan: 1 to add, 0 to change, 0 to destroy.
|
||||
* `atlantis plan -d staging`
|
||||
|
||||
---
|
||||
### 2. workspace: `default` dir: `production`
|
||||
### 2. dir: `production` workspace: `default`
|
||||
```diff
|
||||
|
||||
An execution plan has been generated and is shown below.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Ran Plan in dir: `production` workspace: `default`
|
||||
Ran Plan for dir: `production` workspace: `default`
|
||||
```diff
|
||||
Refreshing Terraform state in-memory prior to plan...
|
||||
The refreshed state will be used to calculate this plan, but will not be
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Ran Plan in dir: `staging` workspace: `default`
|
||||
Ran Plan for dir: `staging` workspace: `default`
|
||||
```diff
|
||||
Refreshing Terraform state in-memory prior to plan...
|
||||
The refreshed state will be used to calculate this plan, but will not be
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Ran Apply in dir: `production` workspace: `default`
|
||||
Ran Apply for dir: `production` workspace: `default`
|
||||
|
||||
```diff
|
||||
module.null.null_resource.this: Creating...
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Ran Apply in dir: `staging` workspace: `default`
|
||||
Ran Apply for dir: `staging` workspace: `default`
|
||||
|
||||
```diff
|
||||
module.null.null_resource.this: Creating...
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Ran Plan in dir: `staging` workspace: `default`
|
||||
Ran Plan for dir: `staging` workspace: `default`
|
||||
|
||||
```diff
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Ran Plan in dir: `production` workspace: `default`
|
||||
Ran Plan for dir: `production` workspace: `default`
|
||||
|
||||
```diff
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Ran Plan in dir: `staging` workspace: `default`
|
||||
Ran Plan for dir: `staging` workspace: `default`
|
||||
|
||||
```diff
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
Ran Apply for 2 projects:
|
||||
1. workspace: `default` dir: `.`
|
||||
1. workspace: `staging` dir: `.`
|
||||
1. dir: `.` workspace: `default`
|
||||
1. dir: `.` workspace: `staging`
|
||||
|
||||
### 1. workspace: `default` dir: `.`
|
||||
### 1. dir: `.` workspace: `default`
|
||||
```diff
|
||||
null_resource.simple:
|
||||
null_resource.simple:
|
||||
@@ -17,7 +17,7 @@ workspace = default
|
||||
```
|
||||
|
||||
---
|
||||
### 2. workspace: `staging` dir: `.`
|
||||
### 2. dir: `.` workspace: `staging`
|
||||
<details><summary>Show Output</summary>
|
||||
|
||||
```diff
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Ran Apply in dir: `.` workspace: `default`
|
||||
Ran Apply for dir: `.` workspace: `default`
|
||||
|
||||
```diff
|
||||
null_resource.simple:
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Ran Apply in dir: `.` workspace: `staging`
|
||||
Ran Apply for dir: `.` workspace: `staging`
|
||||
|
||||
<details><summary>Show Output</summary>
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
Ran Plan for 2 projects:
|
||||
1. workspace: `default` dir: `.`
|
||||
1. workspace: `staging` dir: `.`
|
||||
1. dir: `.` workspace: `default`
|
||||
1. dir: `.` workspace: `staging`
|
||||
|
||||
### 1. workspace: `default` dir: `.`
|
||||
### 1. dir: `.` workspace: `default`
|
||||
<details><summary>Show Output</summary>
|
||||
|
||||
```diff
|
||||
@@ -31,7 +31,7 @@ postplan
|
||||
</details>
|
||||
|
||||
---
|
||||
### 2. workspace: `staging` dir: `.`
|
||||
### 2. dir: `.` workspace: `staging`
|
||||
```diff
|
||||
|
||||
An execution plan has been generated and is shown below.
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
Ran Apply for 2 projects:
|
||||
1. workspace: `default` dir: `.`
|
||||
1. workspace: `new_workspace` dir: `.`
|
||||
1. dir: `.` workspace: `default`
|
||||
1. dir: `.` workspace: `new_workspace`
|
||||
|
||||
### 1. workspace: `default` dir: `.`
|
||||
### 1. dir: `.` workspace: `default`
|
||||
<details><summary>Show Output</summary>
|
||||
|
||||
```diff
|
||||
@@ -24,7 +24,7 @@ workspace = default
|
||||
</details>
|
||||
|
||||
---
|
||||
### 2. workspace: `new_workspace` dir: `.`
|
||||
### 2. dir: `.` workspace: `new_workspace`
|
||||
<details><summary>Show Output</summary>
|
||||
|
||||
```diff
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Ran Apply in dir: `.` workspace: `default`
|
||||
Ran Apply for dir: `.` workspace: `default`
|
||||
|
||||
<details><summary>Show Output</summary>
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Ran Apply in dir: `.` workspace: `new_workspace`
|
||||
Ran Apply for dir: `.` workspace: `new_workspace`
|
||||
|
||||
<details><summary>Show Output</summary>
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Ran Apply in dir: `.` workspace: `default`
|
||||
Ran Apply for dir: `.` workspace: `default`
|
||||
|
||||
<details><summary>Show Output</summary>
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Ran Apply in dir: `.` workspace: `default`
|
||||
Ran Apply for dir: `.` workspace: `default`
|
||||
|
||||
<details><summary>Show Output</summary>
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Ran Plan in dir: `.` workspace: `new_workspace`
|
||||
Ran Plan for dir: `.` workspace: `new_workspace`
|
||||
|
||||
<details><summary>Show Output</summary>
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Ran Plan in dir: `.` workspace: `default`
|
||||
Ran Plan for dir: `.` workspace: `default`
|
||||
|
||||
<details><summary>Show Output</summary>
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Ran Plan in dir: `.` workspace: `default`
|
||||
Ran Plan for dir: `.` workspace: `default`
|
||||
|
||||
<details><summary>Show Output</summary>
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Ran Plan in dir: `.` workspace: `default`
|
||||
Ran Plan for dir: `.` workspace: `default`
|
||||
|
||||
<details><summary>Show Output</summary>
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Ran Apply in dir: `.` workspace: `default`
|
||||
Ran Apply for project: `default` dir: `.` workspace: `default`
|
||||
|
||||
<details><summary>Show Output</summary>
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Ran Apply in dir: `.` workspace: `default`
|
||||
Ran Apply for project: `staging` dir: `.` workspace: `default`
|
||||
|
||||
<details><summary>Show Output</summary>
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Ran Plan in dir: `.` workspace: `default`
|
||||
Ran Plan for project: `default` dir: `.` workspace: `default`
|
||||
|
||||
```diff
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Ran Plan in dir: `.` workspace: `default`
|
||||
Ran Plan for project: `staging` dir: `.` workspace: `default`
|
||||
|
||||
```diff
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Ran Apply in dir: `.` workspace: `default`
|
||||
Ran Apply for project: `default` dir: `.` workspace: `default`
|
||||
|
||||
<details><summary>Show Output</summary>
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Ran Apply in dir: `.` workspace: `default`
|
||||
Ran Apply for project: `staging` dir: `.` workspace: `default`
|
||||
|
||||
<details><summary>Show Output</summary>
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
Ran Plan for 2 projects:
|
||||
1. workspace: `default` dir: `.`
|
||||
1. workspace: `default` dir: `.`
|
||||
1. project: `default` dir: `.` workspace: `default`
|
||||
1. project: `staging` dir: `.` workspace: `default`
|
||||
|
||||
### 1. workspace: `default` dir: `.`
|
||||
### 1. project: `default` dir: `.` workspace: `default`
|
||||
```diff
|
||||
|
||||
An execution plan has been generated and is shown below.
|
||||
@@ -26,7 +26,7 @@ workspace=default
|
||||
* `atlantis plan -p default`
|
||||
|
||||
---
|
||||
### 2. workspace: `default` dir: `.`
|
||||
### 2. project: `staging` dir: `.` workspace: `default`
|
||||
```diff
|
||||
|
||||
An execution plan has been generated and is shown below.
|
||||
|
||||
Reference in New Issue
Block a user