Skip to content

Commit 60d6f39

Browse files
committed
fix: fix environmental variables for OTEL exporter
1 parent d308ff1 commit 60d6f39

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

charts/gitops-runtime/templates/_components/cap-app-proxy/environment-variables/_main-container.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,8 @@ CACHE_PASSWORD:
225225

226226
{{- $accountId := .Values.global.codefresh.accountId -}}
227227
{{- $runtimeName := .Values.global.runtime.name -}}
228-
{{- $otelResourceAttributes := printf "service.name=app-proxy,cf.account.id=%s,cf.gitops.runtime.name=%s" $accountId $runtimeName -}}
229-
OTEL_RESOURCE_ATTRIBUTES: {{- $otelResourceAttributes -}}
228+
{{ $otelResourceAttributes := printf "service.name=app-proxy,cf.account.id=%s,cf.gitops.runtime.name=%s" $accountId $runtimeName }}
229+
OTEL_RESOURCE_ATTRIBUTES: {{ $otelResourceAttributes }}
230230
OTEL_EXPORTER_OTLP_HEADERS: "Authorization=Bearer $(RUNTIME_TOKEN)"
231231

232232
{{- end -}}

charts/gitops-runtime/templates/_components/gitops-operator/_env.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ RUNTIME_VERSION:
4747
key: version
4848
{{- $accountId := .Values.global.codefresh.accountId -}}
4949
{{- $runtimeName := .Values.global.runtime.name -}}
50-
{{- $otelResourceAttributes := printf "service.name=gitops-operator,cf.account.id=%s,cf.gitops.runtime.name=%s" $accountId $runtimeName -}}
51-
OTEL_RESOURCE_ATTRIBUTES: {{- $otelResourceAttributes -}}
50+
{{ $otelResourceAttributes := printf "service.name=gitops-operator,cf.account.id=%s,cf.gitops.runtime.name=%s" $accountId $runtimeName }}
51+
OTEL_RESOURCE_ATTRIBUTES: {{ $otelResourceAttributes }}
5252
OTEL_EXPORTER_OTLP_HEADERS: "Authorization=Bearer $(CF_TOKEN)"
5353
{{- end -}}

0 commit comments

Comments
 (0)