From 584857f515ab6fe30530d25483869ed517e9575d Mon Sep 17 00:00:00 2001 From: Max Resnick Date: Wed, 1 Jan 2020 11:08:33 -0800 Subject: add cgit chart --- grumpy/cgit/templates/ingress.yaml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 grumpy/cgit/templates/ingress.yaml (limited to 'grumpy/cgit/templates/ingress.yaml') diff --git a/grumpy/cgit/templates/ingress.yaml b/grumpy/cgit/templates/ingress.yaml new file mode 100644 index 0000000..73aa44b --- /dev/null +++ b/grumpy/cgit/templates/ingress.yaml @@ -0,0 +1,37 @@ +{{- if .Values.ingress.enabled -}} +{{- $fullName := include "cgit.fullname" . -}} +{{- $svcPort := .Values.service.port -}} +apiVersion: extensions/v1beta1 +kind: Ingress +metadata: + name: {{ $fullName }} + labels: +{{ include "cgit.labels" . | indent 4 }} + {{- with .Values.ingress.annotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} +spec: +{{- if .Values.ingress.tls }} + tls: + {{- range .Values.ingress.tls }} + - hosts: + {{- range .hosts }} + - {{ . | quote }} + {{- end }} + secretName: {{ .secretName }} + {{- end }} +{{- end }} + rules: + {{- range .Values.ingress.hosts }} + - host: {{ .host | quote }} + http: + paths: + {{- range .paths }} + - path: {{ . }} + backend: + serviceName: {{ $fullName }} + servicePort: {{ $svcPort }} + {{- end }} + {{- end }} +{{- end }} -- cgit v1.2.3