fix annotations templating for s3.ingress.annotations and document it and s3.ingress.tls in values.yaml

This commit is contained in:
jessebot 2023-11-18 13:26:09 +01:00 committed by Chris Lu
parent 06e723f629
commit 06434f5227
3 changed files with 7 additions and 4 deletions

View File

@ -2,4 +2,4 @@ apiVersion: v1
description: SeaweedFS
name: seaweedfs
appVersion: "3.59"
version: 3.59.0
version: 3.59.1

View File

@ -10,9 +10,9 @@ kind: Ingress
metadata:
name: ingress-{{ template "seaweedfs.name" . }}-s3
namespace: {{ .Release.Namespace }}
{{- if .Values.s3.ingress.annotations }}
{{- with .Values.s3.ingress.annotations }}
annotations:
{{ tpl .Values.s3.ingress.annotations . | nindent 4 | trim }}
{{- toYaml . | nindent 4 }}
{{- end }}
labels:
app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
@ -43,4 +43,4 @@ spec:
{{- if .Values.s3.ingress.host }}
host: {{ .Values.s3.ingress.host }}
{{- end }}
{{- end }}
{{- end }}

View File

@ -641,6 +641,9 @@ s3:
className: "nginx"
# host: false for "*" hostname
host: "seaweedfs.cluster.local"
# additional ingress annotations for the s3 endpoint
annotations: []
tls: []
certificates:
commonName: "SeaweedFS CA"