You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tika.apache.org by le...@apache.org on 2023/03/10 23:03:04 UTC

[tika-helm] branch main updated: bugfix(deployment): Fix probe paths (#10)

This is an automated email from the ASF dual-hosted git repository.

lewismc pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tika-helm.git


The following commit(s) were added to refs/heads/main by this push:
     new 4e5b6cd  bugfix(deployment): Fix probe paths (#10)
4e5b6cd is described below

commit 4e5b6cdcce5d165c4da2b3f84eedc8e55eb2de69
Author: Stijn Brouwers <st...@bdcommit.com>
AuthorDate: Sat Mar 11 00:02:59 2023 +0100

    bugfix(deployment): Fix probe paths (#10)
---
 templates/deployment.yaml | 4 ++--
 values.yaml               | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/templates/deployment.yaml b/templates/deployment.yaml
index ae1b4f4..44cec3e 100644
--- a/templates/deployment.yaml
+++ b/templates/deployment.yaml
@@ -63,7 +63,7 @@ spec:
               protocol: TCP
           livenessProbe:
             httpGet:
-              path: {{if .Values.config.base_url }}{{- with urlParse (tpl .Values.config.base_url .) }}{{ .path }}{{end}}{{end}}/
+              path: {{if .Values.config.base_url }}{{- with urlParse (tpl .Values.config.base_url .) }}{{ .path }}{{end}}{{else}}/{{end}}
               port: {{ .Values.service.port }}
               scheme: {{ .Values.livenessProbe.scheme | default "http" }}
             initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds | default 15 }}
@@ -72,7 +72,7 @@ spec:
             periodSeconds: {{ .Values.livenessProbe.periodSeconds | default 5 }}
           readinessProbe:
             httpGet:
-              path: {{if .Values.config.base_url }}{{- with urlParse (tpl .Values.config.base_url .) }}{{ .path }}{{end}}{{end}}/
+              path: {{if .Values.config.base_url }}{{- with urlParse (tpl .Values.config.base_url .) }}{{ .path }}{{end}}{{else}}/{{end}}
               port: {{ .Values.service.port  }}
               scheme: {{ .Values.readinessProbe.scheme | default "http" }}
             initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds | default 15 }}
diff --git a/values.yaml b/values.yaml
index d8cc8bf..78642df 100644
--- a/values.yaml
+++ b/values.yaml
@@ -118,4 +118,4 @@ networkPolicy:
   allowExternal: false
 
 config:
-  base_url: localhost
\ No newline at end of file
+  base_url: "http://localhost/"
\ No newline at end of file