diff options
| author | Max Resnick <max@ofmax.li> | 2020-01-01 11:08:33 -0800 |
|---|---|---|
| committer | Max Resnick <max@ofmax.li> | 2020-01-01 11:08:33 -0800 |
| commit | 584857f515ab6fe30530d25483869ed517e9575d (patch) | |
| tree | a8da4270005b51100d795c58b9ae24f5fc6d0219 /grumpy/cgit/templates/ingress.yaml | |
| parent | 479a617193774e2fe88279caa34ae3ff56a35fba (diff) | |
| download | grumpy-charts-584857f515ab6fe30530d25483869ed517e9575d.tar.gz | |
add cgit chart
Diffstat (limited to 'grumpy/cgit/templates/ingress.yaml')
| -rw-r--r-- | grumpy/cgit/templates/ingress.yaml | 37 |
1 files changed, 37 insertions, 0 deletions
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 }} |