-
Notifications
You must be signed in to change notification settings - Fork 481
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
[collector] Fix: Enable external configmap checksum #1302
[collector] Fix: Enable external configmap checksum #1302
Conversation
Fixes [collector] No collector reload when using external configmap open-telemetry#1194
This comment was marked as outdated.
This comment was marked as outdated.
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.
It looks like the demo examples got removed. If you only want to generate the collector examples you can do make generate-examples CHARTS=opentlemetry-collector
.
charts/opentelemetry-collector/templates/configmap-user-config.yaml
Outdated
Show resolved
Hide resolved
This reverts commit 5e6d8f8.
…lue of `existingName`
I've re-run the example generator for the Collector after reverting the previous generation (which seemed to be the cause of deleted files). The diff is much smaller now. I'm not sure how to best handle merge conflicts from upstream around generated examples, though -- tried a few merge flows locally but was not happy with the results. |
@bixu the best way to handle merging the examples is to take mains, bump the chart version to the appropriate value, and regenerate. |
There doesn't seem to be a way to get at rendered template contents in Helm. This key allows a user to specify the path to template file that will be used to create `configMap.existingName`, in cases like mine where we want to wrap this chart in a chart that feeds in custom configmap contents.
Co-authored-by: Tyler Helmuth <12352919+TylerHelmuth@users.noreply.github.com>
Hey @bixu, Are you actively using this feature and if so, how? I am trying to deploy this chart as a subchart whilst using
According to the docs
so it doesn't look like what I'm trying to do is possible. I noticed that in the description you mentioned "can be bundled in a wrapper chart". What exactly is a "wrapper chart". Perhaps I'm approaching this wrong? |
@onematchfox, I actually ran in to the same issue the other day, but hadn't gotten around to thinking about a fix. I'm afraid this config option is broken and I'd like to remove it, or do you have a better idea? |
Nope, sorry, I don't. I was hoping that I was just approaching it wrong. |
@onematchfox, are you in the CNCF slack for the Collector? I'm |
I am. Will drop you a msg a bit later this afternoon when I have some spare time. |
Fixes "[collector] No collector reload when using external configmap" (#1194)
This PR ships a new config option,
configMap.existingPath
, which is unset by default. When enabled, it takes a relative path to a custom ConfigMap that can be bundled in a wrapper chart. A new helper template calculates a checksum annotation from the custom ConfigMap file.