-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Feature request: flag to disable plan/apply on projects not included in atlantis.yaml #1876
Comments
We are also running multiple atlantis servers because we are on-prem and have hard network segmentation limits.
/local/repos.yaml
However we also find that when doing It seems like
https://www.runatlantis.io/docs/server-configuration.html#flags For reference, here is the MR where |
is this still happening with |
With atlantis v0.20.0 this seems to still be the case. |
Any updates on this ? |
We have a monorepo and would like to have a separate Atlantis instance per environment (stage, prod, etc).
So far, we've accomplished this by generating a different
atlantis.yaml
on each Atlantis server via a pre-workflow hook.The
--silence-no-projects
and--silence-vcs-status-no-plans
flags are set, so only the appropriate Atlantis server responds responds to each request. This works nicely for autoplanning and regularatlantis plan
/atlantis apply
.When you run
atlantis plan -d <dir>
, however, all of the Atlantis instances respond, so you get one correct plan and then several unwanted plans that (in our case) fail. If you subsequently runatlantis apply -d <dir>
, you get one correct apply result and severalNo plan found
comments.If there was an option to only allow plan/apply to run on projects listed in
atlantis.yaml
and skip everything else, I think that would solve this problem. Alternatively, if anyone else has an existing workaround please let me know!The text was updated successfully, but these errors were encountered: