You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request. Searching for pre-existing feature requests helps us consolidate datapoints for identical requirements into a single place, thank you!
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.
If you are interested in working on this issue or have submitted a pull request, please leave a comment.
When a user runs atlantis apply, Atlantis should ignore any plan files that are no longer part of the current git diff / pull status.
When a user run atlantis apply -p <project_name>, Atlantis should return an error if the plan file is from a project that's no longer part of the current git diff / pull status.
This has come to bite us in the past, where a user runs atlantis apply and it unexpectedly applies workspaces that have since been removed from the git diff. I think we should add a flag which disables running planfiles which are out of scope for the curent PullStatus.
Describe the solution you'd like
To preserve the old behaviour a server-side flag could be added which will ignore plan files that are outside the scope of the current pull status: ignore-stale-plan-files:<true|false>
Describe the drawbacks of your solution
If we're maintaining a server-side flag vs just changing the behaviour here, we'd have to maintain two branches of logic: one for the old behaviour and one for the new.
Describe alternatives you've considered
Instead of a flag we could just change the behaviour of apply to ignore these older plan files, but there should be a stronger consensus from the community for this.
The text was updated successfully, but these errors were encountered:
Community Note
Describe the user story
atlantis apply
, Atlantis should ignore any plan files that are no longer part of the current git diff / pull status.atlantis apply -p <project_name>
, Atlantis should return an error if the plan file is from a project that's no longer part of the current git diff / pull status.This has come to bite us in the past, where a user runs atlantis apply and it unexpectedly applies workspaces that have since been removed from the git diff. I think we should add a flag which disables running planfiles which are out of scope for the curent PullStatus.
Describe the solution you'd like
To preserve the old behaviour a server-side flag could be added which will ignore plan files that are outside the scope of the current pull status:
ignore-stale-plan-files:<true|false>
Describe the drawbacks of your solution
If we're maintaining a server-side flag vs just changing the behaviour here, we'd have to maintain two branches of logic: one for the old behaviour and one for the new.
Describe alternatives you've considered
Instead of a flag we could just change the behaviour of apply to ignore these older plan files, but there should be a stronger consensus from the community for this.
The text was updated successfully, but these errors were encountered: