opentelemetry-helm-charts
opentelemetry-helm-charts copied to clipboard
[opentelemetry-operator] allow to override repositories without need to overwrite tag
We would like to be able to use own docker registry for example for metricsAllocator. Now it we want to do it, we need to specify tag as well, which is problematic as it has to be updated every time we would like to update the chart and use the default version. I think that it should use appVersion as default tag value.
Here is the code which requires both tag and repository values.
Although typically appVersion corresponds directly with the thing being installed, I think since the operator version and target allocator version and auto-instrumentation versions are so closely related I'd be ok using appVersion across all those images.
I do not want to use it for the collector tag.
@TylerHelmuth I have also the question a bit related to that. Would it be fine to move collectors tag and repo to CRD? I imagine there may be some scenarios when users would like to have multiple collectors/distros and one operator 🤔
The OpenTelemetryCollector CRD allows you to specify the collector image it uses. The collector image in the chart sets the Operator's default collector image, but the CRD allows overriding. The operator chart does not install OpenTelemetryCollector CRs.
@TylerHelmuth I started working on that and after all I see two possible solutions:
- write everything explicitly in
values.yaml(preferred by me, but may be harder to maintain) - use
appVersionas default version and.Values.manager.image.repositoryas default repository (less overrides if customer wants to change repository)
As there are two parts which may be overwritten, both of them needs defaults or both of them needs to be always set. I think it's more clear and transparent to set both of them in values.yaml