github.com/argoproj/argo-cd@v1.8.7/util/helm/testdata/helm2-dependency/templates/ingress.yaml (about)

     1  {{- if .Values.ingress.enabled }}
     2  {{- range .Values.ingress.hosts }}
     3  apiVersion: extensions/v1beta1
     4  kind: Ingress
     5  metadata:
     6    name: "{{- printf "%s-%s" .name $.Release.Name | trunc 63 | trimSuffix "-" -}}"
     7    labels:
     8      app: {{ template "fullname" $ }}
     9      chart: "{{ $.Chart.Name }}-{{ $.Chart.Version }}"
    10      release: "{{ $.Release.Name }}"
    11      heritage: "{{ $.Release.Service }}"
    12    annotations:
    13      {{- if .tls }}
    14      ingress.kubernetes.io/secure-backends: "true"
    15      {{- end }}
    16      {{- range $key, $value := .annotations }}
    17      {{ $key }}: {{ $value | quote }}
    18      {{- end }}
    19  spec:
    20    rules:
    21    - host: {{ .name }}
    22      http:
    23        paths:
    24          - path: {{ default "/" .path }}
    25            backend:
    26              serviceName: {{ template "fullname" $ }}
    27              servicePort: 80
    28  {{- if .tls }}
    29    tls:
    30    - hosts:
    31      - {{ .name }}
    32      secretName: {{ .tlsSecret }}
    33  {{- end }}
    34  ---
    35  {{- end }}
    36  {{- end }}