-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: customize atlantis.yaml file name in server side config
- Loading branch information
Showing
29 changed files
with
579 additions
and
272 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
server/controllers/events/testfixtures/test-repos/repo-config-file/exp-output-apply.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
Ran Apply for 2 projects: | ||
|
||
1. dir: `infrastructure/production` workspace: `default` | ||
1. dir: `infrastructure/staging` workspace: `default` | ||
|
||
### 1. dir: `infrastructure/production` workspace: `default` | ||
```diff | ||
null_resource.production[0]: Creating... | ||
null_resource.production[0]: Creation complete after *s [id=*******************] | ||
|
||
Apply complete! Resources: 1 added, 0 changed, 0 destroyed. | ||
|
||
|
||
``` | ||
|
||
--- | ||
### 2. dir: `infrastructure/staging` workspace: `default` | ||
```diff | ||
null_resource.staging[0]: Creating... | ||
null_resource.staging[0]: Creation complete after *s [id=*******************] | ||
|
||
Apply complete! Resources: 1 added, 0 changed, 0 destroyed. | ||
|
||
|
||
``` | ||
|
||
--- | ||
|
69 changes: 69 additions & 0 deletions
69
server/controllers/events/testfixtures/test-repos/repo-config-file/exp-output-autoplan.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
Ran Plan for 2 projects: | ||
|
||
1. dir: `infrastructure/staging` workspace: `default` | ||
1. dir: `infrastructure/production` workspace: `default` | ||
|
||
### 1. dir: `infrastructure/staging` workspace: `default` | ||
<details><summary>Show Output</summary> | ||
|
||
```diff | ||
|
||
Terraform used the selected providers to generate the following execution | ||
plan. Resource actions are indicated with the following symbols: | ||
+ create | ||
|
||
Terraform will perform the following actions: | ||
|
||
# null_resource.staging[0] will be created | ||
+ resource "null_resource" "staging" { | ||
+ id = (known after apply) | ||
} | ||
|
||
Plan: 1 to add, 0 to change, 0 to destroy. | ||
|
||
|
||
``` | ||
|
||
* :arrow_forward: To **apply** this plan, comment: | ||
* `atlantis apply -d infrastructure/staging` | ||
* :put_litter_in_its_place: To **delete** this plan click [here](lock-url) | ||
* :repeat: To **plan** this project again, comment: | ||
* `atlantis plan -d infrastructure/staging` | ||
</details> | ||
Plan: 1 to add, 0 to change, 0 to destroy. | ||
|
||
--- | ||
### 2. dir: `infrastructure/production` workspace: `default` | ||
<details><summary>Show Output</summary> | ||
|
||
```diff | ||
|
||
Terraform used the selected providers to generate the following execution | ||
plan. Resource actions are indicated with the following symbols: | ||
+ create | ||
|
||
Terraform will perform the following actions: | ||
|
||
# null_resource.production[0] will be created | ||
+ resource "null_resource" "production" { | ||
+ id = (known after apply) | ||
} | ||
|
||
Plan: 1 to add, 0 to change, 0 to destroy. | ||
|
||
|
||
``` | ||
|
||
* :arrow_forward: To **apply** this plan, comment: | ||
* `atlantis apply -d infrastructure/production` | ||
* :put_litter_in_its_place: To **delete** this plan click [here](lock-url) | ||
* :repeat: To **plan** this project again, comment: | ||
* `atlantis plan -d infrastructure/production` | ||
</details> | ||
Plan: 1 to add, 0 to change, 0 to destroy. | ||
|
||
--- | ||
* :fast_forward: To **apply** all unapplied plans from this pull request, comment: | ||
* `atlantis apply` | ||
* :put_litter_in_its_place: To delete all plans and locks for the PR, comment: | ||
* `atlantis unlock` |
4 changes: 4 additions & 0 deletions
4
server/controllers/events/testfixtures/test-repos/repo-config-file/exp-output-merge.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Locks and plans deleted for the projects and workspaces modified in this pull request: | ||
|
||
- dir: `infrastructure/production` workspace: `default` | ||
- dir: `infrastructure/staging` workspace: `default` |
4 changes: 4 additions & 0 deletions
4
.../events/testfixtures/test-repos/repo-config-file/infrastructure/custom-name-atlantis.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
version: 3 | ||
projects: | ||
- dir: infrastructure/staging | ||
- dir: infrastructure/production |
3 changes: 3 additions & 0 deletions
3
...rollers/events/testfixtures/test-repos/repo-config-file/infrastructure/production/main.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
resource "null_resource" "production" { | ||
count = "1" | ||
} |
3 changes: 3 additions & 0 deletions
3
...ontrollers/events/testfixtures/test-repos/repo-config-file/infrastructure/staging/main.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
resource "null_resource" "staging" { | ||
count = "1" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.