From e6cd74a41e6f0a09e4c603c63d9221548440b195 Mon Sep 17 00:00:00 2001
From: "Richard Kuo (Danswer)" <rkuo@danswer.ai>
Date: Thu, 7 Nov 2024 09:36:14 -0800
Subject: [PATCH] just hardcode instead of indexing the tenant port for now

---
 charts/vespa/Chart.yaml             | 2 +-
 charts/vespa/templates/_helpers.tpl | 2 +-
 charts/vespa/values.yaml            | 2 ++
 3 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/charts/vespa/Chart.yaml b/charts/vespa/Chart.yaml
index 826e078..a958446 100644
--- a/charts/vespa/Chart.yaml
+++ b/charts/vespa/Chart.yaml
@@ -15,7 +15,7 @@ type: application
 # This is the chart version. This version number should be incremented each time you make changes
 # to the chart and its templates, including the app version.
 # Versions are expected to follow Semantic Versioning (https://semver.org/)
-version: 0.2.15
+version: 0.2.16
 
 # This is the version number of the application being deployed. This version number should be
 # incremented each time you make changes to the application. Versions are not expected to
diff --git a/charts/vespa/templates/_helpers.tpl b/charts/vespa/templates/_helpers.tpl
index 6a053f6..b8857ba 100644
--- a/charts/vespa/templates/_helpers.tpl
+++ b/charts/vespa/templates/_helpers.tpl
@@ -51,7 +51,7 @@ app.kubernetes.io/instance: {{ .Release.Name }}
 {{- end }}
 
 {{- define "vespa.healthEndpoint" -}}
-da-vespa-0.{{ .Values.service.name }}:{{ .Values.vespa.service.ports[0].port }}/state/v1/health
+da-vespa-0.{{ .Values.service.name }}:{{ .Values.service.tenantPort }}/state/v1/health
 {{- end }}
 
 {{/*
diff --git a/charts/vespa/values.yaml b/charts/vespa/values.yaml
index 118a920..6c9e943 100644
--- a/charts/vespa/values.yaml
+++ b/charts/vespa/values.yaml
@@ -66,6 +66,8 @@ service:
       port: 8081
       targetPort: 8081
 
+  tenantPort: 19071
+  
 ingress:
   enabled: false
   className: ""