github.com/microsoft/fabrikate@v1.0.0-alpha.1.0.20210115014322-dc09194d0885/testdata/generate/infra/fabrikate-jaeger/helm_repos/jaeger/charts/elasticsearch/templates/client-ingress.yaml (about) 1 {{- if .Values.client.ingress.enabled -}} 2 {{- $fullName := include "elasticsearch.client.fullname" . -}} 3 {{- $ingressPath := .Values.client.ingress.path -}} 4 apiVersion: extensions/v1beta1 5 kind: Ingress 6 metadata: 7 name: {{ $fullName }} 8 labels: 9 app: {{ template "elasticsearch.name" . }} 10 chart: {{ .Chart.Name }}-{{ .Chart.Version }} 11 component: "{{ .Values.client.name }}" 12 heritage: {{ .Release.Service }} 13 release: {{ .Release.Name }} 14 annotations: 15 {{- with .Values.client.ingress.annotations }} 16 {{ toYaml . | indent 4 }} 17 {{- end }} 18 {{- if and ( .Values.client.ingress.user ) ( .Values.client.ingress.password ) }} 19 nginx.ingress.kubernetes.io/auth-type: basic 20 nginx.ingress.kubernetes.io/auth-secret: '{{ include "elasticsearch.client.fullname" . }}-auth' 21 nginx.ingress.kubernetes.io/auth-realm: "Authentication-Required" 22 {{- end }} 23 spec: 24 {{- if .Values.client.ingress.tls }} 25 tls: 26 {{- range .Values.client.ingress.tls }} 27 - hosts: 28 {{- range .hosts }} 29 - {{ . | quote }} 30 {{- end }} 31 secretName: {{ .secretName }} 32 {{- end }} 33 {{- end }} 34 rules: 35 {{- range .Values.client.ingress.hosts }} 36 - host: {{ . | quote }} 37 http: 38 paths: 39 - path: {{ $ingressPath }} 40 backend: 41 serviceName: {{ $fullName }} 42 servicePort: http 43 {{- end }} 44 {{- end }}