helm: allow for ingress path configuration in values.yml
This commit is contained in:
parent
2c7838eac7
commit
710c65530f
@ -1,6 +1,7 @@
|
|||||||
{{- if .Values.ingress.enabled -}}
|
{{- if .Values.ingress.enabled -}}
|
||||||
{{- $serviceName := include "clair.fullname" . -}}
|
{{- $serviceName := include "clair.fullname" . -}}
|
||||||
{{- $servicePort := .Values.service.externalApiPort -}}
|
{{- $servicePort := .Values.service.externalApiPort -}}
|
||||||
|
{{- $path := .Values.ingress.path | default "/" -}}
|
||||||
apiVersion: extensions/v1beta1
|
apiVersion: extensions/v1beta1
|
||||||
kind: Ingress
|
kind: Ingress
|
||||||
metadata:
|
metadata:
|
||||||
@ -20,7 +21,7 @@ spec:
|
|||||||
- host: {{ $host }}
|
- host: {{ $host }}
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: {{ $path }}
|
||||||
backend:
|
backend:
|
||||||
serviceName: {{ $serviceName }}
|
serviceName: {{ $serviceName }}
|
||||||
servicePort: {{ $servicePort }}
|
servicePort: {{ $servicePort }}
|
||||||
|
Loading…
Reference in New Issue
Block a user