mirror of
https://github.com/bitnami/charts.git
synced 2026-03-14 06:47:28 +08:00
* Make ingress annotations work again This allows me to have multiple ingress annotations, all with the correct indentation. * [bitnami/ghost] Update components versions Signed-off-by: Bitnami Containers <containers@bitnami.com> Co-authored-by: Ashley Penney <ashley@mapmycustomers.com> Co-authored-by: Bitnami Containers <containers@bitnami.com>
40 lines
1.0 KiB
YAML
40 lines
1.0 KiB
YAML
{{- if .Values.ingress.enabled }}
|
|
apiVersion: extensions/v1beta1
|
|
kind: Ingress
|
|
metadata:
|
|
name: {{ include "ghost.fullname" . }}
|
|
labels: {{- include "common.labels.standard" . | nindent 4 }}
|
|
annotations:
|
|
{{- if .Values.ingress.annotations }}
|
|
{{- include "common.tplvalues.render" ( dict "value" .Values.ingress.annotations "context" $) | nindent 4 }}
|
|
{{- end }}
|
|
{{- if .Values.ingress.certManager }}
|
|
kubernetes.io/tls-acme: "true"
|
|
{{- end }}
|
|
spec:
|
|
rules:
|
|
{{- range .Values.ingress.hosts }}
|
|
- host: {{ .name }}
|
|
http:
|
|
paths:
|
|
- path: {{ default "/" .path }}
|
|
backend:
|
|
serviceName: {{ include "ghost.fullname" $ }}
|
|
servicePort: http
|
|
{{- end }}
|
|
tls:
|
|
{{- range .Values.ingress.hosts }}
|
|
{{- if .tls }}
|
|
- hosts:
|
|
{{- if .tlsHosts }}
|
|
{{- range $host := .tlsHosts }}
|
|
- {{ $host }}
|
|
{{- end }}
|
|
{{- else }}
|
|
- {{ .name }}
|
|
{{- end }}
|
|
secretName: {{ .tlsSecret }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- end }}
|