From a9f4257d3750427355cd0e5326fd31e916464a9b Mon Sep 17 00:00:00 2001 From: Chris Werner Rau Date: Thu, 7 Sep 2023 11:44:30 +0200 Subject: [PATCH] fix(base-cluster/tracing): add missing otel to trusted image --- .github/trusted_registries.yaml | 2 ++ .../templates/monitoring/tracing/opentelemetry-collector.yaml | 4 +--- 2 files changed, 3 insertions(+), 3 deletions(-) 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: