Skip to content

Commit

Permalink
Orca 4416 add server config (#179)
Browse files Browse the repository at this point in the history
* Add platform mode flag to GlobalCfg

* Added server side config support for platform mode

* Adding flag to enable platform mode

* fix tests

* remove version
  • Loading branch information
msarvar authored Feb 22, 2022
1 parent 688a360 commit 7caee98
Show file tree
Hide file tree
Showing 12 changed files with 875 additions and 107 deletions.
5 changes: 5 additions & 0 deletions cmd/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ const (
DisableAutoplanFlag = "disable-autoplan"
DisableMarkdownFoldingFlag = "disable-markdown-folding"
DisableRepoLockingFlag = "disable-repo-locking"
EnablePlatformModeFlag = "enable-platform-mode"
EnablePolicyChecksFlag = "enable-policy-checks"
EnableRegExpCmdFlag = "enable-regexp-cmd"
EnableDiffMarkdownFormat = "enable-diff-markdown-format"
Expand Down Expand Up @@ -344,6 +345,10 @@ var boolFlags = map[string]boolFlag{
DisableRepoLockingFlag: {
description: "Disable atlantis locking repos",
},
EnablePlatformModeFlag: {
description: "Enable Atlantis to run in platform mode, where it will run plan and policy checks inside the PR and run plan and apply after PR is merged.",
defaultValue: false,
},
EnablePolicyChecksFlag: {
description: "Enable atlantis to run user defined policy checks. This is explicitly disabled for TFE/TFC backends since plan files are inaccessible.",
defaultValue: false,
Expand Down
1 change: 1 addition & 0 deletions cmd/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ var testFlags = map[string]interface{}{
WriteGitCredsFlag: true,
LyftAuditJobsSnsTopicArnFlag: "",
DisableAutoplanFlag: true,
EnablePlatformModeFlag: false,
EnablePolicyChecksFlag: false,
EnableRegExpCmdFlag: false,
EnableDiffMarkdownFormat: false,
Expand Down
Loading

0 comments on commit 7caee98

Please sign in to comment.