github.com/GoogleContainerTools/skaffold/v2@v2.13.2/integration/testdata/helm-render-delete/skaffold-helm/templates/ingress.yaml (about) 1 {{- if .Values.ingress.enabled -}} 2 {{- $serviceName := include "skaffold-helm.fullname" . -}} 3 {{- $servicePort := .Values.service.externalPort -}} 4 apiVersion: networking.k8s.io/v1 5 kind: Ingress 6 metadata: 7 name: {{ template "skaffold-helm.fullname" . }} 8 labels: 9 app: {{ template "skaffold-helm.name" . }} 10 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} 11 release: {{ .Release.Name }} 12 heritage: {{ .Release.Service }} 13 annotations: 14 {{- range $key, $value := .Values.ingress.annotations }} 15 {{ $key }}: {{ $value | quote }} 16 {{- end }} 17 spec: 18 rules: 19 {{- if .Values.ingress.hosts }} 20 {{- range $host := .Values.ingress.hosts }} 21 - host: {{ $host }} 22 http: 23 paths: 24 - path: / 25 pathType: ImplementationSpecific 26 backend: 27 service: 28 name: {{ $serviceName }} 29 port: 30 number: {{ $servicePort }} 31 {{- end -}} 32 {{- else }} 33 - http: 34 paths: 35 - path: / 36 pathType: ImplementationSpecific 37 backend: 38 service: 39 name: {{ $serviceName }} 40 port: 41 number: {{ $servicePort }} 42 {{- end -}} 43 {{- if .Values.ingress.tls }} 44 tls: 45 {{ toYaml .Values.ingress.tls | indent 4 }} 46 {{- end -}} 47 {{- end -}}