Skip to content

Commit 356be2e

Browse files
update app-proxy env vars
1 parent 0de53a5 commit 356be2e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{{- define "cap-app-proxy.environment-variables.defaults" -}}
2-
{{- $accountId := include "global.codefresh.accountId" . -}}
3-
{{- $chartVersion := coalesce .Values.version .Chart.Version -}}
2+
{{- $accountId := .Values.global.codefresh.accountId -}}
3+
{{- $chartVersion := .Chart.Version -}}
44
{{- $runtimeVersion := .Chart.AppVersion -}}
5-
{{- $runtimeName := include "global.runtime.name" . -}}
6-
{{- $appProxyVersion := coalesce .Values.app-proxy.image.tag "latest" -}}
5+
{{- $runtimeName := .Values.global.runtime.name -}}
6+
{{- $appProxyVersion := .Values.image.tag | default "latest" -}}
77
ARGO_CD_URL:
88
valueFrom:
99
configMapKeyRef:
@@ -228,9 +228,9 @@ CACHE_PASSWORD:
228228
secretKeyRef:
229229
name: gitops-runtime-redis
230230
key: auth
231+
OTEL_RESOURCE_ATTRIBUTES: {{ printf "service.name=%s,service.version=%s,service.namespace=%s,cf.account.id=%s,cf.gitops.runtime.name=%s,cf.gitops.runtime.version=%s,cf.gitops.runtime.chart.version=%s" "cf-gitops-app-proxy" $appProxyVersion "cf-gitops-runtime" $accountId $runtimeName $runtimeVersion $chartVersion }}
231232
{{ include "codefresh-gitops-runtime.get-proxy-env-vars" . }}
232233
{{- end -}}
233-
OTEL_RESOURCE_ATTRIBUTES: {{ printf "service.name=%s,service.version=%s,service.namespace=%s,cf.account.id=%s,cf.gitops.runtime.name=%s,cf.gitops.runtime.version=%s,cf.gitops.runtime.chart.version=%s" "cf-gitops-app-proxy" $appProxyVersion "cf-gitops-runtime" $accountId "$runtimeName" "$runtimeVersion" "$chartVersion" }}
234234

235235
{{/*
236236
Read defaults from the template above and merge with the values provided in values file

0 commit comments

Comments
 (0)