github.com/zsuzhengdu/helm@v3.0.0-beta.3+incompatible/cmd/helm/testdata/testcharts/chart-with-template-lib-archive-dep/templates/ingress.yaml (about) 1 {{- if .Values.ingress.enabled -}} 2 {{- $fullName := include "chart-with-template-lib-archive-dep.fullname" . -}} 3 {{- $ingressPath := .Values.ingress.path -}} 4 apiVersion: extensions/v1beta1 5 kind: Ingress 6 metadata: 7 name: {{ $fullName }} 8 labels: 9 app: {{ template "chart-with-template-lib-archive-dep.name" . }} 10 chart: {{ template "chart-with-template-lib-archive-dep.chart" . }} 11 release: {{ .Release.Name }} 12 heritage: {{ .Release.Service }} 13 {{- with .Values.ingress.annotations }} 14 annotations: 15 {{ toYaml . | indent 4 }} 16 {{- end }} 17 spec: 18 {{- if .Values.ingress.tls }} 19 tls: 20 {{- range .Values.ingress.tls }} 21 - hosts: 22 {{- range .hosts }} 23 - {{ . }} 24 {{- end }} 25 secretName: {{ .secretName }} 26 {{- end }} 27 {{- end }} 28 rules: 29 {{- range .Values.ingress.hosts }} 30 - host: {{ . }} 31 http: 32 paths: 33 - path: {{ $ingressPath }} 34 backend: 35 serviceName: {{ $fullName }} 36 servicePort: http 37 {{- end }} 38 {{- end }}