Skip to content

Commit d308ff1

Browse files
committed
fix: fix environmental variables for OTEL exporter
1 parent 5c6a1ca commit d308ff1

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,10 +223,9 @@ CACHE_PASSWORD:
223223
key: auth
224224
{{ include "codefresh-gitops-runtime.get-proxy-env-vars" . }}
225225

226-
{{- $serviceVersion := printf "%s@%s" (index .Values "app-proxy" "image" "tag") (index .Values "app-proxy" "image" "digest") -}}
227226
{{- $accountId := .Values.global.codefresh.accountId -}}
228227
{{- $runtimeName := .Values.global.runtime.name -}}
229-
{{- $otelResourceAttributes := printf "service.name=app-proxy,service.version=%s,cf.account.id=%s,cf.gitops.runtime.name=%s" $serviceVersion $accountId $runtimeName -}}
228+
{{- $otelResourceAttributes := printf "service.name=app-proxy,cf.account.id=%s,cf.gitops.runtime.name=%s" $accountId $runtimeName -}}
230229
OTEL_RESOURCE_ATTRIBUTES: {{- $otelResourceAttributes -}}
231230
OTEL_EXPORTER_OTLP_HEADERS: "Authorization=Bearer $(RUNTIME_TOKEN)"
232231

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,9 @@ RUNTIME_VERSION:
4545
configMapKeyRef:
4646
name: codefresh-cm
4747
key: version
48-
{{- $serviceVersion := printf "%s@%s" (index .Values "gitops-operator" "image" "tag") (index .Values "gitops-operator" "image" "digest") -}}
4948
{{- $accountId := .Values.global.codefresh.accountId -}}
5049
{{- $runtimeName := .Values.global.runtime.name -}}
51-
{{- $otelResourceAttributes := printf "service.name=gitops-operator,service.version=%s,cf.account.id=%s,cf.gitops.runtime.name=%s" $serviceVersion $accountId $runtimeName -}}
50+
{{- $otelResourceAttributes := printf "service.name=gitops-operator,cf.account.id=%s,cf.gitops.runtime.name=%s" $accountId $runtimeName -}}
5251
OTEL_RESOURCE_ATTRIBUTES: {{- $otelResourceAttributes -}}
5352
OTEL_EXPORTER_OTLP_HEADERS: "Authorization=Bearer $(CF_TOKEN)"
5453
{{- end -}}

0 commit comments

Comments
 (0)