aboutsummaryrefslogtreecommitdiff
path: root/grumpy/gitolite/templates/gitolite-ingress.yaml
blob: e6bf450093f632ecb64c60b0a2150c7ea85f9915 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{{- if .Values.HostName }}
apiVersion: {{ .Values.NetworkPolicy.ApiVersion }}
kind: Ingress
metadata:
{{- if .Values.Ingress.Annotations }}
  annotations:
{{ toYaml .Values.Ingress.Annotations | indent 4 }}
{{- end }}
  name: {{ template "gitolite.fullname" . }}
spec:
  rules:
  - host: {{ .Values.HostName | quote }}
    http:
      paths:
      - backend:
          serviceName: {{ template "gitolite.fullname" . }}
          servicePort: {{ .Values.ServicePort }}
{{- if .Values.Ingress.TLS }}
  tls:
{{ toYaml .Values.Ingress.TLS | indent 4 }}
{{- end -}}
{{- end }}