Collectd operator utilties
[demo.git] / vnfs / DAaaS / deploy / minio / templates / ingress.yaml
1 {{- if .Values.ingress.enabled -}}
2 {{- $fullName := include "minio.fullname" . -}}
3 {{- $servicePort := .Values.service.port -}}
4 {{- $ingressPath := .Values.ingress.path -}}
5 apiVersion: extensions/v1beta1
6 kind: Ingress
7 metadata:
8   name: {{ $fullName }}
9   labels:
10     app: {{ template "minio.name" . }}
11     chart: {{ template "minio.chart" . }}
12     release: {{ .Release.Name }}
13     heritage: {{ .Release.Service }}
14 {{- with .Values.ingress.annotations }}
15   annotations:
16 {{ toYaml . | indent 4 }}
17 {{- end }}
18 spec:
19 {{- if .Values.ingress.tls }}
20   tls:
21   {{- range .Values.ingress.tls }}
22     - hosts:
23       {{- range .hosts }}
24         - {{ . | quote }}
25       {{- end }}
26       secretName: {{ .secretName }}
27   {{- end }}
28 {{- end }}
29   rules:
30   {{- range .Values.ingress.hosts }}
31     - host: {{ . | quote }}
32       http:
33         paths:
34           - path: {{ $ingressPath }}
35             backend:
36               serviceName: {{ $fullName }}
37               servicePort: {{ $servicePort }}
38   {{- end }}
39 {{- end }}