-
Notifications
You must be signed in to change notification settings - Fork 608
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
Helm: update agent configmap creation condition #2879
Helm: update agent configmap creation condition #2879
Conversation
|
Thank you for the contribution @QuantumEnigmaa! I agree, the way the agent is configured should be refined.
Users should be able to provide their own However, as you mentioned, the pyroscope chart will generate a new config map resource regardless of the agent configuration.
TBH, I'm not 100% if we should rely on this parameter as it introduces a quite implicit dependency which, strictly speaking, isn't necessary in some cases (for example, if a user brings its own I would consider migrating the default configuration we ship to the agent configMap via the That's being said, I have no objections to merging this PR but I would like to hear your thoughts
Yes, please – you will also need to run |
I agree. I'm gonna move the config there and add some comments to explain how to provide another config |
Signed-off-by: QuantumEnigmaa <thibaud@giantswarm.io>
@kolesnikovae Can you check to make sure the change is suited to what you expected pls ? :) |
@QuantumEnigmaa thanks! I'll take a look by the end of the year ;) |
Signed-off-by: QuantumEnigmaa <thibaud@giantswarm.io>
b2be6ae
to
84eae0d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This PR updates the condition for the
grafana-agent
's configmap creation in the Helm chart.Currently the agent's configmap is created whenever the agent is enabled in the values but because of this, it's impossible for a user to provide it's own custom config for the agent, even when using the
agent.agent.configMap.content
field.I added another condition to allow the creation of the agent's configmap which is the following :
This ensures that the agent's configmap in the templates is only created when one doesn't want to provide one's own custom config. Would it be the case, the user would have to set the
agent.agent.configMap.create
field totrue
and write the wanted config in theagent.agent.configMap.content
field without having the current default configmap created alongside.Also, should I bump the chart's version ?