21 lines
701 B
YAML
21 lines
701 B
YAML
{{- if and .Values.tls.enabled .Values.tls.certs.certManager }}
|
|
{{- if .Values.tls.certs.certManagerIssuer.isSelfSignedIssuer }}
|
|
apiVersion: cert-manager.io/v1
|
|
kind: Issuer
|
|
metadata:
|
|
name: {{ template "cockroachdb.fullname" . }}-ca-issuer
|
|
namespace: {{ .Release.Namespace | quote }}
|
|
labels:
|
|
helm.sh/chart: {{ template "cockroachdb.chart" . }}
|
|
app.kubernetes.io/name: {{ template "cockroachdb.name" . }}
|
|
app.kubernetes.io/instance: {{ .Release.Name | quote }}
|
|
app.kubernetes.io/managed-by: {{ .Release.Service | quote }}
|
|
{{- with .Values.labels }}
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
spec:
|
|
ca:
|
|
secretName: {{ .Values.tls.certs.caSecret }}
|
|
{{- end }}
|
|
{{- end }}
|