Skip to content

Commit

Permalink
Merge branch 'main' into adding-oauthn
Browse files Browse the repository at this point in the history
  • Loading branch information
DiamondJoseph authored Nov 18, 2024
2 parents b31c275 + a4e881d commit d7cb5e8
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 10 deletions.
13 changes: 13 additions & 0 deletions helm/blueapi/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,16 @@ metadata:
data:
config.yaml: |-
{{- toYaml .Values.worker | nindent 4 }}
---

apiVersion: v1
kind: ConfigMap
metadata:
name: {{ include "blueapi.fullname" . }}-otel-config
data:
{{- if .Values.tracing.otlp.enabled | default false }}
OTLP_EXPORT_ENABLED: "true"
OTEL_EXPORTER_OTLP_TRACES_PROTOCOL: {{ .Values.tracing.otlp.protocol | default "http/protobuf" }}
OTEL_EXPORTER_OTLP_ENDPOINT: {{ required "OTLP export enabled but server address not set" .Values.tracing.otlp.server.host }}:{{ .Values.tracing.otlp.server.port | default 4318 }}
{{ end }}
3 changes: 3 additions & 0 deletions helm/blueapi/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ spec:
- "-c"
- "/config/config.yaml"
- "serve"
envFrom:
- configMapRef:
name: {{ include "blueapi.fullname" . }}-otel-config
env:
{{- toYaml .Values.extraEnvVars | nindent 12 }}
{{- with .Values.nodeSelector }}
Expand Down
15 changes: 5 additions & 10 deletions helm/blueapi/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,7 @@ listener:
resources: {}

# Additional envVars to mount to the pod as a String
extraEnvVars: |
- name: OTLP_EXPORT_ENABLED
value: {{ .Values.tracing.otlp.export_enabled }}
- name: OTEL_EXPORTER_OTLP_TRACES_PROTOCOL
value: {{ .Values.tracing.otlp.protocol }}
- name: OTEL_EXPORTER_OTLP_ENDPOINT
value: "{{ .Values.tracing.otlp.host }}:{{ .Values.tracing.otlp.port }}"
extraEnvVars: []
# - name: RABBITMQ_PASSWORD
# valueFrom:
# secretKeyRef:
Expand All @@ -91,10 +85,11 @@ extraEnvVars: |

tracing:
otlp:
export_enabled: false
enabled: false
protocol: http/protobuf
host: https://daq-services-jaeger # replace with central instance
port: 4318
server:
host: https://daq-services-jaeger # replace with central instance
port: 4318

# Config for the worker goes here, will be mounted into a config file
worker:
Expand Down

0 comments on commit d7cb5e8

Please sign in to comment.