github.com/replicatedcom/ship@v0.50.0/integration/update/namespace/expected/.ship/upstream/templates/ingress.yaml (about)

     1  {{- if .Values.ingress.enabled -}}
     2  {{- $fullName := include "grafana.fullname" . -}}
     3  {{- $servicePort := .Values.service.port -}}
     4  {{- $ingressPath := .Values.ingress.path -}}
     5  apiVersion: extensions/v1beta1
     6  kind: Ingress
     7  metadata:
     8    name: {{ $fullName }}
     9    labels:
    10      app: {{ template "grafana.name" . }}
    11      chart: {{ template "grafana.chart" . }}
    12      release: {{ .Release.Name }}
    13      heritage: {{ .Release.Service }}
    14  {{- if .Values.ingress.labels }}
    15  {{ toYaml .Values.ingress.labels | indent 4 }}
    16  {{- end }}
    17  {{- with .Values.ingress.annotations }}
    18    annotations:
    19  {{ toYaml . | indent 4 }}
    20  {{- end }}
    21  spec:
    22  {{- if .Values.ingress.tls }}
    23    tls:
    24    {{- range .Values.ingress.tls }}
    25      - hosts:
    26        {{- range .hosts }}
    27          - {{ . | quote }}
    28        {{- end }}
    29        secretName: {{ .secretName }}
    30    {{- end }}
    31  {{- end }}
    32    rules:
    33    {{- range .Values.ingress.hosts }}
    34      - host: {{ . }}
    35        http:
    36          paths:
    37            - path: {{ $ingressPath }}
    38              backend:
    39                serviceName: {{ $fullName }}
    40                servicePort: {{ $servicePort }}
    41    {{- end }}
    42  {{- end }}