diff --git a/.github/trusted_registries.yaml b/.github/trusted_registries.yaml index 72c44e88b..c25050136 100644 --- a/.github/trusted_registries.yaml +++ b/.github/trusted_registries.yaml @@ -14,6 +14,8 @@ registries: velero: ALL_IMAGES vladgh: gpg@sha256: ALL_TAGS + otel: + opentelemetry-collector-contrib: ALL_TAGS ghcr.io: aquasecurity: ALL_IMAGES kyverno: ALL_IMAGES diff --git a/charts/base-cluster/templates/monitoring/tracing/opentelemetry-collector.yaml b/charts/base-cluster/templates/monitoring/tracing/opentelemetry-collector.yaml index 186c90f86..9b23c12ae 100644 --- a/charts/base-cluster/templates/monitoring/tracing/opentelemetry-collector.yaml +++ b/charts/base-cluster/templates/monitoring/tracing/opentelemetry-collector.yaml @@ -15,10 +15,8 @@ spec: - name: kube-prometheus-stack namespace: monitoring values: - {{- if .Values.global.imageRegistry }} image: - repository: {{ printf "%s/otel/opentelemetry-collector-contrib" $.Values.global.imageRegistry }} - {{- end }} + repository: {{ printf "%s/otel/opentelemetry-collector-contrib" ($.Values.global.imageRegistry | default (include "base-cluster.defaultRegistry" (dict))) }} mode: daemonset hostNetwork: true service: