From c86872ccb8cbecca144ffde7e8236f7b2784d144 Mon Sep 17 00:00:00 2001 From: Yogesh Garg Date: Wed, 13 Dec 2023 12:53:51 -0800 Subject: [PATCH] chore: Remove statd host port if otel is not enabled (#53) --- charts/operator-wandb/Chart.yaml | 2 +- charts/operator-wandb/charts/app/templates/deployment.yaml | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/charts/operator-wandb/Chart.yaml b/charts/operator-wandb/Chart.yaml index cfcfe3e1..a70d9f88 100644 --- a/charts/operator-wandb/Chart.yaml +++ b/charts/operator-wandb/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: operator-wandb description: A Helm chart for deploying W&B to Kubernetes type: application -version: 0.10.28 +version: 0.10.29 appVersion: 1.0.0 icon: https://wandb.ai/logo.svg diff --git a/charts/operator-wandb/charts/app/templates/deployment.yaml b/charts/operator-wandb/charts/app/templates/deployment.yaml index b8d95841..9a94065e 100644 --- a/charts/operator-wandb/charts/app/templates/deployment.yaml +++ b/charts/operator-wandb/charts/app/templates/deployment.yaml @@ -156,11 +156,15 @@ spec: - name: GORILLA_SESSION_LENGTH value: "{{ .Values.global.auth.sessionLengthHours }}h" - + + {{- if and .Values.global .Values.global.observability }} + {{- if eq (default "custom" .Values.global.observability.mode) "otel" }} - name: GORILLA_STATSD_PORT value: "8125" - name: GORILLA_STATSD_HOST value: "0.0.0.0" + {{- end }} + {{- end }} - name: BUCKET value: "{{ include "app.bucket" . }}"