# {{- if .Values.server.ingress.enabled -}}
# {{- $serviceName := include "vault.fullname" . -}}
# {{- $servicePort := .Values.server.service.port -}}
# apiVersion: extensions/v1beta1
# kind: Ingress
# metadata:
#   name: {{ template "vault.fullname" . }}
#   namespace: {{ .Release.Namespace }}
#   labels:
#     helm.sh/chart: {{ include "vault.chart" . }}
#     app.kubernetes.io/name: {{ include "vault.name" . }}
#     app.kubernetes.io/instance: {{ .Release.Name }}
#     app.kubernetes.io/managed-by: {{ .Release.Service }}
#     {{- with .Values.server.ingress.labels }}
#       {{- toYaml . | nindent 4 }}
#     {{- end }}
#   {{- with .Values.server.ingress.annotations }}
#   annotations:
#     {{- toYaml . | nindent 4 }}
#   {{- end }}
# spec:
# {{- if .Values.server.ingress.tls }}
#   tls:
#   {{- range .Values.server.ingress.tls }}
#     - hosts:
#       {{- range .hosts }}
#         - {{ . | quote }}
#       {{- end }}
#       secretName: {{ .secretName }}
#   {{- end }}
# {{- end }}
#   rules:
#   {{- range .Values.server.ingress.hosts }}
#     - host: {{ .host | quote }}
#       http:
#         paths:
#         {{- range .paths }}
#           - path: {{ . }}
#             backend:
#               serviceName: {{ $serviceName }}
#               servicePort: {{ $servicePort }}
#         {{- end }}
#   {{- end }}
# {{- end }}
