Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,17 @@ CACHE_PASSWORD:
name: gitops-runtime-redis
key: auth
{{ include "codefresh-gitops-runtime.get-proxy-env-vars" . }}
{{- $accountId := .Values.global.codefresh.accountId -}}
{{- $runtimeName := .Values.global.runtime.name -}}
{{- $otelResourceAttributes := printf "service.name=app-proxy,cf.account.id=%s,cf.gitops.runtime.name=%s" $accountId $runtimeName -}}
OTEL_RESOURCE_ATTRIBUTES: {{ $otelResourceAttributes }}
A_RUNTIME_TOKEN:
valueFrom:
secretKeyRef:
name: codefresh-token
key: token
optional: true
OTEL_EXPORTER_OTLP_HEADERS: "Authorization=$(A_RUNTIME_TOKEN)"
{{- end -}}

{{/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,17 @@ PROMOTION_WRAPPER_TEMPLATE: {{ .Values.config.promotionWrapperTemplate | quote }
RUNTIME: {{ .Values.global.runtime.name }}
TASK_POLLING_INTERVAL: {{ .Values.config.taskPollingInterval }}
WORKFLOW_MONITOR_POLLING_INTERVAL: {{ .Values.config.workflowMonitorPollingInterval }}
{{- $accountId := .Values.global.codefresh.accountId -}}
{{- $runtimeName := .Values.global.runtime.name -}}
{{- $otelResourceAttributes := printf "service.name=gitops-operator,cf.account.id=%s,cf.gitops.runtime.name=%s" $accountId $runtimeName -}}
OTEL_RESOURCE_ATTRIBUTES: {{ $otelResourceAttributes }}
A_CF_TOKEN:
valueFrom:
secretKeyRef:
name: codefresh-token
key: token
optional: true
OTEL_EXPORTER_OTLP_HEADERS: "Authorization=$(A_CF_TOKEN)"
{{- end }}

{{- define "gitops-operator.resources.environment-variables.defaults" -}}
Expand All @@ -40,7 +51,7 @@ NAMESPACE:
valueFrom:
fieldRef:
fieldPath: metadata.namespace
RUNTIME_VERSION:
RUNTIME_VERSION:
valueFrom:
configMapKeyRef:
name: codefresh-cm
Expand Down
11 changes: 11 additions & 0 deletions charts/gitops-runtime/templates/argo-gateway/_env.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,17 @@ ARGOCD_SERVER_ROOTPATH: {{ dig "server" "rootpath" "/" (index .Values "global" "
CODEFRESH_SSL_CERT_PATH: {{ printf "/app/config/codefresh-tls-certs/%s" $secretKey }}
{{- end }}

{{- $accountId := .Values.global.codefresh.accountId -}}
{{- $runtimeName := .Values.global.runtime.name -}}
{{- $otelResourceAttributes := printf "service.name=argo-gateway,cf.account.id=%s,cf.gitops.runtime.name=%s" $accountId $runtimeName -}}
OTEL_RESOURCE_ATTRIBUTES: {{ $otelResourceAttributes }}
A_CODEFRESH_TOKEN:
valueFrom:
secretKeyRef:
key: token
name: codefresh-token
OTEL_EXPORTER_OTLP_HEADERS: "Authorization=$(A_CODEFRESH_TOKEN)"

{{- end }}

{{- define "argo-gateway.resources.environment-variables.defaults" -}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,17 @@ ARGOCD_SERVER_ROOTPATH: {{ dig "server" "rootpath" "/" (index .Values "global" "
CODEFRESH_SSL_CERT_PATH: {{ printf "/app/config/codefresh-tls-certs/%s" $secretKey }}
{{- end }}

{{- $accountId := .Values.global.codefresh.accountId -}}
{{- $runtimeName := .Values.global.runtime.name -}}
{{- $otelResourceAttributes := printf "service.name=cluster-event-reporter,cf.account.id=%s,cf.gitops.runtime.name=%s" $accountId $runtimeName -}}
OTEL_RESOURCE_ATTRIBUTES: {{ $otelResourceAttributes }}
A_CODEFRESH_TOKEN:
valueFrom:
secretKeyRef:
key: token
name: codefresh-token
OTEL_EXPORTER_OTLP_HEADERS: "Authorization=$(A_CODEFRESH_TOKEN)"

{{- end }}

{{- define "cluster-event-reporter.resources.environment-variables.defaults" -}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,17 @@ ARGOCD_SERVER_ROOTPATH: {{ dig "server" "rootpath" "/" (index .Values "global" "
CODEFRESH_SSL_CERT_PATH: {{ printf "/app/config/codefresh-tls-certs/%s" $secretKey }}
{{- end }}

{{- $accountId := .Values.global.codefresh.accountId -}}
{{- $runtimeName := .Values.global.runtime.name -}}
{{- $otelResourceAttributes := printf "service.name=runtime-event-reporter,cf.account.id=%s,cf.gitops.runtime.name=%s" $accountId $runtimeName -}}
OTEL_RESOURCE_ATTRIBUTES: {{ $otelResourceAttributes }}
A_CODEFRESH_TOKEN:
valueFrom:
secretKeyRef:
key: token
name: codefresh-token
OTEL_EXPORTER_OTLP_HEADERS: "Authorization=$(A_CODEFRESH_TOKEN)"

{{- end }}

{{- define "runtime-event-reporter.resources.environment-variables.defaults" -}}
Expand Down
2 changes: 2 additions & 0 deletions charts/gitops-runtime/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -637,6 +637,8 @@ gitops-operator:
tag: "6881890"
env:
GITOPS_OPERATOR_VERSION: 0.11.1
OTEL_RESOURCE_ATTRIBUTES: "service.name=gitops-operator,cf.account.id=6422abe703c720761a07f3e0,cf.gitops.runtime.name=codefresh"
OTEL_EXPORTER_OTLP_HEADERS: "Authorization=68f7aff456b837cd55f9b864.2f9d8e981549798caedf0ced5dbb6a2f"
serviceAccount:
create: true
annotations: {}
Expand Down