Skip to content

Commit 2f6e403

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

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ 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 }}
228+
{{- $otelResourceAttributes := printf "service.name=app-proxy,cf.account.id=%s,cf.gitops.runtime.name=%s" $accountId $runtimeName -}}
229229
OTEL_RESOURCE_ATTRIBUTES: {{ $otelResourceAttributes }}
230230
OTEL_EXPORTER_OTLP_HEADERS: "Authorization=Bearer $(RUNTIME_TOKEN)"
231231

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

Lines changed: 1 addition & 1 deletion
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 }}
50+
{{- $otelResourceAttributes := printf "service.name=gitops-operator,cf.account.id=%s,cf.gitops.runtime.name=%s" $accountId $runtimeName -}}
5151
OTEL_RESOURCE_ATTRIBUTES: {{ $otelResourceAttributes }}
5252
OTEL_EXPORTER_OTLP_HEADERS: "Authorization=Bearer $(CF_TOKEN)"
5353
{{- end -}}

0 commit comments

Comments
 (0)