-
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
feat: Remove flag for allow repo config #3911
Merged
GenPage
merged 11 commits into
runatlantis:main
from
lukemassa:remove_allow_repo_config
Dec 12, 2023
Merged
feat: Remove flag for allow repo config #3911
GenPage
merged 11 commits into
runatlantis:main
from
lukemassa:remove_allow_repo_config
Dec 12, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
08193eb
to
0d4e308
Compare
@lukemassa, could you fix this conflict? |
@jamengual fixed! |
GenPage
previously approved these changes
Dec 12, 2023
GenPage
previously approved these changes
Dec 12, 2023
@lukemassa test are failing with It looks like it happened after merging the main in (couldn't rebase). I'm checking the main branch commits |
Looking now |
auto-merge was automatically disabled
December 12, 2023 03:07
Head branch was pushed to by a user without write access
GenPage
approved these changes
Dec 12, 2023
ijames-gc
pushed a commit
to gocardless/atlantis
that referenced
this pull request
Feb 13, 2024
* Remove option to allow repo * Fix internal test * Fix fmt * Fmt * Fix rebase --------- Co-authored-by: PePe Amengual <[email protected]> Co-authored-by: Dylan Page <[email protected]>
ijames-gc
pushed a commit
to gocardless/atlantis
that referenced
this pull request
Feb 13, 2024
* Remove option to allow repo * Fix internal test * Fix fmt * Fmt * Fix rebase --------- Co-authored-by: PePe Amengual <[email protected]> Co-authored-by: Dylan Page <[email protected]>
1 task
terakoya76
pushed a commit
to terakoya76/atlantis
that referenced
this pull request
Dec 31, 2024
* Remove option to allow repo * Fix internal test * Fix fmt * Fmt * Fix rebase --------- Co-authored-by: PePe Amengual <[email protected]> Co-authored-by: Dylan Page <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
breaking-change
feature
New functionality/enhancement
go
Pull requests that update Go code
refactoring
Code refactoring that doesn't add additional functionality
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
what
Remove flag
--allow-repo-config
why
This has been deprecated since 1fcdaba.
That commit changed the semantics of
--allow-repo-config
, which is important to clarify for the flag's removal. Before the deprecation,--allow-repo-config
was the only way to allow or disallow reading the atlantis.yaml in repos. Afterwards, however, the repo level atlantis.yaml is always read, and the new role of--allow-repo-config
is to determine whether we should accept all values from the repo level yaml, or only particular ones, as specified in the new repo config.This is why the default of
--allow-repo-config
is false. Removing this as an option means it will be impossible to specify that all values from the repo level yaml should be trusted, rather the repo config is necessary to allow overrides to important settings likeapply_requirements
.I opted to keep AllowRepoConfig in
GlobalCfgArgs
, renaming it toAllowAllRepoSettings
, since it is convenient for testing. It however is not set inserver.go
so isfalse
in any production run.I also removed two deprecated functions from global_cfg.go, which between them were only called once, a call site that was easy to translate to the supported
NewGlobalCfgFromArgs
.tests
Running unit tests to confirm existing behavior. Actual flag was removed:
references