aboutsummaryrefslogtreecommitdiff
path: root/grumpy/gitolite/templates/gitolite-ingress.yaml
diff options
context:
space:
mode:
authorMax Resnick <max@ofmax.li>2020-01-01 14:18:41 -0800
committerMax Resnick <max@ofmax.li>2020-01-20 16:23:01 -0800
commit109fad80f323567d6751c9f51e20dd41582d43bf (patch)
tree66b5f0b3c5f147badfbc3f596b089baf11cb10b6 /grumpy/gitolite/templates/gitolite-ingress.yaml
parent584857f515ab6fe30530d25483869ed517e9575d (diff)
downloadgrumpy-charts-109fad80f323567d6751c9f51e20dd41582d43bf.tar.gz
add gitolite from orginal author, minor improvements
Diffstat (limited to 'grumpy/gitolite/templates/gitolite-ingress.yaml')
-rw-r--r--grumpy/gitolite/templates/gitolite-ingress.yaml22
1 files changed, 22 insertions, 0 deletions
diff --git a/grumpy/gitolite/templates/gitolite-ingress.yaml b/grumpy/gitolite/templates/gitolite-ingress.yaml
new file mode 100644
index 0000000..e6bf450
--- /dev/null
+++ b/grumpy/gitolite/templates/gitolite-ingress.yaml
@@ -0,0 +1,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 }}