diff --git a/config/configStructs/tapConfig.go b/config/configStructs/tapConfig.go index 456f165a5..199c55fce 100644 --- a/config/configStructs/tapConfig.go +++ b/config/configStructs/tapConfig.go @@ -190,6 +190,14 @@ type IngressConfig struct { Annotations map[string]string `yaml:"annotations" json:"annotations" default:"{}"` } +type RoutingConfig struct { + Front FrontRoutingConfig `yaml:"front" json:"front"` +} + +type FrontRoutingConfig struct { + BasePath string `yaml:"basePath" json:"basePath" default:""` +} + type ReleaseConfig struct { Repo string `yaml:"repo" json:"repo" default:"https://helm.kubeshark.co"` Name string `yaml:"name" json:"name" default:"kubeshark"` @@ -304,6 +312,7 @@ type TapConfig struct { Tolerations TolerationsConfig `yaml:"tolerations" json:"tolerations" default:"{}"` Auth AuthConfig `yaml:"auth" json:"auth"` Ingress IngressConfig `yaml:"ingress" json:"ingress"` + Routing RoutingConfig `yaml:"routing" json:"routing"` IPv6 bool `yaml:"ipv6" json:"ipv6" default:"true"` Debug bool `yaml:"debug" json:"debug" default:"false"` Telemetry TelemetryConfig `yaml:"telemetry" json:"telemetry"` diff --git a/helm-chart/README.md b/helm-chart/README.md index f3ec71252..3ee3569d8 100644 --- a/helm-chart/README.md +++ b/helm-chart/README.md @@ -196,6 +196,7 @@ Example for overriding image names: | `tap.ingress.host` | Host of the `Ingress` | `ks.svc.cluster.local` | | `tap.ingress.tls` | `Ingress` TLS configuration | `[]` | | `tap.ingress.annotations` | `Ingress` annotations | `{}` | +| `tap.routing.front.basePath` | Set this value to serve `front` under specific base path | `""` | | `tap.ipv6` | Enable IPv6 support for the front-end | `true` | | `tap.debug` | Enable debug mode | `false` | | `tap.telemetry.enabled` | Enable anonymous usage statistics collection | `true` | diff --git a/helm-chart/values.yaml b/helm-chart/values.yaml index 834b13c8d..1e0c3d8d2 100644 --- a/helm-chart/values.yaml +++ b/helm-chart/values.yaml @@ -131,6 +131,9 @@ tap: host: ks.svc.cluster.local tls: [] annotations: {} + routing: + front: + basePath: /app ipv6: true debug: false telemetry: