We are currently using the opentelemetry-operator with OpenTelemetryCollector and Instrumentation.
The image can now only be set with the image.repository variable and you need to set the whole url with registry like
ghcr.io/open-telemetry/opentelemetry-operator/opentelemetry-operator
ghcr.io/open-telemetry/opentelemetry-collector-releases/opentelemetry-collector-k8s
ghcr.io/open-telemetry/opentelemetry-operator/autoinstrumentation-java
If we put this into our own helm chart then we have to override these 3 variables to pull the image through our custom imageRegistry used as a proxy.
image:
repository: customregistry/ghcr.io/open-telemetry/opentelemetry-operator/opentelemetry-operator
Our goal is that our company is using our helm chart that has multiple helm chart bundles through the dependencies. We would like to set an variable global.imageRegistry so that every team can use their our registry as proxy.
But because in the template yaml cannot concat variables, we have to declare it three times
Currently we should set this:
opentelemetry-operator:
manager:
image:
repository: customregistry/ghcr.io/open-telemetry/opentelemetry-operator/opentelemetry-operator
collectorImage:
repository: customregistry/ghcr.io/open-telemetry/opentelemetry-collector-releases/opentelemetry-collector-k8s
autoInstrumentationImage:
java:
repository: customregistry/ghcr.io/open-telemetry/opentelemetry-operator/autoinstrumentation-java
What we want:
global:
imageRegistry: &imageRegistry ""
opentelemetry-operator:
manager:
image:
registry: *imageRegistry
repository: ghcr.io/open-telemetry/opentelemetry-operator/opentelemetry-operator
collectorImage:
registry: *imageRegistry
repository: ghcr.io/open-telemetry/opentelemetry-collector-releases/opentelemetry-collector-k8s
autoInstrumentationImage:
java:
registry: *imageRegistry
repository: ghcr.io/open-telemetry/opentelemetry-operator/autoinstrumentation-java
So that in our override we only have to set the global imageRegistry variable.
We are currently using the opentelemetry-operator with OpenTelemetryCollector and Instrumentation.
The image can now only be set with the image.repository variable and you need to set the whole url with registry like
If we put this into our own helm chart then we have to override these 3 variables to pull the image through our custom imageRegistry used as a proxy.
Our goal is that our company is using our helm chart that has multiple helm chart bundles through the dependencies. We would like to set an variable global.imageRegistry so that every team can use their our registry as proxy.
But because in the template yaml cannot concat variables, we have to declare it three times
Currently we should set this:
What we want:
So that in our override we only have to set the global imageRegistry variable.