-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(1259): sort projects based on dependencies
This implements: #1259 feat(1259): atlantis destroy order While creating the directed acyclic graph, it checks if the terragrunt.hcl file of the stacks contains our destroy flag: `# ATLANTIS_PLEASE_DESTROY_STACK` If this flag is found, the corresponding edge will be reverted, i.e. instead of u -> v, we will get v -> u. feat(1259): topological sort: fix and debugging * this will output the dependency graph in *.dot format * it will make the plan fail if the TopSort() fails for whatever reason * sorting is not necessary when there is just one project * dynamic folder/file generation * remove some unnecessary else branches * add a test for FindProjectNo() * and most important: fix FindProjectNo() so that the sorting is correct
- Loading branch information
Julius Daniel Herrera Glomm
committed
Mar 16, 2022
1 parent
2453e43
commit 65a68c9
Showing
6 changed files
with
500 additions
and
46 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
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.