Skip to content

Commit

Permalink
helm: allow for ingress path configuration in values.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Kate Hill committed Mar 20, 2019
1 parent 2c7838e commit 710c655
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 710c655

Please sign in to comment.