Skip to content

Commit

Permalink
Merge pull request #742 from bluelabsio/path-templating
Browse files Browse the repository at this point in the history
set / as default path but allow for individual configuration in values.yml
  • Loading branch information
jzelinskie committed Mar 26, 2019
2 parents e8bd0c4 + 710c655 commit 3316e7e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion contrib/helm/clair/templates/ingress.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -20,7 +21,7 @@ spec:
- host: {{ $host }}
http:
paths:
- path: /
- path: {{ $path }}
backend:
serviceName: {{ $serviceName }}
servicePort: {{ $servicePort }}
Expand Down

0 comments on commit 3316e7e

Please sign in to comment.