Skip to content

Commit 15ad04a

Browse files
authored
Merge pull request #1262 from NanaKhadija1980j/cleanup/1221-remove-unused-env-vars
cleanup: remove unused deployment environment variables (#1221)
2 parents b6dcab2 + 75a2349 commit 15ad04a

3 files changed

Lines changed: 2 additions & 10 deletions

File tree

charts/stellar-operator/examples/values-production.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ byzantineWatcher:
8585
otel:
8686
enabled: true
8787
endpoint: "http://tempo.monitoring.svc.cluster.local:4317"
88-
samplingRatio: "0.1"
8988
collector:
9089
enabled: true
9190
config:

charts/stellar-operator/templates/deployment.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,6 @@ spec:
6565
{{- if .Values.otel.enabled }}
6666
- name: OTEL_EXPORTER_OTLP_ENDPOINT
6767
value: {{ .Values.otel.endpoint | quote }}
68-
- name: OTEL_SERVICE_NAME
69-
value: "stellar-operator"
70-
- name: OTEL_TRACES_SAMPLER
71-
value: "parentbased_traceidratio"
72-
- name: OTEL_TRACES_SAMPLER_ARG
73-
value: {{ .Values.otel.samplingRatio | quote }}
7468
{{- end }}
7569
volumeMounts:
7670
- name: operator-config

charts/stellar-operator/values.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -484,6 +484,8 @@ byzantineWatcher:
484484

485485
# OpenTelemetry configuration
486486
# Controls OTLP trace export from the operator and the bundled OTel Collector.
487+
# The operator sets service.name and sampling in code (AlwaysOn); only the OTLP
488+
# endpoint is injected via OTEL_EXPORTER_OTLP_ENDPOINT when enabled.
487489
otel:
488490
# Set to true to enable OTLP trace export from the operator.
489491
# When enabled, OTEL_EXPORTER_OTLP_ENDPOINT is injected into the operator pod.
@@ -494,9 +496,6 @@ otel:
494496
# Example: "http://stellar-operator-otel-collector:4317"
495497
endpoint: "http://stellar-operator-otel-collector:4317"
496498

497-
# Sampling ratio (0.0–1.0). 1.0 = always sample, 0.1 = 10% of traces.
498-
samplingRatio: "1.0"
499-
500499
# OTel Collector sidecar/deployment bundled with the Helm chart.
501500
collector:
502501
# Deploy the OTel Collector alongside the operator.

0 commit comments

Comments
 (0)