-
Notifications
You must be signed in to change notification settings - Fork 1.1k
feat: state rm #2880
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
feat: state rm #2880
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
780bbfe
feat: state rm
krrrr38 36f5506
review feedback
krrrr38 cc3280d
fix conflict for pegomock generation code
krrrr38 ff9ae7e
Merge branch 'main' into feat-state-rm
krrrr38 28904cf
adopt state command into allow-commands
krrrr38 6c00bb1
Merge branch 'main' into feat-state-rm
krrrr38 d07dc21
fix conflicts
krrrr38 2ee0bc1
fix: state rm works on workspace
krrrr38 a6ad798
notify import/state rm discard plan file
krrrr38 469830f
fix lint
krrrr38 9536433
use repeat instead warning for re-plan
krrrr38 7635204
perl -pi -e 's!\* :repeat: plan file was discarded. to!:put_litter_in…
krrrr38 868fa4d
Merge branch 'main' into feat-state-rm
krrrr38 ee206a9
follow main branch
krrrr38 e0e5e19
Merge branch 'main' into feat-state-rm
krrrr38 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
4 changes: 4 additions & 0 deletions
4
server/controllers/events/testdata/test-repos/state-rm-multiple-project/atlantis.yaml
This file contains hidden or 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: dir1 | ||
- dir: dir2 |
4 changes: 4 additions & 0 deletions
4
server/controllers/events/testdata/test-repos/state-rm-multiple-project/dir1/main.tf
This file contains hidden or 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 @@ | ||
resource "random_id" "dummy" { | ||
keepers = {} | ||
byte_length = 1 | ||
} |
4 changes: 4 additions & 0 deletions
4
server/controllers/events/testdata/test-repos/state-rm-multiple-project/dir2/main.tf
This file contains hidden or 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 @@ | ||
resource "random_id" "dummy" { | ||
keepers = {} | ||
byte_length = 1 | ||
} |
75 changes: 75 additions & 0 deletions
75
.../controllers/events/testdata/test-repos/state-rm-multiple-project/exp-output-autoplan.txt
This file contains hidden or 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,75 @@ | ||
Ran Plan for 2 projects: | ||
|
||
1. dir: `dir1` workspace: `default` | ||
1. dir: `dir2` workspace: `default` | ||
|
||
### 1. dir: `dir1` 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: | ||
|
||
# random_id.dummy will be created | ||
+ resource "random_id" "dummy" { | ||
+ b64_std = (known after apply) | ||
+ b64_url = (known after apply) | ||
+ byte_length = 1 | ||
+ dec = (known after apply) | ||
+ hex = (known after apply) | ||
+ id = (known after apply) | ||
+ keepers = {} | ||
} | ||
|
||
Plan: 1 to add, 0 to change, 0 to destroy. | ||
``` | ||
|
||
* :arrow_forward: To **apply** this plan, comment: | ||
* `atlantis apply -d dir1` | ||
* :put_litter_in_its_place: To **delete** this plan click [here](lock-url) | ||
* :repeat: To **plan** this project again, comment: | ||
* `atlantis plan -d dir1` | ||
</details> | ||
Plan: 1 to add, 0 to change, 0 to destroy. | ||
|
||
--- | ||
### 2. dir: `dir2` 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: | ||
|
||
# random_id.dummy will be created | ||
+ resource "random_id" "dummy" { | ||
+ b64_std = (known after apply) | ||
+ b64_url = (known after apply) | ||
+ byte_length = 1 | ||
+ dec = (known after apply) | ||
+ hex = (known after apply) | ||
+ id = (known after apply) | ||
+ keepers = {} | ||
} | ||
|
||
Plan: 1 to add, 0 to change, 0 to destroy. | ||
``` | ||
|
||
* :arrow_forward: To **apply** this plan, comment: | ||
* `atlantis apply -d dir2` | ||
* :put_litter_in_its_place: To **delete** this plan click [here](lock-url) | ||
* :repeat: To **plan** this project again, comment: | ||
* `atlantis plan -d dir2` | ||
</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` |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.