From 710c65530f4524693e6a863075b4d3760901a3bc Mon Sep 17 00:00:00 2001 From: Kate Hill Date: Wed, 20 Mar 2019 11:35:37 -0400 Subject: [PATCH] helm: allow for ingress path configuration in values.yml --- contrib/helm/clair/templates/ingress.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/contrib/helm/clair/templates/ingress.yaml b/contrib/helm/clair/templates/ingress.yaml index 1256cc46..d4e6e7ca 100644 --- a/contrib/helm/clair/templates/ingress.yaml +++ b/contrib/helm/clair/templates/ingress.yaml @@ -1,6 +1,7 @@ {{- if .Values.ingress.enabled -}} {{- $serviceName := include "clair.fullname" . -}} {{- $servicePort := .Values.service.externalApiPort -}} +{{- $path := .Values.ingress.path | default "/" -}} apiVersion: extensions/v1beta1 kind: Ingress metadata: @@ -20,7 +21,7 @@ spec: - host: {{ $host }} http: paths: - - path: / + - path: {{ $path }} backend: serviceName: {{ $serviceName }} servicePort: {{ $servicePort }}