SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
Fix Helm chart enableSecurity flag (#4537)
Andrew Garrettabef448c5182
diff --git a/k8s/charts/seaweedfs/templates/ca-cert.yaml b/k8s/charts/seaweedfs/templates/ca-cert.yamlindex 056f015024..9b74db0b13 100644--- a/k8s/charts/seaweedfs/templates/ca-cert.yaml+++ b/k8s/charts/seaweedfs/templates/ca-cert.yaml@@ -1,5 +1,5 @@{{- if .Values.global.enableSecurity }}-apiVersion: certmanager.k8s.io/v1alpha1+apiVersion: cert-manager.io/v1{{ if .Values.global.certificates.alphacrds }}alpha1{{ end }}kind: Certificatemetadata:name: {{ template "seaweedfs.name" . }}-ca-certdiff --git a/k8s/charts/seaweedfs/templates/cert-caissuer.yaml b/k8s/charts/seaweedfs/templates/cert-caissuer.yamlnew file mode 100644index 0000000000..864652393a--- /dev/null+++ b/k8s/charts/seaweedfs/templates/cert-caissuer.yaml@@ -0,0 +1,10 @@+{{- if .Values.global.enableSecurity }}+apiVersion: cert-manager.io/v1{{ if .Values.global.certificates.alphacrds }}alpha1{{ end }}+kind: Issuer+metadata:+ name: {{ template "seaweedfs.name" . }}-ca-issuer+ namespace: {{ .Release.Namespace }}+spec:+ ca:+ secretName: {{ template "seaweedfs.name" . }}-ca-cert+{{- end }}diff --git a/k8s/charts/seaweedfs/templates/cert-clusterissuer.yaml b/k8s/charts/seaweedfs/templates/cert-clusterissuer.yamlindex d0bd425933..2604927dbb 100644--- a/k8s/charts/seaweedfs/templates/cert-clusterissuer.yaml+++ b/k8s/charts/seaweedfs/templates/cert-clusterissuer.yaml@@ -1,5 +1,5 @@{{- if .Values.global.enableSecurity }}-apiVersion: certmanager.k8s.io/v1alpha1+apiVersion: cert-manager.io/v1{{ if .Values.global.certificates.alphacrds }}alpha1{{ end }}kind: ClusterIssuermetadata:name: {{ template "seaweedfs.name" . }}-clusterissuerdiff --git a/k8s/charts/seaweedfs/templates/client-cert.yaml b/k8s/charts/seaweedfs/templates/client-cert.yamlindex 4d27b5659e..7960c3f8d6 100644--- a/k8s/charts/seaweedfs/templates/client-cert.yaml+++ b/k8s/charts/seaweedfs/templates/client-cert.yaml@@ -1,5 +1,5 @@{{- if .Values.global.enableSecurity }}-apiVersion: certmanager.k8s.io/v1alpha1+apiVersion: cert-manager.io/v1{{ if .Values.global.certificates.alphacrds }}alpha1{{ end }}kind: Certificatemetadata:name: {{ template "seaweedfs.name" . }}-client-cert@@ -7,10 +7,11 @@ metadata:spec:secretName: {{ template "seaweedfs.name" . }}-client-certissuerRef:- name: {{ template "seaweedfs.name" . }}-clusterissuer- kind: ClusterIssuer+ name: {{ template "seaweedfs.name" . }}-ca-issuer+ kind: IssuercommonName: {{ .Values.certificates.commonName }}- organization:+ subject:+ organizations:- "SeaweedFS CA"dnsNames:- '*.{{ .Release.Namespace }}'@@ -26,8 +27,9 @@ spec:- {{ . }}{{- end }}{{- end }}- keyAlgorithm: {{ .Values.certificates.keyAlgorithm }}- keySize: {{ .Values.certificates.keySize }}+ privateKey:+ algorithm: {{ .Values.certificates.keyAlgorithm }}+ size: {{ .Values.certificates.keySize }}duration: {{ .Values.certificates.duration }}renewBefore: {{ .Values.certificates.renewBefore }}{{- end }}diff --git a/k8s/charts/seaweedfs/templates/filer-cert.yaml b/k8s/charts/seaweedfs/templates/filer-cert.yamlindex 855183c54e..3c3565d33b 100644--- a/k8s/charts/seaweedfs/templates/filer-cert.yaml+++ b/k8s/charts/seaweedfs/templates/filer-cert.yaml@@ -1,5 +1,5 @@{{- if .Values.global.enableSecurity }}-apiVersion: certmanager.k8s.io/v1alpha1+apiVersion: cert-manager.io/v1{{ if .Values.global.certificates.alphacrds }}alpha1{{ end }}kind: Certificatemetadata:name: {{ template "seaweedfs.name" . }}-filer-cert@@ -7,10 +7,11 @@ metadata:spec:secretName: {{ template "seaweedfs.name" . }}-filer-certissuerRef:- name: {{ template "seaweedfs.name" . }}-clusterissuer- kind: ClusterIssuer+ name: {{ template "seaweedfs.name" . }}-ca-issuer+ kind: IssuercommonName: {{ .Values.certificates.commonName }}- organization:+ subject:+ organizations:- "SeaweedFS CA"dnsNames:- '*.{{ .Release.Namespace }}'@@ -26,8 +27,9 @@ spec:- {{ . }}{{- end }}{{- end }}- keyAlgorithm: {{ .Values.certificates.keyAlgorithm }}- keySize: {{ .Values.certificates.keySize }}+ privateKey:+ algorithm: {{ .Values.certificates.keyAlgorithm }}+ size: {{ .Values.certificates.keySize }}duration: {{ .Values.certificates.duration }}renewBefore: {{ .Values.certificates.renewBefore }}{{- end }}diff --git a/k8s/charts/seaweedfs/templates/master-cert.yaml b/k8s/charts/seaweedfs/templates/master-cert.yamlindex a8b0fc1d1b..1377ccda49 100644--- a/k8s/charts/seaweedfs/templates/master-cert.yaml+++ b/k8s/charts/seaweedfs/templates/master-cert.yaml@@ -1,5 +1,5 @@{{- if .Values.global.enableSecurity }}-apiVersion: certmanager.k8s.io/v1alpha1+apiVersion: cert-manager.io/v1{{ if .Values.global.certificates.alphacrds }}alpha1{{ end }}kind: Certificatemetadata:name: {{ template "seaweedfs.name" . }}-master-cert@@ -7,10 +7,11 @@ metadata:spec:secretName: {{ template "seaweedfs.name" . }}-master-certissuerRef:- name: {{ template "seaweedfs.name" . }}-clusterissuer- kind: ClusterIssuer+ name: {{ template "seaweedfs.name" . }}-ca-issuer+ kind: IssuercommonName: {{ .Values.certificates.commonName }}- organization:+ subject:+ organizations:- "SeaweedFS CA"dnsNames:- '*.{{ .Release.Namespace }}'@@ -26,8 +27,9 @@ spec:- {{ . }}{{- end }}{{- end }}- keyAlgorithm: {{ .Values.certificates.keyAlgorithm }}- keySize: {{ .Values.certificates.keySize }}+ privateKey:+ algorithm: {{ .Values.certificates.keyAlgorithm }}+ size: {{ .Values.certificates.keySize }}duration: {{ .Values.certificates.duration }}renewBefore: {{ .Values.certificates.renewBefore }}{{- end }}diff --git a/k8s/charts/seaweedfs/templates/volume-cert.yaml b/k8s/charts/seaweedfs/templates/volume-cert.yamlindex 72c62a0f55..4167867b1f 100644--- a/k8s/charts/seaweedfs/templates/volume-cert.yaml+++ b/k8s/charts/seaweedfs/templates/volume-cert.yaml@@ -1,5 +1,5 @@{{- if .Values.global.enableSecurity }}-apiVersion: certmanager.k8s.io/v1alpha1+apiVersion: cert-manager.io/v1{{ if .Values.global.certificates.alphacrds }}alpha1{{ end }}kind: Certificatemetadata:name: {{ template "seaweedfs.name" . }}-volume-cert@@ -7,10 +7,11 @@ metadata:spec:secretName: {{ template "seaweedfs.name" . }}-volume-certissuerRef:- name: {{ template "seaweedfs.name" . }}-clusterissuer- kind: ClusterIssuer+ name: {{ template "seaweedfs.name" . }}-ca-issuer+ kind: IssuercommonName: {{ .Values.certificates.commonName }}- organization:+ subject:+ organizations:- "SeaweedFS CA"dnsNames:- '*.{{ .Release.Namespace }}'@@ -26,8 +27,9 @@ spec:- {{ . }}{{- end }}{{- end }}- keyAlgorithm: {{ .Values.certificates.keyAlgorithm }}- keySize: {{ .Values.certificates.keySize }}+ privateKey:+ algorithm: {{ .Values.certificates.keyAlgorithm }}+ size: {{ .Values.certificates.keySize }}duration: {{ .Values.certificates.duration }}renewBefore: {{ .Values.certificates.renewBefore }}{{- end }}diff --git a/k8s/charts/seaweedfs/values.yaml b/k8s/charts/seaweedfs/values.yamlindex 4a9638d312..05bdf4f697 100644--- a/k8s/charts/seaweedfs/values.yaml+++ b/k8s/charts/seaweedfs/values.yaml@@ -9,6 +9,8 @@ global:restartPolicy: AlwaysloggingLevel: 1enableSecurity: false+ certificates:+ alphacrds: falsemonitoring:enabled: falsegatewayHost: null