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 description: SeaweedFS
name: seaweedfs name: seaweedfs
appVersion: "3.59" appVersion: "3.59"
version: 3.59.0 version: 3.59.1

View file

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

View file

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