This message was deleted.
s
This message was deleted.
s
Hey Paul, Steve,
no, the current helm charts are pretty much hardcoded.
What Steve said works. The “hardcoded” values are not hardcoded but default. The registry name can always be overrided by
--set global.imageRegistry=...
.
s
Correct, but can it be used for pulling the container images?
I trying to change de registry of all containers using helm with the parameter:
--set global.image.registry="<http://myregistry.com|myregistry.com>"
AFAIU, here the ask is if the registry can be changed for
all containers
, but the answer is no, the rendered deployments are not referring to
global.image.registry
in values.yaml
though individual images can be tweaked as mentioned in the Readme
s
this has no effect since the global value defined here is not referenced anywhere in the charts.
and
_helpers.tpl
does not contain a global default for
.Values.otelCollector.image
but yes, it contains for others
otelCollector.image
is the missing case, right?
s
Yeah, probably some places were missed, would you mind creating an issue in the charts repo?
s
Sure, thanks for bearing up with me
👍 1
s
thanks
🙂 1
s
it seems like we are looking a different charts. The one I pulled from charts.signoz.io does have an entry in _helpers.tpl file defining the template symbol that is actually used in the otel-collector deployment.yaml
{{- define "otelCollector.image" -}} {{- $registryName := default .Values.otelCollector.image.registry .Values.global.imageRegistry -}} {{- $repositoryName := .Values.otelCollector.image.repository -}} {{- $tag := .Values.otelCollector.image.tag | toString -}} {{- if $registryName -}} {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} {{- else -}} {{- printf "%s:%s" $repositoryName $tag -}} {{- end -}} {{- end -}}
p
@Shivanshu Raj Shrivastava As mentioned by @Steve Sims, we already have support for global registry. Try using the following instead, it adds the custom registry for all images:
Copy code
--set global.imageRegistry="<http://myregistry.com|myregistry.com>"
🆗 1