Commit Graph

302 Commits

Author SHA1 Message Date
Ken Kaizu
f09a9d4c01 feat: --allow-commands restricts available atlantis commands (#2877)
* feat: --allow-command configuration restricts available atlantis commands

* add version and approve_policies into allow commands defaults

* allow-commands accept all keyword which allows all commands

* remove redundant nest

* more detail abount allow-commands all keyword

* Update server/events/comment_parser.go
2022-12-27 22:52:39 -06:00
Ken Kaizu
4e0d4ecc40 feat: atlantis import (#2783)
* feat: atlantis import

* feat: atlantis import

* regenerate mock comment builder

* remove duplicate err check

* instrumented import command runner/builder

* atlantis import subcommand accept args before hyphen

* fix link checker

* docs: review feedback

* fix atlantis import options order

* Update runatlantis.io/docs/using-atlantis.md

Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com>

* Update runatlantis.io/docs/using-atlantis.md

Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com>

* Update runatlantis.io/docs/using-atlantis.md

Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com>

* Update runatlantis.io/docs/using-atlantis.md

Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com>

* Update runatlantis.io/docs/using-atlantis.md

Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com>

* Update runatlantis.io/docs/command-requirements.md

Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com>

* Update runatlantis.io/docs/command-requirements.md

Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com>

* Update runatlantis.io/docs/command-requirements.md

Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com>

* Update server/events/comment_parser.go

Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com>

* Update server/events/comment_parser.go

Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com>

* Update runatlantis.io/docs/command-requirements.md

Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com>

* Update runatlantis.io/docs/command-requirements.md

Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com>

* Update runatlantis.io/docs/command-requirements.md

Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com>

* Update runatlantis.io/docs/server-side-repo-config.md

Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com>

* Update runatlantis.io/docs/command-requirements.md

Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com>

* Update runatlantis.io/docs/command-requirements.md

Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com>

* Update runatlantis.io/docs/command-requirements.md

Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com>

* Update runatlantis.io/docs/command-requirements.md

Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com>

* Update runatlantis.io/docs/command-requirements.md

Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com>

* Update server/events/command_requirement_handler.go

Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com>

* Update server/events/command_requirement_handler_test.go

Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com>

* fix test import usage

* fix e2e expected txt

* fix doc link

* docs: workflow import stage/step

* docs fixup

Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com>
2022-12-22 18:37:29 -06:00
Adam Verigin
faa027acbd feat: Add flag to disable downloading tf for airgapped environments (#2843)
* Move terraform version listing into Terraform client

* Add flag to disable Terraform downloads

* Fallback to exact version matching if unable to list TF versions

* Add new config option to documentation

* Fix and update tests

* Fix check-lint errors

* Change option name

* Remove obsolete commented code

* Migrate version detection logic into terraform client

* Improve consistency in new function signatures & log statements

* Test requests before calling terraform-switch, to prevent unnecessary crashes

* Fix broken tests

* Silence gosec error

* Close response body
2022-12-22 13:37:35 -06:00
Fabiano Soares Honorato
cb485f11ee feat: Add pre and post workflow hook status (#2441)
* Add pre and post workflow hook status

* fix missing mocks

* fix pre/post workflow hooks tests

* add cmd output to file

* fix typo

* add cmd output to file on pre workflow hooks

* Add hooks output to web UI

* Remove unnecessary dependencies

* Clean the code and make tests work again

* Make lint happy

* Small fixes, create dedicated UUID generator and docs

* Add missing commentary

* Use matchers instead of mocking for tests and fix e2e tests

* Change 'OUTPUT_FILE' to 'OUTPUT_STATUS_FILE'

* Reduce SendWorkflowHook calls on hooks

* Apply suggestions from code review

Co-authored-by: PePe Amengual <jose.amengual@gmail.com>
Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com>
2022-12-19 14:20:34 -06:00
Ken Kaizu
08e9c5a17e feat: customize atlantis.yaml file name in server side config (#2798)
* feat: customize atlantis.yaml file name in server side config

* Update server/events/vcs/bitbucketcloud/client.go

* Update server/events/vcs/bitbucketserver/client.go

* Update server/events/vcs/not_configured_vcs_client.go

* Update server/events/vcs/azuredevops_client.go

* docs: repo_config_file multiple atlantis servers usecase example

* docs: multiple atlantis server usage which show how to call one atlantis server

* Update runatlantis.io/docs/server-side-repo-config.md

* Apply suggestions from code review

* Update runatlantis.io/docs/server-side-repo-config.md

Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com>
2022-12-18 23:02:38 -06:00
Ken Kaizu
ab327a2238 docs: add more commands in using-atlantis.md (#2808)
* docs: add more commands in using-atlantis.md

* docs: add how-atlantis-works child page links

* docs: using-atlantis shows available executable names

* Update runatlantis.io/docs/using-atlantis.md

* remove run help doc, because this feature might be deprecated

* Apply suggestions from code review

* Update runatlantis.io/docs/using-atlantis.md

* revert run help command usage
2022-12-18 09:42:19 -06:00
Ken Kaizu
8d74878f9d feat: customize vcs comment command executable name (#2805) 2022-12-16 19:16:36 -08:00
nitrocode
585ce1e888 docs: Mention --enable-regexp-cmd requires the project name key (#2796)
* docs: mention the name key for regexp cmd

* docs: add name key to auto-generation
2022-12-15 13:51:53 -08:00
Ken Kaizu
6ecb7a6f76 replace www.terraform.io doc urls (#2797) 2022-12-14 18:07:40 -06:00
Jon Gilmore
f974fb5113 docs(ha): wording update when using redis (#2771)
* docs(ha): wording update when using redis

Because it is now possible to use redis as a backend locking DB for Atlantis, this FAQ should be updated.

* Update runatlantis.io/docs/faq.md

Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com>

Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com>
2022-12-12 09:23:20 -06:00
Darren Worrall
a56258435b Document the --quiet-policy-checks in the policy check doc (#2777)
* Document the `--quiet-policy-checks` in the policy check doc

* Update runatlantis.io/docs/policy-checking.md

Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com>
2022-12-12 09:16:14 -06:00
Mark Keisler
855717271f docs: terraform version usage after allowing additional required_version specifiers (#2760)
* Clarify the docs about setting the terraform version, especially since
v0.21.0

* Address comments about adding further detail and examples

Also updated versions mentioned to be more recent.
2022-12-11 11:14:08 -06:00
Ken Kaizu
4d957836ad Enable or disable repo_locking per repo in repos.yaml and atlantis.yaml (#2700)
* disable repo locking repos.yaml and atlantis.yaml with allow override

* rename disable_repo_locking into repo_locking

* add both enable/disable repo_locking test

Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com>
2022-12-09 16:13:31 -06:00
Fabiano Soares Honorato
66dc30e755 feat: prevent planning and applying directories outside PR scope using --restrict-file-list (#2440)
* Add --strict-plan-file-list config

* Update server.go

* Update server-configuration.md

* Update server_test.go

* Run gofmt -w

* Add --strict-plan-file-list for projects

* Add --strict-plan-file-list tests

* Change --strict-plan-file-list to --restrict-file-list

* Update --restrict-file-list documentation

* Update --restrict-file-list and --enable-regexp-cmd documentation

Co-authored-by: Fabiano Honorato <fabiano.honorato@ifood.com.br>
Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com>
Co-authored-by: PePe Amengual <jose.amengual@gmail.com>
2022-12-09 09:33:40 -06:00
Christoffer Nicklasson
b6e1c61127 Update using-slack-hooks.md (#2759) 2022-12-07 09:47:38 -06:00
Jakub Igła
494a63f8cb docs: Add a new Azure deployment method (#2741)
* docs: Add a new Azure deployment method

* docs: Revert the old ACI link while keeping the new one

* docs: Improve wording for Azure deployment
2022-12-06 21:57:46 -06:00
Aiman Ismail
fe207ae32d docs: add example how to customize the conftest command (#2727)
* docs: add example how to customize the conftest command

* fixed PR review comments

* rerun CI

* remove problematic url

Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com>
Co-authored-by: PePe Amengual <jose.amengual@gmail.com>
2022-12-06 21:56:51 -06:00
noah
61bcfbab2b feat: auto-plan projects when modules change (#2507)
* feat: auto-plan projects when modules change

Fixes #920

* rename Downstream->Dependent; docs cleanup

* chore: gofmt -s
2022-11-28 14:12:29 -08:00
nitrocode
629e688b0c Allow --gh-team-allowlist to work with team names and slugs (#2719)
* Add team slugs

* Expand test to include both names and slugs

* docs: add version document of flag before/after

* docs: this will be merged for next release
2022-11-25 12:47:49 -06:00
nitrocode
ad79d0708b docs: Small updates 🦃 (#2711)
* Add missing pages

* Update server-configuration.md

* Update test.yml

* Update lint.yml

* Update test.yml

* Update lint.yml

* Update server-configuration.md

* Update server-configuration.md

* Update server-configuration.md

* Update server-configuration.md

* Update server-configuration.md

* Update server-configuration.md

* Update server-configuration.md

* Update server-configuration.md
2022-11-23 19:59:50 -06:00
nitrocode
c7f230bd8a Fix website link checker due to branch rename (#2682)
* Use main

* Use docsBranch: main
2022-11-14 12:19:36 -06:00
nitrocode
250f073fe1 Add auto generation of atlantis.yaml projects (#2680) 2022-11-14 12:10:49 -06:00
nitrocode
d85662cdf1 Rename default branch to main (#2662)
* Rename default branch to main

* Bump git, curl, and openssl packages
2022-11-14 11:28:29 -06:00
Daniel Versoza
74e522a80a docs: updates docs on gh-team-allowlist (#2664)
To better describe the flag about using the team name and not the slug, with practical examples.
2022-11-11 11:18:11 -06:00
Ross Strickland
d620d5de98 Add custom templating support (#2647)
* added custom templates support

* made default templates DRY

* Change init to anonymous function.

* Initialize anonymous function inside var

* - Add flag/cfg param for custom template dir
- Add test for custom template

* Add documentation.

* Address PR comments.

Co-authored-by: Ricard Bejarano <ribejara@thousandeyes.com>
2022-11-11 09:56:33 -06:00
Eirik Nygaard
5e3f1a9f90 Add argument for enabling same origin check for websocket connections (#2659)
* Add argument for enabling same origin check for websocket connections

* Remove else clause and outdent return

* Add unit test for websocket origin check
2022-11-11 09:50:15 -06:00
Anton Bronnikov
4cacaeb0c7 Implement branch matching in repo-level config (#2522) 2022-11-08 22:08:20 -08:00
Adam Verigin
c3462f9073 Add COMMENT_ARGS to pre/post-workflow hook execution environment (#2621) 2022-11-07 14:50:49 -06:00
Devan Patel
c03ef1d68f Bitbucket Server: Send password as Bearer instead of Basic Auth (#2461)
* Bitbucket Server: Send password as Bearer instead of Basic Auth

Signed-off-by: Devan Patel <Dev25@users.noreply.github.com>

* docs: Add Bearer note for Bitbucket Server auth

Signed-off-by: Dev <Dev25@users.noreply.github.com>

Signed-off-by: Devan Patel <Dev25@users.noreply.github.com>
Signed-off-by: Dev <Dev25@users.noreply.github.com>
2022-10-31 14:48:07 -07:00
gurpalw
117ce59a77 docs: update notes to clarify where the environment variables are available (#2532)
* update notes to clarify where the environment variables are available

* Update runatlantis.io/docs/custom-workflows.md

Co-authored-by: PePe Amengual <jose.amengual@gmail.com>

Co-authored-by: PePe Amengual <jose.amengual@gmail.com>
2022-10-27 09:43:44 -07:00
Marc Barlo
3bfd769211 feat: add a flag to silence policy checks comments when there's no error (#2405)
* Add a flag to silence policy checks comments when there's no error

* Add e2e test cases for the quiet policy checks flag

* add documentation for quiet-policy-checks flag

* Update user_config.go

Fix indentation

* Update user_config.go

* fmt
2022-10-26 23:35:49 -07:00
nitrocode
be37b774c3 deps: bump terrform to 1.3.3 and docs update (#2614)
* deps: bump terrform to 1.3.3

* Correct github doc link for token
2022-10-24 23:46:52 -05:00
nitrocode
bb13f2f4c4 docs: typo ATLANTIS_GH_ALLOW_MERGEABLE_BYPASS_APPLY (#2583) 2022-10-12 13:08:06 -07:00
Marcus Ramberg
f6d24eef0f Add basic documentation for the prometheus exporter (#2582) 2022-10-11 19:56:21 -07:00
chroju
71f9397fc6 docs: added GitHub app permission in #2380 (#2572)
Co-authored-by: chroju <chroju@users.noreply.github.com>
2022-10-08 10:27:43 -07:00
chroju
9758a2103d docs: fill all command line flags not in the document, and more. (#2568)
* docs: All command line flags are filled in the doc

* docs: about --gh-allow-mergeable-bypass-apply flag

* docs: replace Github with GitHub

* docs: remove an incorrect bullet

Co-authored-by: chroju <chroju@users.noreply.github.com>
2022-10-08 10:26:23 -07:00
Philipp Erbelding
23158f0b9d Add missing newline (#2567) 2022-10-07 09:28:05 -07:00
Taiki Ono
1b46d854d7 docs: execution_order_group belongs to Project (#2539)
* docs: execution_order_group belongs to Project

Signed-off-by: Taiki Ono <taiki@finatext.com>

* Fix order

Signed-off-by: Taiki Ono <taiki@finatext.com>

* Add missing periods and default values

Signed-off-by: Taiki Ono <taiki@finatext.com>

Signed-off-by: Taiki Ono <taiki@finatext.com>
2022-09-25 23:29:56 -07:00
giuli007
2cd8bd9ccc Delete previous plans on autoplan or atlantis plan (#1633)
* Delete previous plans on autoplan or atlantis plan

When using non-default workspaces, plans are stored
in pr-and-workspace-specific directories.
If a PR is subsequently updated it might happen that
some of the plans are no longer relevant with regards
to the latest changes.
This change ensures that plans are always deleted
when a generic plan is triggered either by autoplan
or by a "atlantis plan" command.
NB Plans are not cleaned up when specific projects are
planned explicitly with "atlantis plan -p/-d/-w".

* Also delete locks along with plans when running
autoplan or generic plan command

* Fix Plan deletion tests after 0.19.8 rebase

* Fix Plan deletion tests after v0.19.9-pre.20220912 rebase

* Rename struct field to follow camelCase naming convention

Co-authored-by: giuli007 <giuglioz@gmail.com>
2022-09-23 14:31:24 -07:00
Brian Zoetewey
1bcf938644 Adding Redis DB option (#2527)
* Adding Redis DB option
This allows selecting something other than the default database of 0.

* Add missing db argument to fix failing tests.
2022-09-20 21:27:16 -07:00
Daniel Thompson
d5d8e38117 Adding Redis TLS Option (#2510)
* Adding Redis TLS option

* Test fixes and allow for tls skip verify

* Test fixes and allow for tls skip verify
2022-09-09 20:02:26 -07:00
Andrei Vydrin
2d7ee9dfa8 feat: support parallel with execution order groups (#2403) 2022-09-08 06:14:59 -07:00
Daniel Thompson
ab2cdb833a External Locking DB: Redis (#2491)
* Initial build out of redis backend

* Regenerate locking mocks and matchers

* More test cleanup

* More test fixes

* Added tests for redis

* Test fix

* Linting fix

* Dcos update

* Update redis.go

* Update server.go

* Adding nolint to RedisDB struct
2022-09-07 16:57:06 -07:00
Ray Terrill
89d33a0737 Make required atlantis/apply status check work with mergeable (#2436)
* Make required apply work with mergeable

* Fix lint hint

* Migrate mergeable approval check to graphql, update tests

* Adding support for check suites

* Adding feature flag protection for new functionality

* Fix linting falsepos

* Adjusted logic to handle required check runs, added doc
2022-08-18 09:46:50 -07:00
Alexander Dupuy
a94bf4afca Fix some not-quite-links in docs (#2442)
* Fix link in docs/statsd.md

* Fix link in docs/server-side-repo-config.md
2022-08-16 11:05:07 -07:00
Li Lin
e3019581a9 Disable activeHeaderLinks for VuePress (#2449) 2022-08-15 15:35:43 -07:00
nitrocode
7a1b4f4ef3 cdktf docs (#2446)
* cdktf docs

* Update custom-workflows.md

* Add repo file structure

* Added optional repo atlantis.yaml

* Update custom-workflows.md
2022-08-15 10:12:11 -07:00
kangaechu
584105ccc3 Fix website_link_check CI error (#2430)
* Fix helm chart url in website_link_check

* change markdown url instead of add exclude settings in website_link_check

Co-authored-by: Drift Check Updater <gh_actions_drift_check_updater@example.com>
2022-08-08 15:15:53 -07:00
Even Thomassen
773901e91e Use ghcr.io as image repostiory in docs manifests (#2423)
The deployment documentation manifest examples should use ghrc.io as image repository for runatlantis/atlantis, as dockerhub is deprecated as image repository.
2022-08-08 10:46:30 -07:00
Gabor Maghera
96a25bdbca fix: Clarify Slack hook setup for Helm chart deployments. Add tidbit about Slack channel setup. (#2421) 2022-07-29 12:24:02 -07:00