Skip to content

Commit 417c167

Browse files
authored
fix: the telemetry namesapce should match the operator's one (#2003)
* fix: telemetry service namesapce should be the one used by the operator Signed-off-by: Tomer Figenblat <[email protected]> * patch bump opeartor chart to 0.2.19 Signed-off-by: Tomer Figenblat <[email protected]> * update docs badge with new version of operator 0.2.19 Signed-off-by: Tomer Figenblat <[email protected]> --------- Signed-off-by: Tomer Figenblat <[email protected]>
1 parent 836d2e7 commit 417c167

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

cmd/thv-operator/main.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,9 @@ func main() {
106106
os.Exit(1)
107107
}
108108

109+
podNamespace, _ := os.LookupEnv("POD_NAMESPACE")
109110
// Set up telemetry service - only runs when elected as leader
110-
telemetryService := telemetry.NewService(mgr.GetClient(), "")
111+
telemetryService := telemetry.NewService(mgr.GetClient(), podNamespace)
111112
if err := mgr.Add(&telemetry.LeaderTelemetryRunnable{
112113
TelemetryService: telemetryService,
113114
}); err != nil {

deploy/charts/operator/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ apiVersion: v2
22
name: toolhive-operator
33
description: A Helm chart for deploying the ToolHive Operator into Kubernetes.
44
type: application
5-
version: 0.2.18
5+
version: 0.2.19
66
appVersion: "0.3.5"

deploy/charts/operator/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
# ToolHive Operator Helm Chart
33

4-
![Version: 0.2.18](https://img.shields.io/badge/Version-0.2.18-informational?style=flat-square)
4+
![Version: 0.2.19](https://img.shields.io/badge/Version-0.2.19-informational?style=flat-square)
55
![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
66

77
A Helm chart for deploying the ToolHive Operator into Kubernetes.

deploy/charts/operator/templates/deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ spec:
4646
# Always use structured JSON logs in Kubernetes (not configurable)
4747
- name: UNSTRUCTURED_LOGS
4848
value: "false"
49+
- name: POD_NAMESPACE
50+
valueFrom:
51+
fieldRef:
52+
fieldPath: metadata.namespace
4953
- name: ENABLE_EXPERIMENTAL_FEATURES
5054
value: {{ .Values.operator.features.experimental | quote }}
5155
{{- if eq .Values.operator.rbac.scope "namespace" }}

0 commit comments

Comments
 (0)