Skip to content

Commit 8effee7

Browse files
reporters added env OTEL_SERVICE_NAME default value equal to fullnameOverride
1 parent 12dafa4 commit 8effee7

File tree

1 file changed

+4
-0
lines changed
  • charts/gitops-runtime/templates/_components/cf-argocd-extras/event-reporter

1 file changed

+4
-0
lines changed

charts/gitops-runtime/templates/_components/cf-argocd-extras/event-reporter/_statefulset.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@
1515
{{- $_ := set $context.Values.container.env.REDIS_PASSWORD.valueFrom.secretKeyRef "key" (default "redis-password" $vals.externalRedis.existingSecretKeyRef.key) }}
1616
{{- end }}
1717

18+
{{- if not (index $context.Values.container.env "OTEL_SERVICE_NAME") }}
19+
{{- $_ := set $context.Values.container.env "OTEL_SERVICE_NAME" $context.Values.fullnameOverride }}
20+
{{- end }}
21+
1822
{{- if and (eq (index $context.Values "global" "external-argo-cd" "auth" "type") "token") }}
1923
{{- if not (index $context.Values "global" "external-argo-cd" "auth" "token") }}
2024
{{- $_ := set $context.Values.container.env "ARGO_CD_TOKEN_SECRET_NAME" (required ".Values.global.external-argo-cd.auth.type is set to 'token' therefore .Values.global.external-argo-cd.auth.tokenSecretKeyRef.name is required" (index $context.Values "global" "external-argo-cd" "auth" "tokenSecretKeyRef" "name")) }}

0 commit comments

Comments
 (0)