github.com/nikkelma/oras-project_oras-go@v1.1.1-0.20220201001104-a75f6a419090/testdata/charts/chartmuseum/templates/ingress.yaml (about)

     1  {{- $servicePort := .Values.service.externalPort -}}
     2  {{- $serviceName := include "chartmuseum.fullname" . -}}
     3  {{- if .Values.ingress.enabled }}
     4  ---
     5  apiVersion: extensions/v1beta1
     6  kind: Ingress
     7  metadata:
     8    name: {{ include "chartmuseum.fullname" . }}
     9    annotations:
    10  {{ toYaml .Values.ingress.annotations | indent 4 }}
    11    labels:
    12  {{- if .Values.ingress.labels }}
    13  {{ toYaml .Values.ingress.labels | indent 4 }}
    14  {{- end }}
    15  {{ include "chartmuseum.labels.standard" . | indent 4 }}
    16  spec:
    17    rules:
    18    {{- range $host, $paths := .Values.ingress.hosts }}
    19    - host: {{ $host }}
    20      http:
    21        paths:
    22        {{- range $paths }}
    23        - path: {{ . }}
    24          backend:
    25            serviceName: {{ $serviceName }}
    26            servicePort: {{ $servicePort }}
    27        {{- end -}}
    28    {{- end -}}
    29    {{- if .Values.ingress.tls }}
    30    tls:
    31  {{ toYaml .Values.ingress.tls | indent 4 }}
    32    {{- end -}}
    33  {{- end -}}