From 738bc82e6c2ec05452f6f836a111bf0940ea949c Mon Sep 17 00:00:00 2001 From: kfox1111 Date: Fri, 9 Apr 2021 02:28:33 -0700 Subject: [PATCH] Enable overriding ingress prefix. (#19) --- shinyproxy/templates/ingress.yaml | 2 +- shinyproxy/values.yaml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/shinyproxy/templates/ingress.yaml b/shinyproxy/templates/ingress.yaml index c2e6637..7ebd94d 100644 --- a/shinyproxy/templates/ingress.yaml +++ b/shinyproxy/templates/ingress.yaml @@ -13,7 +13,7 @@ spec: - host: {{ $host | quote }} http: paths: - - path: {{ index $.Values "proxy" "landing-page" }} + - path: {{ default (index $.Values "proxy" "landing-page") $.Values.ingress.path }} backend: serviceName: shinyproxy servicePort: 8080 diff --git a/shinyproxy/values.yaml b/shinyproxy/values.yaml index bf7d658..e13dd55 100644 --- a/shinyproxy/values.yaml +++ b/shinyproxy/values.yaml @@ -7,6 +7,8 @@ ingress: tls: [] annotations: {} # ingress.annotations -- Annotations to add to the ingress + path: "" + # ingress.path -- Set path in the ingress. Defaults to proxy.landing-page if blank. appPod: resources: # appPod.resources.requests -- Resources requests for spawned pods