From 88f43b94d9201496983f2d2a659048640f4c29ee Mon Sep 17 00:00:00 2001 From: Serhii Ponomarenko <116438358+tiptophelmet@users.noreply.github.com> Date: Tue, 26 Aug 2025 23:01:55 +0300 Subject: [PATCH] :hammer: Add `tap.ingress.path` helm value (#1782) Co-authored-by: Alon Girmonsky <1990761+alongir@users.noreply.github.com> --- config/configStructs/tapConfig.go | 1 + helm-chart/templates/10-ingress.yaml | 2 +- helm-chart/values.yaml | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/config/configStructs/tapConfig.go b/config/configStructs/tapConfig.go index cd56b6c87..dfa1547fe 100644 --- a/config/configStructs/tapConfig.go +++ b/config/configStructs/tapConfig.go @@ -188,6 +188,7 @@ type IngressConfig struct { Enabled bool `yaml:"enabled" json:"enabled" default:"false"` ClassName string `yaml:"className" json:"className" default:""` Host string `yaml:"host" json:"host" default:"ks.svc.cluster.local"` + Path string `yaml:"path" json:"path" default:"/"` TLS []networking.IngressTLS `yaml:"tls" json:"tls" default:"[]"` Annotations map[string]string `yaml:"annotations" json:"annotations" default:"{}"` } diff --git a/helm-chart/templates/10-ingress.yaml b/helm-chart/templates/10-ingress.yaml index 14cf948db..cc09d0c77 100644 --- a/helm-chart/templates/10-ingress.yaml +++ b/helm-chart/templates/10-ingress.yaml @@ -28,7 +28,7 @@ spec: name: kubeshark-front port: number: 80 - path: / + path: {{ default "/" (((.Values).tap).ingress).path }} pathType: Prefix {{- if .Values.tap.ingress.tls }} tls: diff --git a/helm-chart/values.yaml b/helm-chart/values.yaml index 22a368a2d..ab584a758 100644 --- a/helm-chart/values.yaml +++ b/helm-chart/values.yaml @@ -139,6 +139,7 @@ tap: enabled: false className: "" host: ks.svc.cluster.local + path: / tls: [] annotations: {} priorityClass: ""