-
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
Repository-side configuration should extend/augment the server side one #643
Comments
This would break backwards compatibility because all directories users make changes to would now cause Atlantis to autoplan whereas previously they wouldn't unless listed in I didn't actually think of changing the behaviour when implementing server-side workflows, but thinking about it now, I don't think I would change it to keep backwards compatibility. |
Say you have dozens of directories to handle and you are using workspaces, you now need to have X * Y entries in the atlantis.yaml file, where X is the number of projects and Y the number of workspaces at least per directory. Talking about backward compatibility, how about bumping the API version to 4 and allow it / add a new config like |
I'm not sure I understand. If you have workspaces then you need to tell Atlantis their names for each directory. Having the default workflow used for non-specified directories wouldn't solve the problem of needing config for each directory that does use workspaces. |
Let me reword: you have 100 directories. 50 are using the default workflow, 50 are not. It means I have to define 100 entries at least, with additional ones for workspaces I need. That means the file starts becoming unreadable, while, if we specify the directories that use workspaces only, it's less entries and way more readable. Is your first message stating there is no way to change this behavior and it's either one defines everything or nothing? |
@lkysow For the record, I've been creating a I was thinking, what about allowing glob patterns in name/directories?
For instance, the first case could be matching (sorry If it was discussed already and I missed the conversation) |
Hey sorry I didn't respond to your last, must have missed it. I think what we really need is #500. The globbing solution might work for your specific case but if anyone has directories inside those dirs they don't want Atlantis to respond to then they can't use it. I think a mechanism for dynamically generating the |
No worries. Closing! |
As per the documentation:
For instance, supposing we have 3 folder:
and the following repo side config:
I would expect a plan for dir
A
that would be the default workflow, 2 plans forB
as per the config, and one forC
as per the config also.It is not obvious to me, reading the RFC, why it should one or the other?
I feel we could keep the directory discovery as default, and the repository configuration file could extend that.
The text was updated successfully, but these errors were encountered: