Fix Helm chart enableSecurity flag: - Add parameter for whether to use v1alpha cert-manager CRDs, default off. - Use self-signed Issuer only for the initial CA certificates, create a new Issuer that uses the generated CA certificate and use that for all the others
15 lines
487 B
YAML
15 lines
487 B
YAML
{{- if .Values.global.enableSecurity }}
|
|
apiVersion: cert-manager.io/v1{{ if .Values.global.certificates.alphacrds }}alpha1{{ end }}
|
|
kind: Certificate
|
|
metadata:
|
|
name: {{ template "seaweedfs.name" . }}-ca-cert
|
|
namespace: {{ .Release.Namespace }}
|
|
spec:
|
|
secretName: {{ template "seaweedfs.name" . }}-ca-cert
|
|
commonName: "{{ template "seaweedfs.name" . }}-root-ca"
|
|
isCA: true
|
|
issuerRef:
|
|
name: {{ template "seaweedfs.name" . }}-clusterissuer
|
|
kind: ClusterIssuer
|
|
{{- end }}
|