https://www.runatlantis.io/ logo
Title
m

Marcelo Leandro

03/29/2023, 7:20 AM
Hello guys, do you know if we can ask the Atlantis, for if its not find any projects in the atlantis.yaml(repo side), it not run? what happens now:
"No projects are defined in %s. Will resume automatic detection"
https://github.com/runatlantis/atlantis/blob/617714034f533224102f4fa00948e4f5efadbc57/server/events/project_command_builder.go#L381
r

RB

03/29/2023, 1:52 PM
You can define a single project (that doesn't have a
dir
that exists) and it will stop doing automatic detection.
m

Marcelo Leandro

03/29/2023, 1:58 PM
yes, I did it, but I was think about a better solution 😄.
r

RB

03/29/2023, 1:58 PM
No unfortunately :(
Previously your expectation was correct. If the repo config existed, auto discovery was disabled
m

Marcelo Leandro

03/29/2023, 1:59 PM
yes, I see the PR with the change
r

RB

03/29/2023, 1:59 PM
Recently a pr was merged because the author wanted to enable parallel* booleans with auto discover enabled and that's what caused the change
m

Marcelo Leandro

03/29/2023, 1:59 PM
maybe create a flag can be a good thing?
r

RB

03/29/2023, 2:01 PM
Yes a flag sounds good. Id like something like this
# only enabled if projects are undefined
autodiscover:
  enabled: true
projects: []
The project always welcomes pull requests 🙂 🙏
m

Marcelo Leandro

03/29/2023, 2:02 PM
sure, I will have a look on it
❤️ 1
@RB
can you have a look on it please?