-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use polly's topsort implementation (#253)
* Use polly's topsort implementation don't use the legacy toposort which is better designed and more modern * fix broken test * use FilterMap where appropriate Co-authored-by: test <[email protected]>
- Loading branch information
1 parent
98c6e0f
commit baaf73e
Showing
14 changed files
with
130 additions
and
349 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
package diff | ||
|
||
import ( | ||
"path/filepath" | ||
|
||
"github.com/pluralsh/plural/pkg/executor" | ||
"github.com/pluralsh/plural/pkg/utils/pathing" | ||
) | ||
|
||
func defaultDiff(path string) []*executor.Step { | ||
return []*executor.Step{ | ||
{ | ||
Name: "terraform-init", | ||
Wkdir: pathing.SanitizeFilepath(filepath.Join(path, "terraform")), | ||
Target: pathing.SanitizeFilepath(filepath.Join(path, "terraform")), | ||
Command: "terraform", | ||
Args: []string{"init"}, | ||
Sha: "", | ||
}, | ||
{ | ||
Name: "terraform", | ||
Wkdir: pathing.SanitizeFilepath(filepath.Join(path, "terraform")), | ||
Target: pathing.SanitizeFilepath(filepath.Join(path, "terraform")), | ||
Command: "plural", | ||
Args: []string{"wkspace", "terraform-diff", path}, | ||
Sha: "", | ||
}, | ||
{ | ||
Name: "kube-init", | ||
Wkdir: path, | ||
Target: pluralfile(path, "NONCE"), | ||
Command: "plural", | ||
Args: []string{"wkspace", "kube-init", path}, | ||
Sha: "", | ||
}, | ||
{ | ||
Name: "helm", | ||
Wkdir: pathing.SanitizeFilepath(filepath.Join(path, "helm")), | ||
Target: pathing.SanitizeFilepath(filepath.Join(path, "helm")), | ||
Command: "plural", | ||
Args: []string{"wkspace", "helm-diff", path}, | ||
Sha: "", | ||
}, | ||
} | ||
} |
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.