Skip to content
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

Prohibit the configuration of services within modules #6215

Merged
merged 1 commit into from
Jan 23, 2024

Conversation

wildum
Copy link
Contributor

@wildum wildum commented Jan 22, 2024

PR Description

Services should only be configurable within the main config. A module should not have the possibility to modify the behavior of a service running at root level. In this PR, I added a check to prevent this from happening.

Which issue(s) this PR fixes

Fixes #6174

Notes to the Reviewer

PR Checklist

  • CHANGELOG.md updated
  • Tests updated

Copy link
Member

@tpaschalis tpaschalis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for the quick fix!

Copy link
Collaborator

@mattdurham mattdurham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@mattdurham mattdurham merged commit 4e960df into main Jan 23, 2024
10 checks passed
@mattdurham mattdurham deleted the forbid-services-in-modules branch January 23, 2024 14:45
BarunKGP pushed a commit to BarunKGP/grafana-agent that referenced this pull request Feb 20, 2024
@github-actions github-actions bot added the frozen-due-to-age Locked due to a period of inactivity. Please open new issues or PRs if more discussion is needed. label Feb 22, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
frozen-due-to-age Locked due to a period of inactivity. Please open new issues or PRs if more discussion is needed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Race condition with services instantiation in modules
3 participants